Merge from origin/emacs-28
efb1cd7fa9
; * etc/charsets/README: Update the format documentation.cc796b7409
Tramp doc cleanupa338d46060
Make emacs-lisp-byte-compile-and-load load the .elc file a...3eac7dc780
Fix point movement in image-dired4e9452a399
Improve shortdoc for vectorf223ac6ef9
Fix test bug when calloc returns nullebeaa54f19
Pacify GCC 11 -fanalyzer on x86-6456d1f42f30
Improve handling of non-character events in input methods3fbe6fd367
; Fix mistakes in last doc rewording about shorthands
This commit is contained in:
commit
8e072e6abe
9 changed files with 45 additions and 25 deletions
|
@ -742,12 +742,12 @@ There are two exceptions to rules governing Shorthand transformations:
|
|||
|
||||
@itemize @bullet
|
||||
@item
|
||||
Symbol forms comprised entirely of symbol and punctuation characters
|
||||
(@pxref{Syntax Class Table}) are not transformed. For example,
|
||||
it's possible to use @code{-} or @code{/=} as shorthand prefixes, but
|
||||
that won't shadow the arithmetic @emph{functions} of those names.
|
||||
Symbol forms comprised entirely of characters in the Emacs Lisp symbol
|
||||
constituent class (@pxref{Syntax Class Table}) are not transformed.
|
||||
For example, it's possible to use @code{-} or @code{/=} as shorthand
|
||||
prefixes, but that won't shadow the arithmetic @emph{functions} of
|
||||
those names.
|
||||
|
||||
@item
|
||||
Symbol forms whose names start with @samp{#} or @samp{_} are not
|
||||
transformed.
|
||||
Symbol forms whose names start with @samp{#_} are not transformed.
|
||||
@end itemize
|
||||
|
|
|
@ -290,7 +290,7 @@ file's contents.
|
|||
|
||||
For external transfers, @value{tramp} sends a command as follows:
|
||||
@example
|
||||
rcp user@@host:/path/to/remote/file /tmp/tramp.4711
|
||||
$ rcp user@@host:/path/to/remote/file /tmp/tramp.4711
|
||||
@end example
|
||||
@value{tramp} reads the local temporary file @file{/tmp/tramp.4711}
|
||||
into a buffer, and then deletes the temporary file.
|
||||
|
@ -4299,7 +4299,7 @@ explicitly, because @command{emacs -Q} ignores installed ELPA
|
|||
packages. Call (version number adapted)
|
||||
|
||||
@example
|
||||
emacs -Q -l ~/.emacs.d/elpa/tramp-2.4.5.1/tramp-autoloads
|
||||
$ emacs -Q -l ~/.emacs.d/elpa/tramp-2.4.5.1/tramp-autoloads
|
||||
@end example
|
||||
|
||||
When including @value{tramp}'s messages in the bug report, increase
|
||||
|
@ -4311,6 +4311,11 @@ non-@acronym{ASCII} characters which are relevant for analysis, append
|
|||
the buffers as attachments to the bug report. This is also needed in
|
||||
order to avoid line breaks during mail transfer.
|
||||
|
||||
If you send the message from Emacs, you are asked about to append
|
||||
these buffers to the bug report. If you use an external mail program,
|
||||
you must save these buffers to files, and append them with that mail
|
||||
program.
|
||||
|
||||
@strong{Note} that a verbosity level greater than 6 is not necessary
|
||||
at this stage. Also note that a verbosity level of 6 or greater, the
|
||||
contents of files and directories will be included in the debug
|
||||
|
@ -5104,7 +5109,7 @@ location.
|
|||
Then start Emacs Client from the command line:
|
||||
|
||||
@example
|
||||
emacsclient @trampfn{ssh,user@@host,/file/to/edit}
|
||||
$ emacsclient @trampfn{ssh,user@@host,/file/to/edit}
|
||||
@end example
|
||||
|
||||
@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
|
|||
wrapper script:
|
||||
|
||||
@example
|
||||
export EDITOR=/path/to/emacsclient.sh
|
||||
$ export EDITOR=/path/to/emacsclient.sh
|
||||
@end example
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,9 @@ character code separated by a space. Both code points and Unicode
|
|||
character codes are in hexadecimal preceded by "0x". Comments may be
|
||||
used, starting with "#". Code ranges may also be used, with
|
||||
(inclusive) start and end code points separated by "-" followed by the
|
||||
Unicode of the start of the range
|
||||
Unicode of the start of the range.
|
||||
Code points for which there's no mapping to Unicode should be skipped,
|
||||
i.e. their lines should be omitted.
|
||||
|
||||
Examples:
|
||||
0xA0 0x00A0 # no-break space
|
||||
|
|
|
@ -647,10 +647,12 @@ There can be any number of :example/:result elements."
|
|||
|
||||
|
||||
(define-short-documentation-group vector
|
||||
"Making Vectors"
|
||||
(make-vector
|
||||
:eval (make-vector 5 "foo"))
|
||||
(vector
|
||||
:eval (vector 1 "b" 3))
|
||||
"Operations on Vectors"
|
||||
(vectorp
|
||||
:eval (vectorp [1])
|
||||
:eval (vectorp "1"))
|
||||
|
@ -660,13 +662,16 @@ There can be any number of :example/:result elements."
|
|||
:eval (append [1 2] nil))
|
||||
(length
|
||||
:eval (length [1 2 3]))
|
||||
(mapcar
|
||||
:eval (mapcar #'identity [1 2 3]))
|
||||
(reduce
|
||||
:eval (reduce #'+ [1 2 3]))
|
||||
(seq-reduce
|
||||
:eval (seq-reduce #'+ [1 2 3] 0))
|
||||
(seq-subseq
|
||||
:eval (seq-subseq [1 2 3 4 5] 1 3)
|
||||
:eval (seq-subseq [1 2 3 4 5] 1)))
|
||||
:eval (seq-subseq [1 2 3 4 5] 1))
|
||||
"Mapping Over Vectors"
|
||||
(mapcar
|
||||
:eval (mapcar #'identity [1 2 3]))
|
||||
(mapc
|
||||
:eval (mapc #'insert ["1" "2" "3"])))
|
||||
|
||||
(define-short-documentation-group regexp
|
||||
"Matching Strings"
|
||||
|
|
|
@ -2323,18 +2323,19 @@ non-nil."
|
|||
(dired-buf (image-dired-associated-dired-buffer)))
|
||||
(when (and dired-buf file-name)
|
||||
(with-current-buffer dired-buf
|
||||
(when (dired-goto-file file-name)
|
||||
(image-dired-dired-file-marked-p))))))
|
||||
(save-excursion
|
||||
(when (dired-goto-file file-name)
|
||||
(image-dired-dired-file-marked-p)))))))
|
||||
|
||||
(defun image-dired-delete-marked ()
|
||||
"Delete current or marked thumbnails and associated images."
|
||||
(interactive)
|
||||
(with-current-buffer (image-dired-associated-dired-buffer)
|
||||
(dired-do-delete))
|
||||
(image-dired--with-marked
|
||||
(image-dired-delete-char)
|
||||
(backward-char))
|
||||
(image-dired--line-up-with-method))
|
||||
(image-dired--line-up-with-method)
|
||||
(with-current-buffer (image-dired-associated-dired-buffer)
|
||||
(dired-do-delete)))
|
||||
|
||||
(defun image-dired-thumb-update-marks ()
|
||||
"Update the marks in the thumbnail buffer."
|
||||
|
|
|
@ -1382,6 +1382,8 @@ a cons cell of the form (no-record . KEY).
|
|||
If KEY is a vector of events, the events in the vector are prepended
|
||||
to `unread-command-events', after converting each event to a cons cell
|
||||
of the form (no-record . EVENT).
|
||||
If KEY is an event, it is prepended to `unread-command-events' as a cons
|
||||
cell of the form (no-record . EVENT).
|
||||
If RESET is non-nil, the events in `unread-command-events' are first
|
||||
discarded, i.e. in this case KEY will end up being the only key
|
||||
in `unread-command-events'."
|
||||
|
@ -1390,7 +1392,7 @@ in `unread-command-events'."
|
|||
(if (characterp key)
|
||||
(cons (cons 'no-record key) unread-command-events)
|
||||
(append (mapcan (lambda (e) (list (cons 'no-record e)))
|
||||
(append key nil))
|
||||
(append (if (vectorp key) key (vector key)) nil))
|
||||
unread-command-events))))
|
||||
|
||||
(defun quail-start-translation (key)
|
||||
|
|
|
@ -210,7 +210,7 @@ All commands in `lisp-mode-shared-map' are inherited by this map.")
|
|||
(emacs-lisp--before-compile-buffer)
|
||||
(require 'bytecomp)
|
||||
(byte-recompile-file buffer-file-name nil 0)
|
||||
(load buffer-file-name))
|
||||
(load (byte-compile-dest-file buffer-file-name)))
|
||||
|
||||
(declare-function native-compile "comp")
|
||||
(defun emacs-lisp-native-compile-and-load ()
|
||||
|
|
|
@ -3845,7 +3845,9 @@ fix_overlays_before (struct buffer *bp, ptrdiff_t prev, ptrdiff_t pos)
|
|||
or the found one ends before PREV,
|
||||
or the found one is the last one in the list,
|
||||
we don't have to fix anything. */
|
||||
if (!tail || end < prev || !tail->next)
|
||||
if (!tail)
|
||||
return;
|
||||
if (end < prev || !tail->next)
|
||||
return;
|
||||
|
||||
right_pair = parent;
|
||||
|
|
|
@ -298,7 +298,10 @@ Fmod_test_userptr_make (emacs_env *env, ptrdiff_t nargs, emacs_value args[],
|
|||
{
|
||||
struct super_struct *p = calloc (1, sizeof *p);
|
||||
if (!p)
|
||||
signal_errno (env, "calloc");
|
||||
{
|
||||
signal_errno (env, "calloc");
|
||||
return NULL;
|
||||
}
|
||||
p->amazing_int = env->extract_integer (env, args[0]);
|
||||
return env->make_user_ptr (env, free, p);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue