all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105470: Improve documentation of `special' modes.
Date: Wed, 17 Aug 2011 09:57:27 +0300	[thread overview]
Message-ID: <831uwkttig.fsf@gnu.org> (raw)
In-Reply-To: <jwvbovpwajd.fsf-monnier+emacs@gnu.org>

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: emacs-devel@gnu.org
> Date: Tue, 16 Aug 2011 13:11:22 -0400
> 
> > I don't actually have a good understanding of why would a mode want to
> > behave like that.  The above explanation is purely phenomenological,
> > so if I would need to determine whether my mode needs it, I'd be
> > probably stumped.  I don't really see the connection between
> > "specially-prepared" and "don't use me as the default mode".
> > Can you explain the considerations for when to use this feature?  I
> > will then clarify this in the manual.
> 
> Indeed, I'm just as lost as you are :-(
> For that reason, I'd be happy to get rid of this "use as the default
> mode" thingy.  I.e. we should simply never inherit the major mode of new
> buffers from the current buffer (if the global value of major-mode is
> nil, then the default major-mode when creating a new buffer will be
> fundamental-mode, and that's it).

Are we sure the nil-means-use-current-buffer-major-mode feature is not
used too much to get rid of it?

And if we do that, how would a Lisp program specify that the major
mode of the current buffer is to be used for a newly created buffer?



  reply	other threads:[~2011-08-17  6:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1QtFlp-0000bn-JP@vcs.savannah.gnu.org>
     [not found] ` <jwvk4adxx0u.fsf-monnier+emacs@gnu.org>
     [not found]   ` <838vqttoaf.fsf@gnu.org>
2011-08-16 17:11     ` [Emacs-diffs] /srv/bzr/emacs/trunk r105470: Improve documentation of `special' modes Stefan Monnier
2011-08-17  6:57       ` Eli Zaretskii [this message]
2011-08-17 14:02         ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=831uwkttig.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@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 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.