aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2020-03-30 07:50:37 -0700
committerGlenn Morris2020-03-30 07:50:37 -0700
commitfa4eec5cfa8121837e5d5b89e623ba478f0759ad (patch)
tree38ef4f6bb4dafbd463053bb06ad9eaf25bb49037 /src
parent8911d0899713132ccc2299b0700dac3315c44de0 (diff)
parentc6e0981b96eaa12c28b70c949ccd6e426c13df4d (diff)
downloademacs-fa4eec5cfa8121837e5d5b89e623ba478f0759ad.tar.gz
emacs-fa4eec5cfa8121837e5d5b89e623ba478f0759ad.zip
Merge from origin/emacs-27
c6e0981b96 (origin/emacs-27) * lisp/image/image-converter.el: Fix cus... 461bd9cc20 Fix url-cookie.el for lexical binding f3ccfb1926 ; * src/decompress.c: Fix comment style. 1af03e7e92 ; * src/xfaces.c (syms_of_xfaces): Fix wording and typo. 93945fcd19 ; * test/lisp/calc/calc-tests.el: Fix mistake in last commit ee47e00f4e Don't suggest setting face-remapping-alist to a literal (B... c2b8ce4439 Calc: don't treat nil as an integer (bug#40155) e1f0e08922 * lisp/files.el (directory-files-recursively): Doc fix. (... 02b3820315 Document how to disable Tramp file archives
Diffstat (limited to 'src')
-rw-r--r--src/decompress.c6
-rw-r--r--src/xfaces.c7
2 files changed, 8 insertions, 5 deletions
diff --git a/src/decompress.c b/src/decompress.c
index 5d246387e76..8e8f2443111 100644
--- a/src/decompress.c
+++ b/src/decompress.c
@@ -87,7 +87,7 @@ unwind_decompress (void *ddata)
87 0); 87 0);
88 update_compositions (data->start, data->start, CHECK_HEAD); 88 update_compositions (data->start, data->start, CHECK_HEAD);
89 /* "Balance" the before-change-functions call, which would 89 /* "Balance" the before-change-functions call, which would
90 otherwise be left "hanging". */ 90 otherwise be left "hanging". */
91 signal_after_change (data->orig, data->start - data->orig, 91 signal_after_change (data->orig, data->start - data->orig,
92 data->start - data->orig); 92 data->start - data->orig);
93 } 93 }
@@ -159,7 +159,7 @@ This function can be called only in unibyte buffers. */)
159 istart = XFIXNUM (start); 159 istart = XFIXNUM (start);
160 iend = XFIXNUM (end); 160 iend = XFIXNUM (end);
161 161
162 /* Do the following before manipulating the gap. */ 162 /* Do the following before manipulating the gap. */
163 modify_text (istart, iend); 163 modify_text (istart, iend);
164 164
165 move_gap_both (iend, iend); 165 move_gap_both (iend, iend);
@@ -224,7 +224,7 @@ This function can be called only in unibyte buffers. */)
224 unwind_data.start = 0; 224 unwind_data.start = 0;
225 225
226 /* Delete the compressed data. */ 226 /* Delete the compressed data. */
227 del_range_2 (istart, istart, /* byte and char offsets are the same. */ 227 del_range_2 (istart, istart, /* byte and char offsets are the same */
228 iend, iend, 0); 228 iend, iend, 0);
229 229
230 signal_after_change (istart, iend - istart, unwind_data.nbytes); 230 signal_after_change (istart, iend - istart, unwind_data.nbytes);
diff --git a/src/xfaces.c b/src/xfaces.c
index 91a7a8533e8..711ec48bbdd 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6953,10 +6953,13 @@ could define a face `my-mode-default', and then in the mode setup
6953function, do: 6953function, do:
6954 6954
6955 (set (make-local-variable \\='face-remapping-alist) 6955 (set (make-local-variable \\='face-remapping-alist)
6956 \\='((default my-mode-default)))). 6956 (copy-tree \\='((default my-mode-default)))).
6957 6957
6958You probably want to use the face-remap package included in Emacs 6958You probably want to use the face-remap package included in Emacs
6959instead of manipulating face-remapping-alist directly. 6959instead of manipulating face-remapping-alist directly. Note that many
6960of the functions in that package modify the list destructively, so make
6961sure you set it to a fresh value (for instance, use `copy-tree' as in
6962the example above) before modifying.
6960 6963
6961Because Emacs normally only redraws screen areas when the underlying 6964Because Emacs normally only redraws screen areas when the underlying
6962buffer contents change, you may need to call `redraw-display' after 6965buffer contents change, you may need to call `redraw-display' after