unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13286: save-place-to-alist could call abbreviate-file-name
@ 2012-12-27 15:33 Peter Eisentraut
  2013-01-03 16:22 ` Stefan Monnier
  2021-07-15 16:04 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Eisentraut @ 2012-12-27 15:33 UTC (permalink / raw)
  To: 13286

This is a wishlist item that applies to all released Emacs versions and
current Git master.

I suggest that save-place-to-alist in lisp/saveplace.el be enabled to
call abbreviate-file-name on the file names it writes out to the
.emacs-places file.  That way, it is easier (or possible) to share this
file across hosts, if for example the home directories are in a
different place.

Ideally, this could just be done all the time, but maybe there is a
reason for this not to be done?  In that case, maybe a Boolean
configuration variable or a filter function could be used.

I can also try to supply a patch if there is an agreement on the approach.





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

* bug#13286: save-place-to-alist could call abbreviate-file-name
  2012-12-27 15:33 bug#13286: save-place-to-alist could call abbreviate-file-name Peter Eisentraut
@ 2013-01-03 16:22 ` Stefan Monnier
  2021-07-15 16:04 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2013-01-03 16:22 UTC (permalink / raw)
  To: Peter Eisentraut; +Cc: 13286

> I suggest that save-place-to-alist in lisp/saveplace.el be enabled to
> call abbreviate-file-name on the file names it writes out to the
> .emacs-places file.

That would make a lot of sense, yes.


        Stefan





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

* bug#13286: save-place-to-alist could call abbreviate-file-name
  2012-12-27 15:33 bug#13286: save-place-to-alist could call abbreviate-file-name Peter Eisentraut
  2013-01-03 16:22 ` Stefan Monnier
@ 2021-07-15 16:04 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-15 16:04 UTC (permalink / raw)
  To: Peter Eisentraut; +Cc: 13286

Peter Eisentraut <peter_e@gmx.net> writes:

> This is a wishlist item that applies to all released Emacs versions and
> current Git master.
>
> I suggest that save-place-to-alist in lisp/saveplace.el be enabled to
> call abbreviate-file-name on the file names it writes out to the
> .emacs-places file.  That way, it is easier (or possible) to share this
> file across hosts, if for example the home directories are in a
> different place.
>
> Ideally, this could just be done all the time, but maybe there is a
> reason for this not to be done?  In that case, maybe a Boolean
> configuration variable or a filter function could be used.

I've now added this user option to Emacs 28 under the name
`save-place-abbreviate-file-names'.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-07-15 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-27 15:33 bug#13286: save-place-to-alist could call abbreviate-file-name Peter Eisentraut
2013-01-03 16:22 ` Stefan Monnier
2021-07-15 16:04 ` Lars Ingebrigtsen

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