[Top][All Lists]

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

minor bug in next-error-follow-minor-mode?

From: Bruce Stephens
Subject: minor bug in next-error-follow-minor-mode?
Date: Mon, 15 Aug 2005 17:24:30 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

I was confused by the behaviour of next-error-follow-minor-mode in the
current emacs CVS.  I vaguely remembered that it was on by default,
and indeed found that C-c C-f switched it off (and another C-c C-f
switched it on).  However, now I look at the code, I think it's just a
minor bug, where ":init-value" ought to be ":lighter", in simple.el.
(" Fol" is presumably a valid non-nil value, but it looks suspiciously
like something meant for the modeline.)

(define-minor-mode next-error-follow-minor-mode
  "Minor mode for compilation, occur and diff modes.
When turned on, cursor motion in the compilation, grep, occur or diff
buffer causes automatic display of the corresponding source code
  :group 'next-error :init-value " Fol"
  (if (not next-error-follow-minor-mode)
      (remove-hook 'post-command-hook 'next-error-follow-mode-post-command-hook 
    (add-hook 'post-command-hook 'next-error-follow-mode-post-command-hook nil 
    (make-local-variable 'next-error-follow-last-line)))

reply via email to

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