GNU bug report logs - #69934

Previous Next

Package: emacs;

Reported by: Robert Boyer <robertstephenboyer <at> gmail.com>

Date: Fri, 22 Mar 2024 01:19:01 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 69934 in the body.
You can then email your comments to 69934 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#69934; Package emacs. (Fri, 22 Mar 2024 01:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Boyer <robertstephenboyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Mar 2024 01:19:02 GMT) Full text and rfc822 format available.

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

From: Robert Boyer <robertstephenboyer <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Date: Thu, 21 Mar 2024 20:17:09 -0500
[Message part 1 (text/plain, inline)]
Could some kind soul give me a line like the following, but one that
includes 'auto-revert tail' and 'display-line'?

;;; -*- Mode: auto-revert -*-

Thanks,

Bob
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69934; Package emacs. (Fri, 22 Mar 2024 08:14:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Boyer <robertstephenboyer <at> gmail.com>
Cc: 69934 <at> debbugs.gnu.org
Subject: Re: bug#69934:
Date: Fri, 22 Mar 2024 09:22:08 +0200
tags 69934 notabug
thanks

> From: Robert Boyer <robertstephenboyer <at> gmail.com>
> Date: Thu, 21 Mar 2024 20:17:09 -0500
> 
> Could some kind soul give me a line like the following, but one that includes 'auto-revert tail' and 'display-line'?
> 
> ;;; -*- Mode: auto-revert -*-

Such requests for help should be posted to help-gnu-emacs <at> gnu.org, not
here.

To answer your question: it is better to use the file-local variables
section at the end of the file if you have more than one file-local
setting.  See the node "Specifying File Variables" in the Emacs user
manual for a detailed description.




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 22 Mar 2024 08:14:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69934; Package emacs. (Fri, 22 Mar 2024 08:26:03 GMT) Full text and rfc822 format available.

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

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Robert Boyer <robertstephenboyer <at> gmail.com>
Cc: 69934 <at> debbugs.gnu.org
Subject: Re: bug#69934:
Date: Fri, 22 Mar 2024 09:18:23 +0100
On Thu, 21 Mar 2024 20:17:09 -0500 Robert Boyer <robertstephenboyer <at> gmail.com> wrote:

> Could some kind soul give me a line like the following, but one that
> includes 'auto-revert tail' and 'display-line'?
>
> ;;; -*- Mode: auto-revert -*-

The Emacs manual says (evaluate this sexp if you have the Info file
installed: (info "(emacs) Specifying File Variables")):

      Do not use the ‘mode’ keyword for minor modes.  To enable or disable
   a minor mode in a local variables list, use the ‘eval’ keyword with a
   Lisp expression that runs the mode command (*note Minor Modes::).  For
   example, the following local variables list enables ElDoc mode (*note
   Programming Language Doc::) by calling ‘eldoc-mode’ with no argument
   (calling it with an argument of 1 would do the same), and disables Font
   Lock mode (*note Font Lock::) by calling ‘font-lock-mode’ with an
   argument of −1.
   
        ;; Local Variables:
        ;; eval: (eldoc-mode)
        ;; eval: (font-lock-mode -1)
        ;; End:
   
   Note, however, that it is often a mistake to specify minor modes this
   way.  Minor modes represent individual user preferences, and it may be
   inappropriate to impose your preferences on another user who might edit
   the file.  If you wish to automatically enable or disable a minor mode
   in a situation-dependent way, it is often better to do it in a major
   mode hook (*note Hooks::).

So you could use this:

;; -*- eval: (auto-revert-mode); eval: (auto-revert-tail-mode); eval: (display-line-numbers-mode) -*-

> Thanks,
>
> Bob

Steve Berman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69934; Package emacs. (Fri, 22 Mar 2024 14:04:01 GMT) Full text and rfc822 format available.

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

From: Robert Boyer <robertstephenboyer <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 69934 <at> debbugs.gnu.org
Subject: Re: bug#69934:
Date: Fri, 22 Mar 2024 09:01:28 -0500
[Message part 1 (text/plain, inline)]
Thanks for your very kind reply.

I will use help-gnu-emacs in the future for such pleas for help.

I do understand your suggestion to use the end of file stuff.  I use
it all the time.

However, in my one particular case I have a huge file
that is growing at the end and I love to watch it with 'tail' mode
and line numbers.

Thanks,

Bob


On Fri, Mar 22, 2024 at 2:22 AM Eli Zaretskii <eliz <at> gnu.org> wrote:

> tags 69934 notabug
> thanks
>
> > From: Robert Boyer <robertstephenboyer <at> gmail.com>
> > Date: Thu, 21 Mar 2024 20:17:09 -0500
> >
> > Could some kind soul give me a line like the following, but one that
> includes 'auto-revert tail' and 'display-line'?
> >
> > ;;; -*- Mode: auto-revert -*-
>
> Such requests for help should be posted to help-gnu-emacs <at> gnu.org, not
> here.
>
> To answer your question: it is better to use the file-local variables
> section at the end of the file if you have more than one file-local
> setting.  See the node "Specifying File Variables" in the Emacs user
> manual for a detailed description.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69934; Package emacs. (Fri, 22 Mar 2024 14:20:02 GMT) Full text and rfc822 format available.

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

From: Robert Boyer <robertstephenboyer <at> gmail.com>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 69934 <at> debbugs.gnu.org, help-gnu-emacs <at> gnu.org
Subject: Re: bug#69934:
Date: Fri, 22 Mar 2024 09:17:03 -0500
[Message part 1 (text/plain, inline)]
God bless you.

Just what I needed.

Thanks so much,

Bob


On Fri, Mar 22, 2024 at 3:18 AM Stephen Berman <stephen.berman <at> gmx.net>
wrote:

> On Thu, 21 Mar 2024 20:17:09 -0500 Robert Boyer <
> robertstephenboyer <at> gmail.com> wrote:
>
> > Could some kind soul give me a line like the following, but one that
> > includes 'auto-revert tail' and 'display-line'?
> >
> > ;;; -*- Mode: auto-revert -*-
>
> The Emacs manual says (evaluate this sexp if you have the Info file
> installed: (info "(emacs) Specifying File Variables")):
>
>       Do not use the ‘mode’ keyword for minor modes.  To enable or disable
>    a minor mode in a local variables list, use the ‘eval’ keyword with a
>    Lisp expression that runs the mode command (*note Minor Modes::).  For
>    example, the following local variables list enables ElDoc mode (*note
>    Programming Language Doc::) by calling ‘eldoc-mode’ with no argument
>    (calling it with an argument of 1 would do the same), and disables Font
>    Lock mode (*note Font Lock::) by calling ‘font-lock-mode’ with an
>    argument of −1.
>
>         ;; Local Variables:
>         ;; eval: (eldoc-mode)
>         ;; eval: (font-lock-mode -1)
>         ;; End:
>
>    Note, however, that it is often a mistake to specify minor modes this
>    way.  Minor modes represent individual user preferences, and it may be
>    inappropriate to impose your preferences on another user who might edit
>    the file.  If you wish to automatically enable or disable a minor mode
>    in a situation-dependent way, it is often better to do it in a major
>    mode hook (*note Hooks::).
>
> So you could use this:
>
> ;; -*- eval: (auto-revert-mode); eval: (auto-revert-tail-mode); eval:
> (display-line-numbers-mode) -*-
>
> > Thanks,
> >
> > Bob
>
> Steve Berman
>
[Message part 2 (text/html, inline)]

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sun, 30 Jun 2024 06:00:03 GMT) Full text and rfc822 format available.

Notification sent to Robert Boyer <robertstephenboyer <at> gmail.com>:
bug acknowledged by developer. (Sun, 30 Jun 2024 06:00:04 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Robert Boyer <robertstephenboyer <at> gmail.com>, 69934-done <at> debbugs.gnu.org
Subject: Re: bug#69934: nil
Date: Sat, 29 Jun 2024 22:57:56 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> tags 69934 notabug
> thanks
>
>> From: Robert Boyer <robertstephenboyer <at> gmail.com>
>> Date: Thu, 21 Mar 2024 20:17:09 -0500
>>
>> Could some kind soul give me a line like the following, but one that includes 'auto-revert tail' and 'display-line'?
>>
>> ;;; -*- Mode: auto-revert -*-
>
> Such requests for help should be posted to help-gnu-emacs <at> gnu.org, not
> here.
>
> To answer your question: it is better to use the file-local variables
> section at the end of the file if you have more than one file-local
> setting.  See the node "Specifying File Variables" in the Emacs user
> manual for a detailed description.

I'm therefore closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 28 Jul 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 326 days ago.

Previous Next


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