aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2021-10-13 11:19:12 -0700
committerPaul Eggert2021-10-13 11:19:12 -0700
commit8e072e6abef2bf1ec75b7c73883caeb7b7459eb1 (patch)
tree3d4b7f160e426a57f1bcf435034835e879c7c25d
parent396d2d88afe254715eb3b09226e0353e72c47936 (diff)
parentefb1cd7fa9f1a71ad3bf34627fe678acfcb48b38 (diff)
downloademacs-8e072e6abef2bf1ec75b7c73883caeb7b7459eb1.tar.gz
emacs-8e072e6abef2bf1ec75b7c73883caeb7b7459eb1.zip
Merge from origin/emacs-28
efb1cd7fa9 ; * etc/charsets/README: Update the format documentation. cc796b7409 Tramp doc cleanup a338d46060 Make emacs-lisp-byte-compile-and-load load the .elc file a... 3eac7dc780 Fix point movement in image-dired 4e9452a399 Improve shortdoc for vector f223ac6ef9 Fix test bug when calloc returns null ebeaa54f19 Pacify GCC 11 -fanalyzer on x86-64 56d1f42f30 Improve handling of non-character events in input methods 3fbe6fd367 ; Fix mistakes in last doc rewording about shorthands
-rw-r--r--doc/lispref/symbols.texi12
-rw-r--r--doc/misc/tramp.texi13
-rw-r--r--etc/charsets/README4
-rw-r--r--lisp/emacs-lisp/shortdoc.el15
-rw-r--r--lisp/image-dired.el11
-rw-r--r--lisp/international/quail.el4
-rw-r--r--lisp/progmodes/elisp-mode.el2
-rw-r--r--src/buffer.c4
-rw-r--r--test/src/emacs-module-resources/mod-test.c5
9 files changed, 45 insertions, 25 deletions
diff --git a/doc/lispref/symbols.texi b/doc/lispref/symbols.texi
index 32590d4f99e..b30a16927ec 100644
--- a/doc/lispref/symbols.texi
+++ b/doc/lispref/symbols.texi
@@ -742,12 +742,12 @@ There are two exceptions to rules governing Shorthand transformations:
742 742
743@itemize @bullet 743@itemize @bullet
744@item 744@item
745Symbol forms comprised entirely of symbol and punctuation characters 745Symbol forms comprised entirely of characters in the Emacs Lisp symbol
746(@pxref{Syntax Class Table}) are not transformed. For example, 746constituent class (@pxref{Syntax Class Table}) are not transformed.
747it's possible to use @code{-} or @code{/=} as shorthand prefixes, but 747For example, it's possible to use @code{-} or @code{/=} as shorthand
748that won't shadow the arithmetic @emph{functions} of those names. 748prefixes, but that won't shadow the arithmetic @emph{functions} of
749those names.
749 750
750@item 751@item
751Symbol forms whose names start with @samp{#} or @samp{_} are not 752Symbol forms whose names start with @samp{#_} are not transformed.
752transformed.
753@end itemize 753@end itemize
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index c2655d6e172..5fdd9a49894 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -290,7 +290,7 @@ file's contents.
290 290
291For external transfers, @value{tramp} sends a command as follows: 291For external transfers, @value{tramp} sends a command as follows:
292@example 292@example
293rcp user@@host:/path/to/remote/file /tmp/tramp.4711 293$ rcp user@@host:/path/to/remote/file /tmp/tramp.4711
294@end example 294@end example
295@value{tramp} reads the local temporary file @file{/tmp/tramp.4711} 295@value{tramp} reads the local temporary file @file{/tmp/tramp.4711}
296into a buffer, and then deletes the temporary file. 296into a buffer, and then deletes the temporary file.
@@ -4299,7 +4299,7 @@ explicitly, because @command{emacs -Q} ignores installed ELPA
4299packages. Call (version number adapted) 4299packages. Call (version number adapted)
4300 4300
4301@example 4301@example
4302emacs -Q -l ~/.emacs.d/elpa/tramp-2.4.5.1/tramp-autoloads 4302$ emacs -Q -l ~/.emacs.d/elpa/tramp-2.4.5.1/tramp-autoloads
4303@end example 4303@end example
4304 4304
4305When including @value{tramp}'s messages in the bug report, increase 4305When including @value{tramp}'s messages in the bug report, increase
@@ -4311,6 +4311,11 @@ non-@acronym{ASCII} characters which are relevant for analysis, append
4311the buffers as attachments to the bug report. This is also needed in 4311the buffers as attachments to the bug report. This is also needed in
4312order to avoid line breaks during mail transfer. 4312order to avoid line breaks during mail transfer.
4313 4313
4314If you send the message from Emacs, you are asked about to append
4315these buffers to the bug report. If you use an external mail program,
4316you must save these buffers to files, and append them with that mail
4317program.
4318
4314@strong{Note} that a verbosity level greater than 6 is not necessary 4319@strong{Note} that a verbosity level greater than 6 is not necessary
4315at this stage. Also note that a verbosity level of 6 or greater, the 4320at this stage. Also note that a verbosity level of 6 or greater, the
4316contents of files and directories will be included in the debug 4321contents of files and directories will be included in the debug
@@ -5104,7 +5109,7 @@ location.
5104Then start Emacs Client from the command line: 5109Then start Emacs Client from the command line:
5105 5110
5106@example 5111@example
5107emacsclient @trampfn{ssh,user@@host,/file/to/edit} 5112$ emacsclient @trampfn{ssh,user@@host,/file/to/edit}
5108@end example 5113@end example
5109 5114
5110@code{user} and @code{host} refer to the local host. 5115@code{user} and @code{host} refer to the local host.
@@ -5124,7 +5129,7 @@ Then change the environment variable @env{EDITOR} to point to the
5124wrapper script: 5129wrapper script:
5125 5130
5126@example 5131@example
5127export EDITOR=/path/to/emacsclient.sh 5132$ export EDITOR=/path/to/emacsclient.sh
5128@end example 5133@end example
5129 5134
5130 5135
diff --git a/etc/charsets/README b/etc/charsets/README
index 0045a0f638e..96cba7c6139 100644
--- a/etc/charsets/README
+++ b/etc/charsets/README
@@ -27,7 +27,9 @@ character code separated by a space. Both code points and Unicode
27character codes are in hexadecimal preceded by "0x". Comments may be 27character codes are in hexadecimal preceded by "0x". Comments may be
28used, starting with "#". Code ranges may also be used, with 28used, starting with "#". Code ranges may also be used, with
29(inclusive) start and end code points separated by "-" followed by the 29(inclusive) start and end code points separated by "-" followed by the
30Unicode of the start of the range 30Unicode of the start of the range.
31Code points for which there's no mapping to Unicode should be skipped,
32i.e. their lines should be omitted.
31 33
32Examples: 34Examples:
330xA0 0x00A0 # no-break space 350xA0 0x00A0 # no-break space
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index 25bd17bdb96..17ac3e471c0 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -647,10 +647,12 @@ There can be any number of :example/:result elements."
647 647
648 648
649(define-short-documentation-group vector 649(define-short-documentation-group vector
650 "Making Vectors"
650 (make-vector 651 (make-vector
651 :eval (make-vector 5 "foo")) 652 :eval (make-vector 5 "foo"))
652 (vector 653 (vector
653 :eval (vector 1 "b" 3)) 654 :eval (vector 1 "b" 3))
655 "Operations on Vectors"
654 (vectorp 656 (vectorp
655 :eval (vectorp [1]) 657 :eval (vectorp [1])
656 :eval (vectorp "1")) 658 :eval (vectorp "1"))
@@ -660,13 +662,16 @@ There can be any number of :example/:result elements."
660 :eval (append [1 2] nil)) 662 :eval (append [1 2] nil))
661 (length 663 (length
662 :eval (length [1 2 3])) 664 :eval (length [1 2 3]))
663 (mapcar 665 (seq-reduce
664 :eval (mapcar #'identity [1 2 3])) 666 :eval (seq-reduce #'+ [1 2 3] 0))
665 (reduce
666 :eval (reduce #'+ [1 2 3]))
667 (seq-subseq 667 (seq-subseq
668 :eval (seq-subseq [1 2 3 4 5] 1 3) 668 :eval (seq-subseq [1 2 3 4 5] 1 3)
669 :eval (seq-subseq [1 2 3 4 5] 1))) 669 :eval (seq-subseq [1 2 3 4 5] 1))
670 "Mapping Over Vectors"
671 (mapcar
672 :eval (mapcar #'identity [1 2 3]))
673 (mapc
674 :eval (mapc #'insert ["1" "2" "3"])))
670 675
671(define-short-documentation-group regexp 676(define-short-documentation-group regexp
672 "Matching Strings" 677 "Matching Strings"
diff --git a/lisp/image-dired.el b/lisp/image-dired.el
index ec3f988bfbb..921215c603e 100644
--- a/lisp/image-dired.el
+++ b/lisp/image-dired.el
@@ -2323,18 +2323,19 @@ non-nil."
2323 (dired-buf (image-dired-associated-dired-buffer))) 2323 (dired-buf (image-dired-associated-dired-buffer)))
2324 (when (and dired-buf file-name) 2324 (when (and dired-buf file-name)
2325 (with-current-buffer dired-buf 2325 (with-current-buffer dired-buf
2326 (when (dired-goto-file file-name) 2326 (save-excursion
2327 (image-dired-dired-file-marked-p)))))) 2327 (when (dired-goto-file file-name)
2328 (image-dired-dired-file-marked-p)))))))
2328 2329
2329(defun image-dired-delete-marked () 2330(defun image-dired-delete-marked ()
2330 "Delete current or marked thumbnails and associated images." 2331 "Delete current or marked thumbnails and associated images."
2331 (interactive) 2332 (interactive)
2332 (with-current-buffer (image-dired-associated-dired-buffer)
2333 (dired-do-delete))
2334 (image-dired--with-marked 2333 (image-dired--with-marked
2335 (image-dired-delete-char) 2334 (image-dired-delete-char)
2336 (backward-char)) 2335 (backward-char))
2337 (image-dired--line-up-with-method)) 2336 (image-dired--line-up-with-method)
2337 (with-current-buffer (image-dired-associated-dired-buffer)
2338 (dired-do-delete)))
2338 2339
2339(defun image-dired-thumb-update-marks () 2340(defun image-dired-thumb-update-marks ()
2340 "Update the marks in the thumbnail buffer." 2341 "Update the marks in the thumbnail buffer."
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 89ab450aeee..5cdd6d6242b 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -1382,6 +1382,8 @@ a cons cell of the form (no-record . KEY).
1382If KEY is a vector of events, the events in the vector are prepended 1382If KEY is a vector of events, the events in the vector are prepended
1383to `unread-command-events', after converting each event to a cons cell 1383to `unread-command-events', after converting each event to a cons cell
1384of the form (no-record . EVENT). 1384of the form (no-record . EVENT).
1385If KEY is an event, it is prepended to `unread-command-events' as a cons
1386cell of the form (no-record . EVENT).
1385If RESET is non-nil, the events in `unread-command-events' are first 1387If RESET is non-nil, the events in `unread-command-events' are first
1386discarded, i.e. in this case KEY will end up being the only key 1388discarded, i.e. in this case KEY will end up being the only key
1387in `unread-command-events'." 1389in `unread-command-events'."
@@ -1390,7 +1392,7 @@ in `unread-command-events'."
1390 (if (characterp key) 1392 (if (characterp key)
1391 (cons (cons 'no-record key) unread-command-events) 1393 (cons (cons 'no-record key) unread-command-events)
1392 (append (mapcan (lambda (e) (list (cons 'no-record e))) 1394 (append (mapcan (lambda (e) (list (cons 'no-record e)))
1393 (append key nil)) 1395 (append (if (vectorp key) key (vector key)) nil))
1394 unread-command-events)))) 1396 unread-command-events))))
1395 1397
1396(defun quail-start-translation (key) 1398(defun quail-start-translation (key)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index c7474b25a78..10a37942571 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -210,7 +210,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
210 (emacs-lisp--before-compile-buffer) 210 (emacs-lisp--before-compile-buffer)
211 (require 'bytecomp) 211 (require 'bytecomp)
212 (byte-recompile-file buffer-file-name nil 0) 212 (byte-recompile-file buffer-file-name nil 0)
213 (load buffer-file-name)) 213 (load (byte-compile-dest-file buffer-file-name)))
214 214
215(declare-function native-compile "comp") 215(declare-function native-compile "comp")
216(defun emacs-lisp-native-compile-and-load () 216(defun emacs-lisp-native-compile-and-load ()
diff --git a/src/buffer.c b/src/buffer.c
index 648d7227d8b..9d8892a797a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3845,7 +3845,9 @@ fix_overlays_before (struct buffer *bp, ptrdiff_t prev, ptrdiff_t pos)
3845 or the found one ends before PREV, 3845 or the found one ends before PREV,
3846 or the found one is the last one in the list, 3846 or the found one is the last one in the list,
3847 we don't have to fix anything. */ 3847 we don't have to fix anything. */
3848 if (!tail || end < prev || !tail->next) 3848 if (!tail)
3849 return;
3850 if (end < prev || !tail->next)
3849 return; 3851 return;
3850 3852
3851 right_pair = parent; 3853 right_pair = parent;
diff --git a/test/src/emacs-module-resources/mod-test.c b/test/src/emacs-module-resources/mod-test.c
index 5720af8c605..4c0b168e34d 100644
--- a/test/src/emacs-module-resources/mod-test.c
+++ b/test/src/emacs-module-resources/mod-test.c
@@ -298,7 +298,10 @@ Fmod_test_userptr_make (emacs_env *env, ptrdiff_t nargs, emacs_value args[],
298{ 298{
299 struct super_struct *p = calloc (1, sizeof *p); 299 struct super_struct *p = calloc (1, sizeof *p);
300 if (!p) 300 if (!p)
301 signal_errno (env, "calloc"); 301 {
302 signal_errno (env, "calloc");
303 return NULL;
304 }
302 p->amazing_int = env->extract_integer (env, args[0]); 305 p->amazing_int = env->extract_integer (env, args[0]);
303 return env->make_user_ptr (env, free, p); 306 return env->make_user_ptr (env, free, p);
304} 307}