emacs-devel
[Top][All Lists]
Advanced

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

Re: globalized minor modes - priority over mode hook?


From: Juanma Barranquero
Subject: Re: globalized minor modes - priority over mode hook?
Date: Wed, 28 Apr 2010 04:35:51 +0200

On Mon, Apr 26, 2010 at 19:56, Stefan Monnier <address@hidden> wrote:
>
> Oops, sorry, I misunderstood.
> Yes, indeed, it will be run last.  And it will also be run first if the
> mode is written "properly" (by inheriting from some other mode).
> We should maybe split this into two parts: fundamental-mode-hook and
> after-change-major-mode-hook, the first is the one run before any other
> mode hook and the second is run after all other mode hooks.

Has this been fixed by r100061?

Because, for example,

  (add-hook 'completion-list-mode-hook (lambda () (linum-mode -1)))
  (global-linum-mode 1)

still activates linum-mode in completion buffers.

    Juanma




reply via email to

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