GNU bug report logs - #68921
File and Buffer register functions.

Previous Next

Package: emacs;

Reported by: Barra Ó Catháin <barra <at> ocathain.ie>

Date: Sun, 4 Feb 2024 03:39:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thievol <at> posteo.net>
To: 68921 <at> debbugs.gnu.org
Cc: barra <at> ocathain.ie
Subject: bug#68921: File and Buffer register functions.
Date: Sun, 04 Feb 2024 06:45:56 +0000
Thierry Volpiatto <thievol <at> posteo.net> writes:

> Barra Ó Catháin via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs <at> gnu.org> writes:
>
>> Hello!
>>
>> I noticed that files and buffers don't have "to-register" functions of
>> their own, rather, relying on (set-register).
>
> The reason is that when your use `point-to-register`, a position is
> recorded in the buffer, and when you kill this buffer your register
> record (a marker) is transformed in a file-query register:
>
> Example:
>
> If I do C-x r SPC in init.el, register record a register like this:
>
>     (119 . #<marker at 76829 in init.el>)
>
> Then I kill init.el buffer, I have now in register-alist instead of the
> register above:
>
>     (122 file-query "/path/to/init.el" 76829) 
       ^^^
       119

Sorry, for the error when copying.

-- 
Thierry




This bug report was last modified 1 year and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.