* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
@ 2022-06-29 1:00 Mike Kupfer
2022-06-29 10:22 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Mike Kupfer @ 2022-06-29 1:00 UTC (permalink / raw)
To: 56291
Awhile back, I wanted to get numbered backup files for my Gnus
.newsrc.eld file, at least for a few days until I figured out why it was
getting trashed occasionally. It took me quite some time to get it to
work, because I didn't know about gnus-backup-startup-file, and I
misunderstood part of the Info page "Backup Names". That page says
You can have Emacs set ‘version-control’ locally whenever you visit
a given file (*note File Variables::). Some modes, such as Rmail
mode, set this variable.
I think that last sentence would be clearer as
Some packages, such as Rmail, override the global setting of
‘version-control’ in this manner.
thanks,
mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 1:00 bug#56291: 29.0.50; version-control versus gnus-backup-startup-file Mike Kupfer
@ 2022-06-29 10:22 ` Lars Ingebrigtsen
2022-06-29 14:38 ` Mike Kupfer
0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-29 10:22 UTC (permalink / raw)
To: Mike Kupfer; +Cc: 56291
Mike Kupfer <mkupfer@alum.berkeley.edu> writes:
> Awhile back, I wanted to get numbered backup files for my Gnus
> .newsrc.eld file, at least for a few days until I figured out why it was
> getting trashed occasionally. It took me quite some time to get it to
> work, because I didn't know about gnus-backup-startup-file, and I
> misunderstood part of the Info page "Backup Names". That page says
>
> You can have Emacs set ‘version-control’ locally whenever you visit
> a given file (*note File Variables::). Some modes, such as Rmail
> mode, set this variable.
>
> I think that last sentence would be clearer as
>
> Some packages, such as Rmail, override the global setting of
> ‘version-control’ in this manner.
I don't think that's correct, though? rmail-mode doesn't use file
variables, it does:
(setq-local version-control 'never)
So it doesn't set version-control "in this manner", as far as I can tell?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 10:22 ` Lars Ingebrigtsen
@ 2022-06-29 14:38 ` Mike Kupfer
2022-06-29 14:44 ` Mike Kupfer
2022-06-29 16:05 ` Eli Zaretskii
0 siblings, 2 replies; 8+ messages in thread
From: Mike Kupfer @ 2022-06-29 14:38 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 56291
Lars Ingebrigtsen wrote:
> Mike Kupfer <mkupfer@alum.berkeley.edu> writes:
> > Some packages, such as Rmail, override the global setting of
> > ‘version-control’ in this manner.
>
> I don't think that's correct, though? rmail-mode doesn't use file
> variables, it does:
>
> (setq-local version-control 'never)
>
> So it doesn't set version-control "in this manner", as far as I can tell?
Fair enough. How about
The usual way to set this variable is globally, through your init
file or the customization buffer. However, you can set
‘version-control’ locally in an individual buffer to control the
making of backups for that buffer’s file (*note Locals::). Some
packages, such as Rmail, override the global setting of
‘version-control’ this way. You can also have Emacs set
‘version-control’ locally whenever you visit a given file (*note File
Variables::).
?
mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 14:38 ` Mike Kupfer
@ 2022-06-29 14:44 ` Mike Kupfer
2022-06-29 16:05 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Mike Kupfer @ 2022-06-29 14:44 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 56291
Mike Kupfer wrote:
> How about
>
> The usual way to set this variable is globally, through your init
> file or the customization buffer. However, you can set
> ‘version-control’ locally in an individual buffer to control the
> making of backups for that buffer’s file (*note Locals::). Some
> packages, such as Rmail, override the global setting of
> ‘version-control’ this way. You can also have Emacs set
> ‘version-control’ locally whenever you visit a given file (*note File
> Variables::).
Or maybe put the last sentence in a separate paragraph?
mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 14:38 ` Mike Kupfer
2022-06-29 14:44 ` Mike Kupfer
@ 2022-06-29 16:05 ` Eli Zaretskii
2022-06-29 16:17 ` Mike Kupfer
1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-06-29 16:05 UTC (permalink / raw)
To: Mike Kupfer; +Cc: 56291, larsi
> Cc: 56291@debbugs.gnu.org
> From: Mike Kupfer <mkupfer@alum.berkeley.edu>
> Date: Wed, 29 Jun 2022 07:38:28 -0700
>
> Lars Ingebrigtsen wrote:
>
> > Mike Kupfer <mkupfer@alum.berkeley.edu> writes:
> > > Some packages, such as Rmail, override the global setting of
> > > ‘version-control’ in this manner.
> >
> > I don't think that's correct, though? rmail-mode doesn't use file
> > variables, it does:
> >
> > (setq-local version-control 'never)
> >
> > So it doesn't set version-control "in this manner", as far as I can tell?
>
> Fair enough. How about
>
> The usual way to set this variable is globally, through your init
> file or the customization buffer. However, you can set
> ‘version-control’ locally in an individual buffer to control the
> making of backups for that buffer’s file (*note Locals::). Some
> packages, such as Rmail, override the global setting of
> ‘version-control’ this way. You can also have Emacs set
> ‘version-control’ locally whenever you visit a given file (*note File
> Variables::).
>
> ?
The point of the example is to illustrate the local setting of the
variable, so talking about packages that set the global value misses
the point, and shouldn't be there. If Rmail is a bad example, then we
should find a better one, and mention only those.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 16:05 ` Eli Zaretskii
@ 2022-06-29 16:17 ` Mike Kupfer
2022-06-29 17:21 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Mike Kupfer @ 2022-06-29 16:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 56291, larsi
Eli Zaretskii wrote:
> > Cc: 56291@debbugs.gnu.org
> > From: Mike Kupfer <mkupfer@alum.berkeley.edu>
> > Date: Wed, 29 Jun 2022 07:38:28 -0700
> >
> > Fair enough. How about
> >
> > The usual way to set this variable is globally, through your init
> > file or the customization buffer. However, you can set
> > ‘version-control’ locally in an individual buffer to control the
> > making of backups for that buffer’s file (*note Locals::). Some
> > packages, such as Rmail, override the global setting of
> > ‘version-control’ this way. You can also have Emacs set
> > ‘version-control’ locally whenever you visit a given file (*note File
> > Variables::).
> >
> > ?
>
> The point of the example is to illustrate the local setting of the
> variable, so talking about packages that set the global value misses
> the point, and shouldn't be there. If Rmail is a bad example, then we
> should find a better one, and mention only those.
Okay, I guess "override the global setting" is too confusing. Rmail
only sets it locally. Does this work better:
The usual way to set this variable is globally, through your init
file or the customization buffer. However, you can set
‘version-control’ locally in an individual buffer to control the
making of backups for that buffer’s file (*note Locals::). Some
packages, such as Rmail, do this. You can also have Emacs set
‘version-control’ locally whenever you visit a given file (*note
File Variables::).
?
mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 16:17 ` Mike Kupfer
@ 2022-06-29 17:21 ` Eli Zaretskii
2022-06-30 9:21 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-06-29 17:21 UTC (permalink / raw)
To: Mike Kupfer; +Cc: 56291, larsi
> From: Mike Kupfer <mkupfer@alum.berkeley.edu>
> cc: larsi@gnus.org, 56291@debbugs.gnu.org
> Date: Wed, 29 Jun 2022 09:17:35 -0700
>
> The usual way to set this variable is globally, through your init
> file or the customization buffer. However, you can set
> ‘version-control’ locally in an individual buffer to control the
> making of backups for that buffer’s file (*note Locals::). Some
> packages, such as Rmail, do this. You can also have Emacs set
> ‘version-control’ locally whenever you visit a given file (*note
> File Variables::).
SGTM, thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#56291: 29.0.50; version-control versus gnus-backup-startup-file
2022-06-29 17:21 ` Eli Zaretskii
@ 2022-06-30 9:21 ` Lars Ingebrigtsen
0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-30 9:21 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 56291, Mike Kupfer
Eli Zaretskii <eliz@gnu.org> writes:
>> The usual way to set this variable is globally, through your init
>> file or the customization buffer. However, you can set
>> ‘version-control’ locally in an individual buffer to control the
>> making of backups for that buffer’s file (*note Locals::). Some
>> packages, such as Rmail, do this. You can also have Emacs set
>> ‘version-control’ locally whenever you visit a given file (*note
>> File Variables::).
>
> SGTM, thanks.
Now pushed to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-30 9:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-29 1:00 bug#56291: 29.0.50; version-control versus gnus-backup-startup-file Mike Kupfer
2022-06-29 10:22 ` Lars Ingebrigtsen
2022-06-29 14:38 ` Mike Kupfer
2022-06-29 14:44 ` Mike Kupfer
2022-06-29 16:05 ` Eli Zaretskii
2022-06-29 16:17 ` Mike Kupfer
2022-06-29 17:21 ` Eli Zaretskii
2022-06-30 9:21 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.