GNU bug report logs - #16591
-*-mode1-*- -*mode2-*-

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 30 Jan 2014 01:22:02 UTC

Severity: wishlist

Tags: notabug, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16591 in the body.
You can then email your comments to 16591 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 01:22:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 30 Jan 2014 01:22:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: -*-mode1-*- -*mode2-*-
Date: Thu, 30 Jan 2014 08:52:21 +0800
On (info "(emacs) Choosing Modes")
please mention the proper way for users to write
-*-mode1-*- -*mode2-*-
if they want both.





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 30 Jan 2014 02:44:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Thu, 30 Jan 2014 02:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 16591-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 16591-done <at> debbugs.gnu.org
Subject: Re: bug#16591: -*-mode1-*- -*mode2-*-
Date: Wed, 29 Jan 2014 21:43:02 -0500
It is not documented in the Emacs manual because stock Emacs does not
provide a method to allow two major modes. I believe some add-ons do;
it's up to them to document it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 10:30:02 GMT) Full text and rfc822 format available.

Message #13 received at 16591 <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: help-debbugs <at> gnu.org
Cc: 16591 <at> debbugs.gnu.org
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Thu, 30 Jan 2014 18:29:25 +0800
>>>>> "GbTS" == GNU bug Tracking System <help-debbugs <at> gnu.org> writes:

GbTS> It is not documented in the Emacs manual because stock Emacs does not
GbTS> provide a method to allow two major modes. I believe some add-ons do;
GbTS> it's up to them to document it.

OK but please mention how to get -*-text-*- and -*-flyspell-*- working
on the same line.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 13:42:02 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
To: bug-gnu-emacs <at> gnu.org
Cc: 16591 <at> debbugs.gnu.org, Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Thu, 30 Jan 2014 14:41:13 +0100
On Thursday 30 January 2014 18:29:25 Dan Jacobson wrote:
> >>>>> "GbTS" == GNU bug Tracking System <help-debbugs <at> gnu.org> writes:
> GbTS> It is not documented in the Emacs manual because stock Emacs does not
> GbTS> provide a method to allow two major modes. I believe some add-ons do;
> GbTS> it's up to them to document it.
> 
> OK but please mention how to get -*-text-*- and -*-flyspell-*- working
> on the same line.

-*- mode:text; mode:flyspell; -*-

But maybe you want to load `flyspell' in the `text-mode-hook' anyway.

Regards,
Rüdiger





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 13:42:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 13:57:02 GMT) Full text and rfc822 format available.

Message #22 received at 16591 <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
Cc: 16591 <at> debbugs.gnu.org
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Thu, 30 Jan 2014 21:56:20 +0800
On Thu, Jan 30, 2014 at 02:41:13PM +0100, Rüdiger Sonderfeld wrote:
> -*- mode:text; mode:flyspell; -*-
> 
> But maybe you want to load `flyspell' in the `text-mode-hook' anyway.
> 
OK people. Kindly document all that. Thanks!




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 30 Jan 2014 14:45:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 16:39:02 GMT) Full text and rfc822 format available.

Message #27 received at 16591 <at> debbugs.gnu.org (full text, mbox):

From: Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
To: bug-gnu-emacs <at> gnu.org
Cc: 16591 <at> debbugs.gnu.org, Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Thu, 30 Jan 2014 17:38:28 +0100
On Thursday 30 January 2014 21:56:20 Dan Jacobson wrote:
> On Thu, Jan 30, 2014 at 02:41:13PM +0100, Rüdiger Sonderfeld wrote:
> > -*- mode:text; mode:flyspell; -*-
> > 
> > But maybe you want to load `flyspell' in the `text-mode-hook' anyway.
> 
> OK people. Kindly document all that. Thanks!

It's what the documentation already says

> You can also use file-local variables to specify buffer-local minor
> modes, by using ‘eval’ specifications.  For example, this first nonblank
> 
> line puts the buffer in Lisp mode and enables Auto-Fill mode:
>      ; -*- mode: Lisp; eval: (auto-fill-mode 1); -*-
> 
> Note, however, that it is usually inappropriate to enable minor modes
> this way, since most minor modes represent individual user preferences.
> If you personally want to use a minor mode for a particular file type,
> it is better to enable the minor mode via a major mode hook (*note Major
> Modes::).





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 16:40:01 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 30 Jan 2014 17:04:03 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Thu, 30 Jan 2014 17:04:04 GMT) Full text and rfc822 format available.

Message #35 received at 16591-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 16591-done <at> debbugs.gnu.org
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Thu, 30 Jan 2014 12:03:24 -0500
Rüdiger Sonderfeld wrote:

>> > -*- mode:text; mode:flyspell; -*-
[...]
> It's what the documentation already says

Not exactly, since use of "mode" to enable minor-modes is deprecated.
The docs says to use "eval".

>> You can also use file-local variables to specify buffer-local minor
>> modes, by using 'eval' specifications.  For example, this first nonblank
>> 
>> line puts the buffer in Lisp mode and enables Auto-Fill mode:
>>      ; -*- mode: Lisp; eval: (auto-fill-mode 1); -*-




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 23:48:01 GMT) Full text and rfc822 format available.

Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dan Jacobson <jidanni <at> jidanni.org>
To: ruediger <at> c-plusplus.de
Cc: bug-gnu-emacs <at> gnu.org, 16591 <at> debbugs.gnu.org
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Fri, 31 Jan 2014 07:46:54 +0800
>>>>> "RS" == Rüdiger Sonderfeld <ruediger <at> c-plusplus.de> writes:

RS> It's what the documentation already says

No.

One cannot tell that

-*- mode:text; mode:flyspell; -*-

is also possible.

Please add the example.

Thank you.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16591; Package emacs. (Thu, 30 Jan 2014 23:48:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Feb 2014 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.