GNU bug report logs -
#69934
Previous Next
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.
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):
[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):
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):
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):
[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):
[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):
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.