From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Boyer Newsgroups: gmane.emacs.bugs,gmane.emacs.help Subject: bug#69934: Date: Fri, 22 Mar 2024 09:17:03 -0500 Message-ID: References: <874jcysmr4.fsf@gmx.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008c54260614407cea" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2598"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69934@debbugs.gnu.org, help-gnu-emacs@gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 22 15:19:58 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rnfkT-0000VZ-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Mar 2024 15:19:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnfjx-0006Ft-8U; Fri, 22 Mar 2024 10:19:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnfjt-0006FO-TD for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2024 10:19:21 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnfjt-0005xG-LC for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2024 10:19:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rnfkY-0008Es-2H for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2024 10:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Boyer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2024 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69934 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 69934-submit@debbugs.gnu.org id=B69934.171111716931593 (code B ref 69934); Fri, 22 Mar 2024 14:20:02 +0000 Original-Received: (at 69934) by debbugs.gnu.org; 22 Mar 2024 14:19:29 +0000 Original-Received: from localhost ([127.0.0.1]:56441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnfk0-0008DU-S8 for submit@debbugs.gnu.org; Fri, 22 Mar 2024 10:19:29 -0400 Original-Received: from mail-ej1-f45.google.com ([209.85.218.45]:52262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnfjz-0008DA-0w for 69934@debbugs.gnu.org; Fri, 22 Mar 2024 10:19:27 -0400 Original-Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a46de423039so132356366b.0 for <69934@debbugs.gnu.org>; Fri, 22 Mar 2024 07:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711117060; x=1711721860; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AVF99BH64iCfzGmNWv0X/nnYMa1lV3oEKVDuq63kmWU=; b=Im5eRhfaN2Ol800nAuKs8BMPPpe063bF1pEd5OYKxmXMAu6fEnCEHWtP9olDkZ2bY8 ggM9too4Ulmx8Ip6kqtGm8EtRLmPYJ8c+P+56qYFfTRl/6eoQkfUlLgb4bVw8lB7pNTB 9oRm28c2EgwAl138T++SDwB8iD5DsUn9iqa+RXbkzEMAQC8AzLo3y4RnCXeU7Nnb2z+b mOWa4aqEB348ERirNgkD6g5GwCbORvVT6uovzcya5vD+FEKlXReKBc37y+C/IMcVfSn8 FZaB71QzQnkPycgMf+4ArVGFbnOI0aSIdb6nasZpKCxV/PE0kKQ13WQ3sfau8vFL+be+ RujQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711117060; x=1711721860; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AVF99BH64iCfzGmNWv0X/nnYMa1lV3oEKVDuq63kmWU=; b=cd2HipEIdNOlJJu6VgMdcx+V4/HQcrFp/VcQlhyDcFOd1XUuE3yWDe8x0SrrxSNIJw 6Y1/mvgp6maU/4b8Tc2F2bTOmTMO60Vq0T+hyXJEyfhRNagd5fB72Fh7RfI94Qw628Wi OoP0apsTwjaCuULOkgQFdH5YUW7Q9DTANRbra2Nyyj7V8Nx98+m0ofcj7GdsWS94iJBL H9K89f+8WgudT5PqwNwQXoUC+ij+ii6nBCFjFYgHvZSRFqg8r+MizXhUs4ysW0zNM169 LerGYzNfdeE717qSD/RGrHeVREzBkuc5R3eD5JwEbjkX3aFfOYi4YFtFS2HhoNf84mNh cEgQ== X-Gm-Message-State: AOJu0Yw1nX98pa5wSyYRr3udx5CGeVJuTvBJDAhKc8hHoixy4CR/w33X ehoJ9JI/WPrQTvs0ROxoNlQJ10I06HeZDWX/D1bbZ6JRNOD9aRwI038+MuS7/1A1zTGVgZ0SznW bnR4ys56wOH9WEPpWzjBBvhgjPFs= X-Google-Smtp-Source: AGHT+IE+F9uJUhyK4V693O/N8/wW39qgHIwXKsvYG3HS4SqCGvDcFfN25mJJ1pLoXxVwUIVyVbBlFH+ncn7b5o9rKYY= X-Received: by 2002:a50:d786:0:b0:565:7ce5:abdb with SMTP id w6-20020a50d786000000b005657ce5abdbmr1964200edi.10.1711117060294; Fri, 22 Mar 2024 07:17:40 -0700 (PDT) In-Reply-To: <874jcysmr4.fsf@gmx.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281941 gmane.emacs.help:146157 Archived-At: --0000000000008c54260614407cea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable God bless you. Just what I needed. Thanks so much, Bob On Fri, Mar 22, 2024 at 3:18=E2=80=AFAM Stephen Berman 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 =E2=80=98mode=E2=80=99 keyword for minor modes. To = enable or disable > a minor mode in a local variables list, use the =E2=80=98eval=E2=80=99= 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 =E2=80=98eldoc-mode=E2=80=99 wi= th no argument > (calling it with an argument of 1 would do the same), and disables Fon= t > Lock mode (*note Font Lock::) by calling =E2=80=98font-lock-mode=E2=80= =99 with an > argument of =E2=88=921. > > ;; 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 edi= t > 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 > --0000000000008c54260614407cea Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
God bless you.

Just what I needed.

Thanks so much,

Bob


On Fri, Mar 22, 2024 at 3:18=E2=80=AFAM Stephen Berman = <stephen.berman@gmx.net>= ; wrote:
On Thu,= 21 Mar 2024 20:17:09 -0500 Robert Boyer <robertstephenboyer@gmail.com> wr= ote:

> 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")):

=C2=A0 =C2=A0 =C2=A0 Do not use the =E2=80=98mode=E2=80=99 keyword for mino= r modes.=C2=A0 To enable or disable
=C2=A0 =C2=A0a minor mode in a local variables list, use the =E2=80=98eval= =E2=80=99 keyword with a
=C2=A0 =C2=A0Lisp expression that runs the mode command (*note Minor Modes:= :).=C2=A0 For
=C2=A0 =C2=A0example, the following local variables list enables ElDoc mode= (*note
=C2=A0 =C2=A0Programming Language Doc::) by calling =E2=80=98eldoc-mode=E2= =80=99 with no argument
=C2=A0 =C2=A0(calling it with an argument of 1 would do the same), and disa= bles Font
=C2=A0 =C2=A0Lock mode (*note Font Lock::) by calling =E2=80=98font-lock-mo= de=E2=80=99 with an
=C2=A0 =C2=A0argument of =E2=88=921.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Local Variables:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; eval: (eldoc-mode)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; eval: (font-lock-mode -1)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; End:

=C2=A0 =C2=A0Note, however, that it is often a mistake to specify minor mod= es this
=C2=A0 =C2=A0way.=C2=A0 Minor modes represent individual user preferences, = and it may be
=C2=A0 =C2=A0inappropriate to impose your preferences on another user who m= ight edit
=C2=A0 =C2=A0the file.=C2=A0 If you wish to automatically enable or disable= a minor mode
=C2=A0 =C2=A0in a situation-dependent way, it is often better to do it in a= major
=C2=A0 =C2=A0mode hook (*note Hooks::).

So you could use this:

;; -*- eval: (auto-revert-mode); eval: (auto-revert-tail-mode); eval: (disp= lay-line-numbers-mode) -*-

> Thanks,
>
> Bob

Steve Berman
--0000000000008c54260614407cea--