diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-07-07 11:56:31 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-07-07 11:56:31 +0300 |
commit | 74f43f82e6b4702027d99edb6ca125f3243ce4ba (patch) | |
tree | 7d8fbfec626fe32b87ea7518219a5365d47bfd3e /lisp/net/net-utils.el | |
parent | b075a59a1a4ddfd0668da4fb2312a6ec747dd53b (diff) | |
download | emacs-74f43f82e6b4702027d99edb6ca125f3243ce4ba.tar.gz emacs-74f43f82e6b4702027d99edb6ca125f3243ce4ba.tar.bz2 emacs-74f43f82e6b4702027d99edb6ca125f3243ce4ba.zip |
Fix undo of changes in cloned indirect buffers
* lisp/simple.el (primitive-undo): If the visited-modtime of the
indirect buffer's file is bogus, use the modtime of the file
visited by its base buffer.
* src/undo.c (record_first_change): Call
'buffer_visited_file_modtime' with the correct buffer, instead of
always calling 'Fvisited_file_modtime', which returns possibly
bogus values for indirect buffers.
* src/fileio.c (Fset_visited_file_modtime): Signal a meaningful
error for indirect buffers.
(buffer_visited_file_modtime): New function, with implementation
taken from 'Fvisited_file_modtime'.
(Fvisited_file_modtime): Call 'buffer_visited_file_modtime'.
* src/lisp.h: Add prototype for 'buffer_visited_file_modtime'.
(Bug#56397)
Diffstat (limited to 'lisp/net/net-utils.el')
0 files changed, 0 insertions, 0 deletions