help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tip of the day: Using Valgrind in the GUD buffer


From: Kevin Rodgers
Subject: Re: Tip of the day: Using Valgrind in the GUD buffer
Date: Tue, 30 Dec 2003 13:08:08 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Bruce Ingalls wrote:

Hmm. I've added

(add-hook 'compilation-mode-hook '(lambda() (toggle-read-only t)))

to my .emacs, because I tend to use mouse2 instead of C-x ` to jump to error-lines showing in the *compilation* buffer.


If your intent is to make the *compilation* buffer read-only, that should
be (toggle-read-only 1) or simply (setq buffer-read-only t).

The problem is that sometimes (middle) mouse2 will _Paste_ instead of goto-line :(

Then somehow you've deleted the binding of [mouse-2] to the
compile-mouse-goto-error command in compilation-mode-map (or
in compilation-minor-mode-map, whose list structure it shares).


--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]