[Top][All Lists]

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

Re: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-pp

From: Dmitry Gutov
Subject: Re: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch
Date: Mon, 17 Feb 2014 19:21:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> I'm not sure.  Maybe it will depend.  I'm leaning towards having
> a "main" major mode and leaving `major-mode' pointing to that.

It could be best. Any code that depends on a major mode will likely
break in multi-mode environment if it's not aware of it.

Maybe have a secondary local variable that would point to the current
submode (like mmm-current-mode).

> As mentioned elsewhere, it might also be a better choice to let this
> main major mode control the keymap.

I'd rather not do that. Some modes override common commands via the
keymap, rather than some `-function[s]' hook.

What about submode-local minor modes and their keymaps? Do we prohibit

reply via email to

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