[Top][All Lists]

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

Re: major mode in new buffers

From: Juri Linkov
Subject: Re: major mode in new buffers
Date: Wed, 31 Mar 2010 18:05:51 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

> Well, when I do it, I get a buffer called *Help*, with major-mode
> `help' (not `help-mode'), and the C-x suffix is no longer active (I
> cannot do C-x o, for example, to switch buffers, or C-x C-x to exit
> Emacs).
> Don't you see the same thing?

I think what ehelp currently does by default, makes no sense -
it puts the *Help* buffer in fundamental-mode instead of help-mode.

Please look at the code in `with-electric-help':

      ;; We should really get a usable *Help* buffer when retaining
      ;; the electric one with `r'.  The problem is that a simple
      ;; call to help-mode won't cut it; at least RET is bound wrong
      ;; afterwards.  It's also not clear that `help-mode' is always
      ;; the right thing, maybe we should add an optional parameter.
      (condition-case ()
          (funcall (or (default-value 'major-mode) 'fundamental-mode))
        (error nil))

Ehelp creates a problem and tries to solve it in an ugly way.

Juri Linkov

reply via email to

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