Merge from origin/emacs-28
ae1ace1cf4
Adjust help-fns.el tests for recent change04bdcf4aaa
* src/terminal.c (Fframe_terminal): Use active voice7fa491a9e9
Improve 'terminal-live-p' docstring some moreb9ac8c29ae
Improve terminal-live-p docstring0b4c81a152
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-vector): F...8f8373170f
* lisp/progmodes/cperl-mode.el: Don't mention obsolete arc...25bc330a6d
Make 'describe-function' say "byte-compiled" when appropriate2b31e667be
;Improve documentation of locale-specific string comparison
This commit is contained in:
commit
df508ffd2b
6 changed files with 28 additions and 22 deletions
|
@ -567,11 +567,19 @@ equal with respect to collation rules. A collation rule is not only
|
|||
determined by the lexicographic order of the characters contained in
|
||||
@var{string1} and @var{string2}, but also further rules about
|
||||
relations between these characters. Usually, it is defined by the
|
||||
@var{locale} environment Emacs is running with.
|
||||
@var{locale} environment Emacs is running with and by the Standard C
|
||||
library against which Emacs was linked@footnote{
|
||||
For more information about collation rules and their locale
|
||||
dependencies, see @uref{https://unicode.org/reports/tr10/, The Unicode
|
||||
Collation Algorithm}. Some Standard C libraries, such as the
|
||||
@acronym{GNU} C Library (a.k.a.@: @dfn{glibc}) implement large
|
||||
portions of the Unicode Collation Algorithm and use the associated
|
||||
locale data, Common Locale Data Repository, or @acronym{CLDR}.
|
||||
}.
|
||||
|
||||
For example, characters with different coding points but
|
||||
the same meaning might be considered as equal, like different grave
|
||||
accent Unicode characters:
|
||||
For example, characters with different code points but the same
|
||||
meaning, like different grave accent Unicode characters, might, in
|
||||
some locales, be considered as equal:
|
||||
|
||||
@example
|
||||
@group
|
||||
|
@ -759,7 +767,8 @@ The strings are compared by the numeric values of their characters.
|
|||
For instance, @var{str1} is considered less than @var{str2} if
|
||||
its first differing character has a smaller numeric value. If
|
||||
@var{ignore-case} is non-@code{nil}, characters are converted to
|
||||
upper-case before comparing them. Unibyte strings are converted to
|
||||
upper-case, using the current buffer's case-table (@pxref{Case
|
||||
Tables}), before comparing them. Unibyte strings are converted to
|
||||
multibyte for comparison (@pxref{Text Representations}), so that a
|
||||
unibyte string and its conversion to multibyte are always regarded as
|
||||
equal.
|
||||
|
|
|
@ -1030,7 +1030,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
|
|||
(aliased
|
||||
(format-message "an alias for `%s'" real-def))
|
||||
((subr-native-elisp-p def)
|
||||
(concat beg "native compiled Lisp function"))
|
||||
(concat beg "native-compiled Lisp function"))
|
||||
((subrp def)
|
||||
(concat beg (if (eq 'unevalled (cdr (subr-arity def)))
|
||||
"special form"
|
||||
|
@ -1049,7 +1049,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
|
|||
(macrop function))
|
||||
(concat beg "Lisp macro"))
|
||||
((byte-code-function-p def)
|
||||
(concat beg "compiled Lisp function"))
|
||||
(concat beg "byte-compiled Lisp function"))
|
||||
((module-function-p def)
|
||||
(concat beg "module function"))
|
||||
((eq (car-safe def) 'lambda)
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
;; For hostname completion, information is retrieved from the zeroconf
|
||||
;; daemon (for the "afp", "dav", "davs", and "sftp" methods). The
|
||||
;; zeroconf daemon is pre-configured to discover services in the
|
||||
;; "local" domain. If another domain shall be used for discovering
|
||||
;; "local" domain. If another domain should be used for discovering
|
||||
;; services, the user option `tramp-gvfs-zeroconf-domain' can be set
|
||||
;; accordingly.
|
||||
|
||||
|
@ -943,7 +943,7 @@ The call will be traced by Tramp with trace level 6."
|
|||
"Current Tramp file name to be used, as vector.
|
||||
It is needed when D-Bus signals or errors arrive, because there
|
||||
is no information where to trace the message.
|
||||
Globally, the value shall always be nil; it is bound where needed.")
|
||||
The global value will always be nil; it is bound where needed.")
|
||||
|
||||
(defun tramp-gvfs-dbus-event-error (event err)
|
||||
"Called when a D-Bus error message arrives, see `dbus-event-error-functions'."
|
||||
|
|
|
@ -32,11 +32,6 @@
|
|||
;; the MooseX::Declare CPAN module, as well as Perl 5.10 keyword
|
||||
;; support.
|
||||
|
||||
;; The latest version is available from
|
||||
;; https://github.com/jrockway/cperl-mode
|
||||
;;
|
||||
;; (perhaps in the moosex-declare branch)
|
||||
|
||||
;; You can either fine-tune the bells and whistles of this mode or
|
||||
;; bulk enable them by putting
|
||||
|
||||
|
|
|
@ -402,7 +402,7 @@ but if the second argument FORCE is non-nil, you may do so. */)
|
|||
|
||||
DEFUN ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0,
|
||||
doc: /* Return the terminal that FRAME is displayed on.
|
||||
If FRAME is nil, the selected frame is used.
|
||||
If FRAME is nil, use the selected frame.
|
||||
|
||||
The terminal device is represented by its integer identifier. */)
|
||||
(Lisp_Object frame)
|
||||
|
@ -421,10 +421,12 @@ The terminal device is represented by its integer identifier. */)
|
|||
|
||||
DEFUN ("terminal-live-p", Fterminal_live_p, Sterminal_live_p, 1, 1, 0,
|
||||
doc: /* Return non-nil if OBJECT is a terminal which has not been deleted.
|
||||
Value is nil if OBJECT is not a live display terminal.
|
||||
If object is a live display terminal, the return value indicates what
|
||||
sort of output terminal it uses. See the documentation of `framep' for
|
||||
possible return values. */)
|
||||
Return nil if OBJECT is not a live display terminal.
|
||||
OBJECT may be a terminal object, a frame, or nil (meaning the
|
||||
selected frame's terminal).
|
||||
If OBJECT is a live display terminal, return what sort of output
|
||||
terminal it uses. See the documentation of `framep' for possible
|
||||
return values. */)
|
||||
(Lisp_Object object)
|
||||
{
|
||||
struct terminal *t = decode_terminal (object);
|
||||
|
|
|
@ -64,13 +64,13 @@ Return first line of the output of (describe-function-1 FUNC)."
|
|||
|
||||
(ert-deftest help-fns-test-lisp-defun ()
|
||||
(let ((regexp (if (featurep 'native-compile)
|
||||
"a native compiled Lisp function in .+subr\\.el"
|
||||
"a compiled Lisp function in .+subr\\.el"))
|
||||
"a native-compiled Lisp function in .+subr\\.el"
|
||||
"a byte-compiled Lisp function in .+subr\\.el"))
|
||||
(result (help-fns-tests--describe-function 'last)))
|
||||
(should (string-match regexp result))))
|
||||
|
||||
(ert-deftest help-fns-test-lisp-defsubst ()
|
||||
(let ((regexp "a compiled Lisp function in .+subr\\.el")
|
||||
(let ((regexp "a byte-compiled Lisp function in .+subr\\.el")
|
||||
(result (help-fns-tests--describe-function 'posn-window)))
|
||||
(should (string-match regexp result))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue