all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* hideshow.el: permanent local variables
@ 2007-03-01 22:07 Glenn Morris
  2007-03-02  8:26 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2007-03-01 22:07 UTC (permalink / raw)
  To: emacs-devel


Re-raising a small issue I reported ~ 3 years ago (no responses),
since it just annoyed me again. If no-one has a reason why these
should be permanent-local, I would like to change this.


<http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-04/msg00135.html>

hideshow.el gives several variables the permanent-local property:

hs-minor-mode, hs-c-start-regexp, hs-block-start-regexp
hs-block-start-mdata-select, hs-block-end-regexp, hs-forward-sexp-func
hs-adjust-block-beginning

I don't understand why this is desirable; indeed it leads to at least
one problem.

I activate hideshow mode in lisp-based modes with a mode-hook (as per
the suggested usage in the file commentary). When I decide to save my
scratch buffer as a text file, hideshow mode is not killed.

For example, this leads to problems with restoring a desktop:

emacs -q --no-site-file
M-x hs-minor-mode
C-x C-w foo.txt
M-x desktop-save-mode
M-x desktop-save .
M-x desktop-read
   -> "Text Mode doesn't support Hideshow Minor Mode"

This aborts the load of the rest of a desktop.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-04 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 22:07 hideshow.el: permanent local variables Glenn Morris
2007-03-02  8:26 ` Richard Stallman
2007-03-02  8:37   ` David Kastrup
2007-03-02 14:37     ` Lennart Borgman (gmail)
2007-03-02 15:15       ` David Kastrup
2007-03-02 15:49     ` Stefan Monnier
2007-03-04 20:51       ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.