]> git.eshelyaron.com Git - emacs.git/commit
Fix indirect font changes incorrectly affecting original buffer
authorAndrew Hyatt <ahyatt@gmail.com>
Thu, 20 Jan 2022 13:42:31 +0000 (14:42 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Jan 2022 13:42:31 +0000 (14:42 +0100)
commit27b3948a8a29f263272d10c1ee1c50d87797ff50
treea7e2dc038e64fb1b8d0ae9eeb2bf842e7fe52905
parent4450c8bdd93d1b2e7f276e26be2cc37372034c22
Fix indirect font changes incorrectly affecting original buffer

* lisp/face-remap.el (face-attrs--make-indirect-safe):
(clone-indirect-buffer-hook): Set up a face remapping alist
(bug#53294).

* lisp/simple.el (clone-indirect-buffer): Move the point the hook
is run.

* src/buffer.c (Fmake_indirect_buffer, syms_of_buffer): Move the
place where the clone-indirect-buffer-hook variable is defined, so
that we can call it from C.
lisp/face-remap.el
lisp/simple.el
src/buffer.c