unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: yary <not.com@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 15659@debbugs.gnu.org
Subject: bug#15659: 24.1; (wishlist) Simple method for preserving minor-mode
Date: Sun, 20 Oct 2013 09:26:44 -0400	[thread overview]
Message-ID: <CAG2CFAbCgsbrkA=Zpn33v0ADVK2bWW7mna1vMaOm_BqHV+hKsQ@mail.gmail.com> (raw)
In-Reply-To: <jwv38nwafrl.fsf-monnier+emacsbugs@gnu.org>

On Sat, Oct 19, 2013 at 9:33 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> There are times when I wish to set a minor-mode permanently for a
>> buffer, even through major-mode changes. They are display-related
>> minor-modes, such as buffer-face-mode or text-scale-mode.
>
> Indeed, those two should probably be make "permanent local".

That's a better solution than prompting people to make permanent those
minor-modes themselves, via some new generic method for preserving any
minor mode.

I can still see a reason to have something like a `:local-variables'
keyword for any mode definition, minor or major- to help `desktop
save/recover' properly handle the buffer state. Doubtless there would
be yet more uses I haven't thought of.





  reply	other threads:[~2013-10-20 13:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-20  0:22 bug#15659: 24.1; (wishlist) Simple method for preserving minor-mode yary
2013-10-20  1:33 ` Stefan Monnier
2013-10-20 13:26   ` yary [this message]
2013-11-08 20:29 ` Stefan Monnier
2021-12-04  3:37   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG2CFAbCgsbrkA=Zpn33v0ADVK2bWW7mna1vMaOm_BqHV+hKsQ@mail.gmail.com' \
    --to=not.com@gmail.com \
    --cc=15659@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).