aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-07-23 01:37:59 +0200
committerStefan Kangas2022-07-23 01:37:59 +0200
commitdf508ffd2bedf901996d8899c63183aaf327f887 (patch)
tree0d1ebe7b35b43957f5de6ffa95c5b0794df69dc5
parentf268cdc185b5e98456434da0cfda963b614227fd (diff)
parentae1ace1cf4a8b0624f72a8f76e702d78b643ea32 (diff)
downloademacs-df508ffd2bedf901996d8899c63183aaf327f887.tar.gz
emacs-df508ffd2bedf901996d8899c63183aaf327f887.zip
Merge from origin/emacs-28
ae1ace1cf4 Adjust help-fns.el tests for recent change 04bdcf4aaa * src/terminal.c (Fframe_terminal): Use active voice 7fa491a9e9 Improve 'terminal-live-p' docstring some more b9ac8c29ae Improve terminal-live-p docstring 0b4c81a152 * 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 appropriate 2b31e667be ;Improve documentation of locale-specific string comparison
-rw-r--r--doc/lispref/strings.texi21
-rw-r--r--lisp/help-fns.el4
-rw-r--r--lisp/net/tramp-gvfs.el4
-rw-r--r--lisp/progmodes/cperl-mode.el5
-rw-r--r--src/terminal.c12
-rw-r--r--test/lisp/help-fns-tests.el6
6 files changed, 29 insertions, 23 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index addf195fad2..cb9019daa9b 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -567,11 +567,19 @@ equal with respect to collation rules. A collation rule is not only
567determined by the lexicographic order of the characters contained in 567determined by the lexicographic order of the characters contained in
568@var{string1} and @var{string2}, but also further rules about 568@var{string1} and @var{string2}, but also further rules about
569relations between these characters. Usually, it is defined by the 569relations between these characters. Usually, it is defined by the
570@var{locale} environment Emacs is running with. 570@var{locale} environment Emacs is running with and by the Standard C
571 571library against which Emacs was linked@footnote{
572For example, characters with different coding points but 572For more information about collation rules and their locale
573the same meaning might be considered as equal, like different grave 573dependencies, see @uref{https://unicode.org/reports/tr10/, The Unicode
574accent Unicode characters: 574Collation Algorithm}. Some Standard C libraries, such as the
575@acronym{GNU} C Library (a.k.a.@: @dfn{glibc}) implement large
576portions of the Unicode Collation Algorithm and use the associated
577locale data, Common Locale Data Repository, or @acronym{CLDR}.
578}.
579
580For example, characters with different code points but the same
581meaning, like different grave accent Unicode characters, might, in
582some locales, be considered as equal:
575 583
576@example 584@example
577@group 585@group
@@ -759,7 +767,8 @@ The strings are compared by the numeric values of their characters.
759For instance, @var{str1} is considered less than @var{str2} if 767For instance, @var{str1} is considered less than @var{str2} if
760its first differing character has a smaller numeric value. If 768its first differing character has a smaller numeric value. If
761@var{ignore-case} is non-@code{nil}, characters are converted to 769@var{ignore-case} is non-@code{nil}, characters are converted to
762upper-case before comparing them. Unibyte strings are converted to 770upper-case, using the current buffer's case-table (@pxref{Case
771Tables}), before comparing them. Unibyte strings are converted to
763multibyte for comparison (@pxref{Text Representations}), so that a 772multibyte for comparison (@pxref{Text Representations}), so that a
764unibyte string and its conversion to multibyte are always regarded as 773unibyte string and its conversion to multibyte are always regarded as
765equal. 774equal.
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index dc64a09f3d8..efee44f7b30 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1030,7 +1030,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
1030 (aliased 1030 (aliased
1031 (format-message "an alias for `%s'" real-def)) 1031 (format-message "an alias for `%s'" real-def))
1032 ((subr-native-elisp-p def) 1032 ((subr-native-elisp-p def)
1033 (concat beg "native compiled Lisp function")) 1033 (concat beg "native-compiled Lisp function"))
1034 ((subrp def) 1034 ((subrp def)
1035 (concat beg (if (eq 'unevalled (cdr (subr-arity def))) 1035 (concat beg (if (eq 'unevalled (cdr (subr-arity def)))
1036 "special form" 1036 "special form"
@@ -1049,7 +1049,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
1049 (macrop function)) 1049 (macrop function))
1050 (concat beg "Lisp macro")) 1050 (concat beg "Lisp macro"))
1051 ((byte-code-function-p def) 1051 ((byte-code-function-p def)
1052 (concat beg "compiled Lisp function")) 1052 (concat beg "byte-compiled Lisp function"))
1053 ((module-function-p def) 1053 ((module-function-p def)
1054 (concat beg "module function")) 1054 (concat beg "module function"))
1055 ((eq (car-safe def) 'lambda) 1055 ((eq (car-safe def) 'lambda)
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 056237fd55c..03a6a46e80d 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -87,7 +87,7 @@
87;; For hostname completion, information is retrieved from the zeroconf 87;; For hostname completion, information is retrieved from the zeroconf
88;; daemon (for the "afp", "dav", "davs", and "sftp" methods). The 88;; daemon (for the "afp", "dav", "davs", and "sftp" methods). The
89;; zeroconf daemon is pre-configured to discover services in the 89;; zeroconf daemon is pre-configured to discover services in the
90;; "local" domain. If another domain shall be used for discovering 90;; "local" domain. If another domain should be used for discovering
91;; services, the user option `tramp-gvfs-zeroconf-domain' can be set 91;; services, the user option `tramp-gvfs-zeroconf-domain' can be set
92;; accordingly. 92;; accordingly.
93 93
@@ -943,7 +943,7 @@ The call will be traced by Tramp with trace level 6."
943 "Current Tramp file name to be used, as vector. 943 "Current Tramp file name to be used, as vector.
944It is needed when D-Bus signals or errors arrive, because there 944It is needed when D-Bus signals or errors arrive, because there
945is no information where to trace the message. 945is no information where to trace the message.
946Globally, the value shall always be nil; it is bound where needed.") 946The global value will always be nil; it is bound where needed.")
947 947
948(defun tramp-gvfs-dbus-event-error (event err) 948(defun tramp-gvfs-dbus-event-error (event err)
949 "Called when a D-Bus error message arrives, see `dbus-event-error-functions'." 949 "Called when a D-Bus error message arrives, see `dbus-event-error-functions'."
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index f51d2fcb115..ab70d574c5b 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -32,11 +32,6 @@
32;; the MooseX::Declare CPAN module, as well as Perl 5.10 keyword 32;; the MooseX::Declare CPAN module, as well as Perl 5.10 keyword
33;; support. 33;; support.
34 34
35;; The latest version is available from
36;; https://github.com/jrockway/cperl-mode
37;;
38;; (perhaps in the moosex-declare branch)
39
40;; You can either fine-tune the bells and whistles of this mode or 35;; You can either fine-tune the bells and whistles of this mode or
41;; bulk enable them by putting 36;; bulk enable them by putting
42 37
diff --git a/src/terminal.c b/src/terminal.c
index dcde8e9f557..d366e9d2438 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -402,7 +402,7 @@ but if the second argument FORCE is non-nil, you may do so. */)
402 402
403DEFUN ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0, 403DEFUN ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0,
404 doc: /* Return the terminal that FRAME is displayed on. 404 doc: /* Return the terminal that FRAME is displayed on.
405If FRAME is nil, the selected frame is used. 405If FRAME is nil, use the selected frame.
406 406
407The terminal device is represented by its integer identifier. */) 407The terminal device is represented by its integer identifier. */)
408 (Lisp_Object frame) 408 (Lisp_Object frame)
@@ -421,10 +421,12 @@ The terminal device is represented by its integer identifier. */)
421 421
422DEFUN ("terminal-live-p", Fterminal_live_p, Sterminal_live_p, 1, 1, 0, 422DEFUN ("terminal-live-p", Fterminal_live_p, Sterminal_live_p, 1, 1, 0,
423 doc: /* Return non-nil if OBJECT is a terminal which has not been deleted. 423 doc: /* Return non-nil if OBJECT is a terminal which has not been deleted.
424Value is nil if OBJECT is not a live display terminal. 424Return nil if OBJECT is not a live display terminal.
425If object is a live display terminal, the return value indicates what 425OBJECT may be a terminal object, a frame, or nil (meaning the
426sort of output terminal it uses. See the documentation of `framep' for 426selected frame's terminal).
427possible return values. */) 427If OBJECT is a live display terminal, return what sort of output
428terminal it uses. See the documentation of `framep' for possible
429return values. */)
428 (Lisp_Object object) 430 (Lisp_Object object)
429{ 431{
430 struct terminal *t = decode_terminal (object); 432 struct terminal *t = decode_terminal (object);
diff --git a/test/lisp/help-fns-tests.el b/test/lisp/help-fns-tests.el
index e3fed60b4cb..7ff7aa1ccd7 100644
--- a/test/lisp/help-fns-tests.el
+++ b/test/lisp/help-fns-tests.el
@@ -64,13 +64,13 @@ Return first line of the output of (describe-function-1 FUNC)."
64 64
65(ert-deftest help-fns-test-lisp-defun () 65(ert-deftest help-fns-test-lisp-defun ()
66 (let ((regexp (if (featurep 'native-compile) 66 (let ((regexp (if (featurep 'native-compile)
67 "a native compiled Lisp function in .+subr\\.el" 67 "a native-compiled Lisp function in .+subr\\.el"
68 "a compiled Lisp function in .+subr\\.el")) 68 "a byte-compiled Lisp function in .+subr\\.el"))
69 (result (help-fns-tests--describe-function 'last))) 69 (result (help-fns-tests--describe-function 'last)))
70 (should (string-match regexp result)))) 70 (should (string-match regexp result))))
71 71
72(ert-deftest help-fns-test-lisp-defsubst () 72(ert-deftest help-fns-test-lisp-defsubst ()
73 (let ((regexp "a compiled Lisp function in .+subr\\.el") 73 (let ((regexp "a byte-compiled Lisp function in .+subr\\.el")
74 (result (help-fns-tests--describe-function 'posn-window))) 74 (result (help-fns-tests--describe-function 'posn-window)))
75 (should (string-match regexp result)))) 75 (should (string-match regexp result))))
76 76