[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68921: File and Buffer register functions.
From: |
Thierry Volpiatto |
Subject: |
bug#68921: File and Buffer register functions. |
Date: |
Sun, 04 Feb 2024 06:45:56 +0000 |
Thierry Volpiatto <thievol@posteo.net> writes:
> Barra Ó Catháin via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs@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