Merge from savannah/emacs-30

b585826a65 ; * lisp/files.el (require-with-check): Fix doc string an...
6d55e94996 macOS: Wrong frame rectangle after wake (bug#71912)
c49724b964 ; Grammar fixes
5c3d340e00 Fix format 2 cmap handling in sfnt.c
This commit is contained in:
Po Lu 2024-08-13 09:12:30 +08:00
commit 6533fd65b6
5 changed files with 22 additions and 21 deletions

View file

@ -867,8 +867,8 @@ ERC's auth-source integration}.
@defun erc-compute-server &optional server
Return an IRC server name.
This tries a number of increasingly more default methods until a non-@code{nil}
value is found.
This tries a progressively greater number of default methods until a
non-@code{nil} value is found.
@itemize @bullet
@item @var{server} (the argument passed to this function)
@ -888,8 +888,8 @@ IRC server to use if one is not provided.
@defun erc-compute-port &optional port
Return a port for an IRC server.
This tries a number of increasingly more default methods until a non-@code{nil}
value is found.
This tries a progressively greater number of default methods until a
non-@code{nil} value is found.
@itemize @bullet
@item @var{port} (the argument passed to this function)
@ -910,7 +910,7 @@ This can be either a string or a number.
@defun erc-compute-nick &optional nick
Return user's IRC nick.
This tries a number of increasingly more default methods until a
This tries a progressively greater number of default methods until a
non-@code{nil} value is found.
@itemize
@ -1010,7 +1010,7 @@ auth-source facility to retrieve a server password, although hitting
@defun erc-compute-full-name &optional full-name
Return user's full name.
This tries a number of increasingly more default methods until a
This tries a progressively greater number of default methods until a
non-@code{nil} value is found.
@itemize @bullet

View file

@ -8794,7 +8794,7 @@ Sets the buffer local variables:
(defun erc-compute-server (&optional server)
"Return an IRC server name.
This tries a number of increasingly more default methods until a
This tries a progressively greater number of default methods until a
non-nil value is found.
- SERVER (the argument passed to this function)
@ -8813,7 +8813,7 @@ non-nil value is found.
(defun erc-compute-nick (&optional nick)
"Return user's IRC nick.
This tries a number of increasingly more default methods until a
This tries a progressively greater number of default methods until a
non-nil value is found.
- NICK (the argument passed to this function)
@ -8837,7 +8837,7 @@ the user field and use whatever it returns as the server password."
(defun erc-compute-full-name (&optional full-name)
"Return user's full name.
This tries a number of increasingly more default methods until a
This tries a progressively greater number of default methods until a
non-nil value is found.
- FULL-NAME (the argument passed to this function)
@ -8853,7 +8853,7 @@ non-nil value is found.
(defun erc-compute-port (&optional port)
"Return a port for an IRC server.
This tries a number of increasingly more default methods until a
This tries a progressively greater number of default methods until a
non-nil value is found.
- PORT (the argument passed to this function)

View file

@ -1258,11 +1258,11 @@ See `load-file' for a different interface to `load'."
(defun require-with-check (feature &optional filename noerror)
"If FEATURE is not already loaded, load it from FILENAME.
This is like `require' except if FEATURE is already a member of the list
`features, then we check if this was provided by a different file than the
one that we would load now (presumably because `load-path' has been
changed since the file was loaded).
If it's the case, we either signal an error (the default), or forcibly reload
the new file (if NOERROR is equal to `reload'), or otherwise emit a warning."
`features, then check if it was provided by a different file than the
one that is about to be loaded now (presumably because `load-path' has
been changed since FILENAME was loaded). If that is the case, either
signal an error (the default), or forcibly reload the new file (if
NOERROR is equal to `reload'), or otherwise emit a warning."
(let ((lh load-history)
(res (require feature filename (if (eq noerror 'reload) nil noerror))))
;; If the `feature' was not yet provided, `require' just loaded the right
@ -1275,7 +1275,7 @@ the new file (if NOERROR is equal to `reload'), or otherwise emit a warning."
((assoc fn load-history) nil) ;We loaded the right file.
((eq noerror 'reload) (load fn nil 'nomessage))
(t (funcall (if noerror #'warn #'error)
"Feature provided by other file: %S" feature)))))
"Feature `%S' is now provided by a different file %s" fn)))))
res))
(defun file-remote-p (file &optional identification connected)

View file

@ -7968,6 +7968,7 @@ - (void)windowDidBecomeKey /* for direct calls */
dpyinfo->ns_focus_frame = emacsframe;
ns_frame_rehighlight (emacsframe);
[self adjustEmacsFrameRect];
event.kind = FOCUS_IN_EVENT;
XSETFRAME (event.frame_or_window, emacsframe);

View file

@ -1093,10 +1093,10 @@ sfnt_lookup_glyph_2 (sfnt_char character,
unsigned char *slice;
uint16_t glyph;
if (character > 65335)
if (character > 65535)
return 0;
i = character >> 16;
i = character >> 8;
j = character & 0xff;
k = format2->sub_header_keys[i] / 8;
@ -1129,9 +1129,9 @@ sfnt_lookup_glyph_2 (sfnt_char character,
return 0;
}
/* k is 0, so glyph_index_array[i] is the glyph. */
return (i < format2->num_glyphs
? format2->glyph_index_array[i]
/* k is 0, so glyph_index_array[j] is the glyph. */
return (j < format2->num_glyphs
? format2->glyph_index_array[j]
: 0);
}