mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from savannah/emacs-29
1978b603bcMake python-ts-mode's syntax-highlighting more standardized99658346d1; Improve documentation of desktop.el in user manualf7dc020212Fix "Text is read-only" on backspacing initial Calc input662d54775dAdd a doc string to simple.el (bug#67355)5a5e36d2aa; Improve function documentation tips86016d8ecdMention "visual line" in user manual4bb65ed77a; * doc/lispref/minibuf.texi (Programmed Completion): Imp...dfb3dcb404Allow listing Emoji from a read-only buffer # Conflicts: # lisp/calc/calc.el # lisp/international/emoji.el
This commit is contained in:
commit
1737ffd3a8
8 changed files with 39 additions and 20 deletions
|
|
@ -360,15 +360,15 @@ preserve the horizontal position, as usual.
|
||||||
|
|
||||||
@vindex line-move-visual
|
@vindex line-move-visual
|
||||||
When a line of text in the buffer is longer than the width of the
|
When a line of text in the buffer is longer than the width of the
|
||||||
window, Emacs usually displays it on two or more @dfn{screen lines}.
|
window, Emacs usually displays it on two or more @dfn{screen lines},
|
||||||
For convenience, @kbd{C-n} and @kbd{C-p} move point by screen lines,
|
a.k.a.@: @dfn{visual lines}. For convenience, @kbd{C-n} and @kbd{C-p}
|
||||||
as do the equivalent keys @kbd{@key{down}} and @kbd{@key{up}}. You
|
move point by screen lines, as do the equivalent keys @kbd{@key{down}}
|
||||||
can force these commands to move according to @dfn{logical lines}
|
and @kbd{@key{up}}. You can force these commands to move according to
|
||||||
(i.e., according to the text lines in the buffer) by setting the
|
@dfn{logical lines} (i.e., according to the text lines in the buffer)
|
||||||
variable @code{line-move-visual} to @code{nil}; if a logical line
|
by setting the variable @code{line-move-visual} to @code{nil}; if a
|
||||||
occupies multiple screen lines, the cursor then skips over the
|
logical line occupies multiple screen lines, the cursor then skips
|
||||||
additional screen lines. For details, see @ref{Continuation Lines}.
|
over the additional screen lines. For details, see @ref{Continuation
|
||||||
@xref{Variables}, for how to set variables such as
|
Lines}. @xref{Variables}, for how to set variables such as
|
||||||
@code{line-move-visual}.
|
@code{line-move-visual}.
|
||||||
|
|
||||||
Unlike @kbd{C-n} and @kbd{C-p}, most of the Emacs commands that work
|
Unlike @kbd{C-n} and @kbd{C-p}, most of the Emacs commands that work
|
||||||
|
|
@ -596,10 +596,13 @@ lines, if any exists.
|
||||||
@cindex wrapping
|
@cindex wrapping
|
||||||
@cindex line wrapping
|
@cindex line wrapping
|
||||||
@cindex fringes, and continuation lines
|
@cindex fringes, and continuation lines
|
||||||
|
@cindex logical line
|
||||||
|
@cindex screen line
|
||||||
|
@cindex visual line
|
||||||
Sometimes, a line of text in the buffer---a @dfn{logical line}---is
|
Sometimes, a line of text in the buffer---a @dfn{logical line}---is
|
||||||
too long to fit in the window, and Emacs displays it as two or more
|
too long to fit in the window, and Emacs displays it as two or more
|
||||||
@dfn{screen lines}. This is called @dfn{line wrapping} or
|
@dfn{screen lines}, or @dfn{visual lines}. This is called @dfn{line
|
||||||
@dfn{continuation}, and the long logical line is called a
|
wrapping} or @dfn{continuation}, and the long logical line is called a
|
||||||
@dfn{continued line}. On a graphical display, Emacs indicates line
|
@dfn{continued line}. On a graphical display, Emacs indicates line
|
||||||
wrapping with small bent arrows in the left and right window fringes.
|
wrapping with small bent arrows in the left and right window fringes.
|
||||||
On a text terminal, Emacs indicates line wrapping by displaying a
|
On a text terminal, Emacs indicates line wrapping by displaying a
|
||||||
|
|
|
||||||
|
|
@ -2010,9 +2010,10 @@ line truncation. @xref{Split Window}, for the variable
|
||||||
@section Visual Line Mode
|
@section Visual Line Mode
|
||||||
|
|
||||||
@cindex word wrap
|
@cindex word wrap
|
||||||
Another alternative to ordinary line continuation is to use
|
Another alternative to ordinary line continuation
|
||||||
@dfn{word wrap}. Here, each long logical line is divided into two or
|
(@pxref{Continuation Lines}) is to use @dfn{word wrap}. Here, each
|
||||||
more screen lines, like in ordinary line continuation. However, Emacs
|
long logical line is divided into two or more screen lines, or
|
||||||
|
``visual lines'', like in ordinary line continuation. However, Emacs
|
||||||
attempts to wrap the line at word boundaries near the right window
|
attempts to wrap the line at word boundaries near the right window
|
||||||
edge. (If the line's direction is right-to-left, it is wrapped at the
|
edge. (If the line's direction is right-to-left, it is wrapped at the
|
||||||
left window edge instead.) This makes the text easier to read, as
|
left window edge instead.) This makes the text easier to read, as
|
||||||
|
|
|
||||||
|
|
@ -2851,8 +2851,11 @@ want it to preserve certain buffers, customize the variable
|
||||||
@code{desktop-clear-preserve-buffers-regexp}, whose value is a regular
|
@code{desktop-clear-preserve-buffers-regexp}, whose value is a regular
|
||||||
expression matching the names of buffers not to kill.
|
expression matching the names of buffers not to kill.
|
||||||
|
|
||||||
|
@vindex desktop-globals-to-save
|
||||||
If you want to save minibuffer history from one session to
|
If you want to save minibuffer history from one session to
|
||||||
another, use the @code{savehist} library.
|
another, use the @code{savehist} library. You can also save selected
|
||||||
|
minibuffer-history variables as part of @code{desktop-save-mode} if
|
||||||
|
you add those variables to the value of @code{desktop-globals-to-save}.
|
||||||
|
|
||||||
@node Recursive Edit
|
@node Recursive Edit
|
||||||
@section Recursive Editing Levels
|
@section Recursive Editing Levels
|
||||||
|
|
|
||||||
|
|
@ -1985,6 +1985,7 @@ the piece of the prefix and suffix covered by the completion
|
||||||
boundaries. @xref{Basic Completion}, for the precise expected semantics
|
boundaries. @xref{Basic Completion}, for the precise expected semantics
|
||||||
of completion boundaries.
|
of completion boundaries.
|
||||||
|
|
||||||
|
@cindex completion metadata
|
||||||
@item metadata
|
@item metadata
|
||||||
This specifies a request for information about the state of the
|
This specifies a request for information about the state of the
|
||||||
current completion. The return value should have the form
|
current completion. The return value should have the form
|
||||||
|
|
@ -2001,6 +2002,8 @@ The following is a list of metadata entries that a completion function
|
||||||
may return in response to a @code{metadata} flag argument:
|
may return in response to a @code{metadata} flag argument:
|
||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
|
@cindex @code{category}, in completion
|
||||||
|
@cindex completion category
|
||||||
@item category
|
@item category
|
||||||
The value should be a symbol describing what kind of text the
|
The value should be a symbol describing what kind of text the
|
||||||
completion function is trying to complete. If the symbol matches one
|
completion function is trying to complete. If the symbol matches one
|
||||||
|
|
|
||||||
|
|
@ -631,7 +631,12 @@ first line with a capital letter and end it with a period.
|
||||||
|
|
||||||
For a function, the first line should briefly answer the question,
|
For a function, the first line should briefly answer the question,
|
||||||
``What does this function do?'' For a variable, the first line should
|
``What does this function do?'' For a variable, the first line should
|
||||||
briefly answer the question, ``What does this value mean?''
|
briefly answer the question, ``What does this value mean?'' Prefer to
|
||||||
|
answer these questions in a way that will make sense to users and
|
||||||
|
callers of the function or the variable. In particular, do @emph{not}
|
||||||
|
tell what the function does by enumerating the actions of its code;
|
||||||
|
instead, describe the role of these actions and the function's
|
||||||
|
contract.
|
||||||
|
|
||||||
Don't limit the documentation string to one line; use as many lines as
|
Don't limit the documentation string to one line; use as many lines as
|
||||||
you need to explain the details of how to use the function or
|
you need to explain the details of how to use the function or
|
||||||
|
|
|
||||||
|
|
@ -2491,7 +2491,7 @@ the United States."
|
||||||
(defun calcDigit-backspace ()
|
(defun calcDigit-backspace ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(cond ((eq last-command 'calcDigit-start)
|
(cond ((eq last-command 'calcDigit-start)
|
||||||
(erase-buffer))
|
(delete-minibuffer-contents))
|
||||||
(t (with-suppressed-warnings ((interactive-only backward-delete-char))
|
(t (with-suppressed-warnings ((interactive-only backward-delete-char))
|
||||||
(backward-delete-char 1))))
|
(backward-delete-char 1))))
|
||||||
(if (= (calc-minibuffer-size) 0)
|
(if (= (calc-minibuffer-size) 0)
|
||||||
|
|
|
||||||
|
|
@ -1235,7 +1235,7 @@ For NODE, OVERRIDE, START, END, and ARGS, see
|
||||||
(when (python--treesit-variable-p node)
|
(when (python--treesit-variable-p node)
|
||||||
(treesit-fontify-with-override
|
(treesit-fontify-with-override
|
||||||
(treesit-node-start node) (treesit-node-end node)
|
(treesit-node-start node) (treesit-node-end node)
|
||||||
'font-lock-variable-name-face override start end)))
|
'font-lock-variable-use-face override start end)))
|
||||||
|
|
||||||
|
|
||||||
;;; Indentation
|
;;; Indentation
|
||||||
|
|
@ -6842,8 +6842,8 @@ implementations: `python-mode' and `python-ts-mode'."
|
||||||
'(( comment definition)
|
'(( comment definition)
|
||||||
( keyword string type)
|
( keyword string type)
|
||||||
( assignment builtin constant decorator
|
( assignment builtin constant decorator
|
||||||
escape-sequence number property string-interpolation )
|
escape-sequence number string-interpolation )
|
||||||
( bracket delimiter function operator variable)))
|
( bracket delimiter function operator variable property)))
|
||||||
(setq-local treesit-font-lock-settings python--treesit-settings)
|
(setq-local treesit-font-lock-settings python--treesit-settings)
|
||||||
(setq-local imenu-create-index-function
|
(setq-local imenu-create-index-function
|
||||||
#'python-imenu-treesit-create-index)
|
#'python-imenu-treesit-create-index)
|
||||||
|
|
|
||||||
|
|
@ -11085,6 +11085,10 @@ If the buffer doesn't exist, create it first."
|
||||||
(pop-to-buffer-same-window (get-scratch-buffer-create)))
|
(pop-to-buffer-same-window (get-scratch-buffer-create)))
|
||||||
|
|
||||||
(defun kill-buffer--possibly-save (buffer)
|
(defun kill-buffer--possibly-save (buffer)
|
||||||
|
"Ask the user to confirm killing of a modified BUFFER.
|
||||||
|
|
||||||
|
If the user confirms, optionally save BUFFER that is about to be
|
||||||
|
killed."
|
||||||
(let ((response
|
(let ((response
|
||||||
(cadr
|
(cadr
|
||||||
(read-multiple-choice
|
(read-multiple-choice
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue