Merge from savannah/emacs-30

6a512ab032 Fix a typo in Eglot manual
7b752a93a4 Fix dumping of Lisp profiles
bfe07eca59 Fix 'apropos-library' for 'define-symbol-props'
5c1bd99139 Fix 'forward-comment' in 'toml-ts-mode'
e966dd5ee2 Document spell-checking of multiple languages
8a072d1f05 Apply --display kluge for PGTK too
This commit is contained in:
Po Lu 2024-08-17 21:53:50 +08:00
commit 142e5c66f3
7 changed files with 39 additions and 7 deletions

View file

@ -450,6 +450,30 @@ dictionary is specified by the variable
spelling program looks for a personal dictionary in a default
location, which is specific to each spell-checker.
@cindex spell-checking different languages
@cindex language for spell-checking
Usually, a dictionary used by a spell-checker is for a specific
language. The default language is determined from your system's
environment and locale. Both the standard dictionary and your personal
dictionary should be changed if you want to spell-check text in a
different language. You can use the @code{ispell-change-dictionary}
command for that.
@cindex spell-checking multi-lingual text
@findex ispell-hunspell-add-multi-dic
Hunspell is special in that it supports spell-checking using several
different dictionaries in parallel. To use this feature, invoke the
@kbd{M-x ispell-hunspell-add-multi-dic} command before you start using
Hunspell for a particular combination of dictionaries. This command
prompts for the dictionary combination, which should be a
comma-separated list of language-specific dictionary names, such as
@samp{en_US,de_DE,ru_RU}. Thereafter, you can spell-check text which
mixes these languages without changing the dictionaries each time.
(Caveat: when several languages use the same script, it is possible that
a word that is mis-spelled in one language is found as a valid spelling
in the dictionary of another language; in that case, the mis-spelled
word might be missed.)
@vindex ispell-complete-word-dict
A separate dictionary is used for word completion. The variable
@code{ispell-complete-word-dict} specifies the file name of this

View file

@ -600,7 +600,7 @@ user, but automatically, as the result of starting an Eglot session
for the buffer. However, this minor mode provides a hook variable
@code{eglot-managed-mode-hook} that can be used to customize the Eglot
management of the buffer. This hook is run both when the minor mode
is turned on and when it's turned off; use the variable
is turned on and when it's turned off; use the function
@code{eglot-managed-p} to tell if current buffer is still being
managed or not. When Eglot stops managing the buffer, this minor mode
is turned off, and all the settings that Eglot changed are restored to

View file

@ -734,7 +734,10 @@ the output includes key-bindings of commands."
;; FIXME: Print information about each individual method: both
;; its docstring and specializers (bug#21422).
('cl-defmethod (push (cadr x) provides))
(_ (push (or (cdr-safe x) x) symbols))))
;; FIXME: Add extension point (bug#72616).
(_ (let ((sym (or (cdr-safe x) x)))
(and sym (symbolp sym)
(push sym symbols))))))
(let ((apropos-pattern "") ;Dummy binding for apropos-symbols-internal.
(text
(concat

View file

@ -103,8 +103,13 @@
;;; Backtraces
(defun profiler-fixup-entry (entry)
(if (symbolp entry)
entry
(substring-no-properties (help-fns-function-name entry))))
(defun profiler-fixup-backtrace (backtrace)
(apply #'vector (mapcar #'help-fns-function-name backtrace)))
(apply #'vector (mapcar #'profiler-fixup-entry backtrace)))
;;; Logs

View file

@ -50,7 +50,7 @@
(modify-syntax-entry ?= "." table)
(modify-syntax-entry ?\' "\"" table)
(modify-syntax-entry ?# "<" table)
(modify-syntax-entry ?\n "> b" table)
(modify-syntax-entry ?\n ">" table)
(modify-syntax-entry ?\^m "> b" table)
table)
"Syntax table for `toml-ts-mode'.")

View file

@ -191,7 +191,7 @@ bool inhibit_window_system;
data on the first attempt to change it inside asynchronous code. */
bool running_asynch_code;
#if defined (HAVE_X_WINDOWS) || defined (HAVE_NS)
#if defined (HAVE_X_WINDOWS) || defined (HAVE_PGTK) || defined (HAVE_NS)
/* If true, -d was specified, meaning we're using some window system. */
bool display_arg;
#endif
@ -2074,7 +2074,7 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
{
int count_before = skip_args;
#ifdef HAVE_X_WINDOWS
#if defined (HAVE_X_WINDOWS) || defined (HAVE_PGTK)
char *displayname = 0;
/* Skip any number of -d options, but only use the last one. */

View file

@ -5199,7 +5199,7 @@ extern void syms_of_frame (void);
extern char **initial_argv;
extern int initial_argc;
extern char const *emacs_wd;
#if defined (HAVE_X_WINDOWS) || defined (HAVE_NS)
#if defined (HAVE_X_WINDOWS) || defined (HAVE_PGTK) || defined (HAVE_NS)
extern bool display_arg;
#endif
extern Lisp_Object decode_env_path (const char *, const char *, bool);