unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69934:
@ 2024-03-22  1:17 Robert Boyer
  2024-03-22  7:22 ` bug#69934: Eli Zaretskii
  2024-03-22  8:18 ` bug#69934: Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 6+ messages in thread
From: Robert Boyer @ 2024-03-22  1:17 UTC (permalink / raw)
  To: 69934

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 718 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#69934:
  2024-03-22  1:17 bug#69934: Robert Boyer
@ 2024-03-22  7:22 ` Eli Zaretskii
  2024-03-22 14:01   ` bug#69934: Robert Boyer
  2024-06-30  5:57   ` bug#69934: nil Stefan Kangas
  2024-03-22  8:18 ` bug#69934: Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2024-03-22  7:22 UTC (permalink / raw)
  To: Robert Boyer; +Cc: 69934

tags 69934 notabug
thanks

> From: Robert Boyer <robertstephenboyer@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@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#69934:
  2024-03-22  1:17 bug#69934: Robert Boyer
  2024-03-22  7:22 ` bug#69934: Eli Zaretskii
@ 2024-03-22  8:18 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-22 14:17   ` bug#69934: Robert Boyer
  1 sibling, 1 reply; 6+ messages in thread
From: Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-22  8:18 UTC (permalink / raw)
  To: Robert Boyer; +Cc: 69934

On Thu, 21 Mar 2024 20:17:09 -0500 Robert Boyer <robertstephenboyer@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#69934:
  2024-03-22  7:22 ` bug#69934: Eli Zaretskii
@ 2024-03-22 14:01   ` Robert Boyer
  2024-06-30  5:57   ` bug#69934: nil Stefan Kangas
  1 sibling, 0 replies; 6+ messages in thread
From: Robert Boyer @ 2024-03-22 14:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 69934

[-- Attachment #1: Type: text/plain, Size: 1080 bytes --]

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@gnu.org> wrote:

> tags 69934 notabug
> thanks
>
> > From: Robert Boyer <robertstephenboyer@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@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.
>

[-- Attachment #2: Type: text/html, Size: 2517 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#69934:
  2024-03-22  8:18 ` bug#69934: Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-22 14:17   ` Robert Boyer
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Boyer @ 2024-03-22 14:17 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 69934, help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

God bless you.

Just what I needed.

Thanks so much,

Bob


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

> On Thu, 21 Mar 2024 20:17:09 -0500 Robert Boyer <
> robertstephenboyer@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
>

[-- Attachment #2: Type: text/html, Size: 2892 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#69934: nil
  2024-03-22  7:22 ` bug#69934: Eli Zaretskii
  2024-03-22 14:01   ` bug#69934: Robert Boyer
@ 2024-06-30  5:57   ` Stefan Kangas
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Kangas @ 2024-06-30  5:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Boyer, 69934-done

Eli Zaretskii <eliz@gnu.org> writes:

> tags 69934 notabug
> thanks
>
>> From: Robert Boyer <robertstephenboyer@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@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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-30  5:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22  1:17 bug#69934: Robert Boyer
2024-03-22  7:22 ` bug#69934: Eli Zaretskii
2024-03-22 14:01   ` bug#69934: Robert Boyer
2024-06-30  5:57   ` bug#69934: nil Stefan Kangas
2024-03-22  8:18 ` bug#69934: Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-22 14:17   ` bug#69934: Robert Boyer

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).