Commit graph

169381 commits

Author SHA1 Message Date
Po Lu
4bf6f8d997 Introduce an option which controls touch screen hscroll
* doc/emacs/input.texi (Touchscreens): Document this new
function and revise this node for clarity and pithiness.

* lisp/touch-screen.el (touch-screen): New custom group.
(touch-screen-display-keyboard, touch-screen-delay)
(touch-screen-precision-scroll, touch-screen-word-select)
(touch-screen-extend-selection, touch-screen-preview-select):
Move such options to that group.
(touch-screen-enable-hscroll): New user option.
(touch-screen-handle-scroll): If it is disabled, maintain the
hscroll accumulators but refrain from scrolling the window.
2023-10-24 21:12:32 +08:00
Ulrich Müller
408c904d66 * Makefile.in (sanity-check): Add the -Q option. (Bug#66721) 2023-10-24 13:29:44 +02:00
Stefan Kangas
f1ae3c944a ; Minor copyedits in the drag-and-drop docs
* doc/lispref/frames.texi (Drag and Drop): Copyedits, mostly to use
simpler and more direct language.
2023-10-24 12:18:25 +02:00
Mattias Engdegård
27ab3b14de Better LLDB frame information (bug#66604)
Instead of modifying `frame-format` to be entirely machine-readable,
keep the original human-readable format and append a second,
machine-readable line that we remove after parsing.

* lisp/progmodes/gud.el
(gud-lldb-marker-filter): Parse the new line format and filter it out.
* lisp/progmodes/gud.el
(gud-lldb-def-python-completion-function): Rename to...
(gud--lldb-python-init-string): ...this and add modification
of `frame-format`, which seems easiest done from Python.
(gud-lldb-frame-format): Remove.
(gud-lldb-initialize): Update, remove no longer needed parts.
2023-10-24 11:55:52 +02:00
Po Lu
9e9bc2af51 Correct documentation of selection-coding-system
* doc/lispref/frames.texi (Window System Selections): Don't
assert that selection-coding-system functions everywhere or that
its default value is always utf-16le-dos.
(Drag and Drop): Fix a typo.
2023-10-24 07:32:25 +00:00
Po Lu
30abe63c4d * doc/lispref/frames.texi (Drag and Drop): Fix typo. 2023-10-24 06:27:48 +00:00
Po Lu
bcdfd7b091 Rewrite all sections of the drag-and-drop documentation
* doc/lispref/frames.texi (Other Selections): Correct
punctuation in one paragraph.
(Drag and Drop): Rewrite last two sections for clarity.
2023-10-24 05:37:24 +00:00
Po Lu
eea7214113 Rewrite first two sections of the drag-and-drop documentation
* doc/lispref/frames.texi (Accessing Selections): Refine
wording.
(Drag and Drop): Rewrite for clarity and enter into detail upon
various function arguments.
2023-10-24 03:04:51 +00:00
Stefan Kangas
b376580e97 Prefer HTTPS to HTTP in thing-at-point
* lisp/thingatpt.el (thing-at-point-url-at-point): Prefer HTTPS to
HTTP.
2023-10-24 01:01:07 +02:00
Stefan Kangas
ad47beb823 Remove gmane.org support from nnweb
* lisp/gnus/nnweb.el (nnweb-type, nnweb-type-definition): Remove gmane.
(nnweb-gmane-create-mapping, nnweb-gmane-wash-article)
(nnweb-gmane-search, nnweb-gmane-identity): Make obsolete.
(nnweb-definition, nnweb-init): Raise user-error when 'nnweb-type' is
'gmane'.
* doc/misc/gnus.texi (Registry Article Refer Method): Update
example to not use gmane.org.
Ref: https://gmane.io/
2023-10-24 00:52:17 +02:00
Stefan Kangas
6f07ec1913 ; Fix broken link 2023-10-24 00:07:41 +02:00
Stefan Kangas
be9761bc5e Prefer HTTPS to HTTP for Google Groups
* lisp/gnus/nnweb.el (nnweb-type-definition): Prefer HTTPS to HTTP
when accessing Google Groups.
2023-10-23 23:59:29 +02:00
Dmitry Gutov
391420d0c0 xref-backend-references: Avoid finding duplicates
* lisp/progmodes/xref.el (xref-backend-references):
Cull subdirectories of other elements (bug#66683).
2023-10-23 23:51:20 +03:00
Mattias Engdegård
eab9bdf79f More robust control sequence handling in LLDB output (bug#66604)
* lisp/progmodes/gud.el (gud-lldb-marker-filter):
Slightly more elaborate interpretation of CHA and ED sequences
in LLDB output, allowing edits to previously emitted characters
on the same line.
2023-10-23 19:11:50 +02:00
Stefan Kangas
0e30ee84ca ; Fix my last commit
* test/lisp/erc/erc-tests.el (erc-tests--update-modules): Bind
'text-quoting-style' to 'grave'.
(erc--update-modules/unknown): Simplify.
Suggested by Mattias Engdegård <mattias.engdegard@gmail.com>.
2023-10-23 15:10:37 +02:00
Mattias Engdegård
9e002ef9c0 Modernise text about using dynamic variables
* doc/lispref/variables.texi (Dynamic Binding Tips):
Give more useful advice.
2023-10-23 14:48:42 +02:00
Mattias Engdegård
dfee22c312 Elaborate Elisp dialect selection in manual
* doc/lispref/variables.texi (Using Lexical Binding): Rename to...
(Selecting Lisp Dialect): ...this.  All references updated.
Add concrete examples of -*- lines.
Move text about special variables from here...
(Dynamic Binding): ...to here.
2023-10-23 14:48:42 +02:00
Mattias Engdegård
7e4a4b762e Describe lexical binding before dynamic
* doc/lispref/variables.texi (Variable Scoping)
(Lexical Binding, Dynamic Binding):
Alter the presentation order from the point of view that lexical
binding is the standard discipline (if not always the default) and
dynamic binding an alternative, which corresponds better to Elisp
today.  Modernise parts of the text.
* doc/lispref/elisp.texi (Top): Update menu.
2023-10-23 14:48:42 +02:00
Mattias Engdegård
48e7f5493e Improved eval documentation
Prompted by Michael Heerdegen.

* src/eval.c (Feval):
* doc/lispref/eval.texi (Eval):
Be more precise about the LEXICAL argument.
2023-10-23 14:48:42 +02:00
Stefan Kangas
d1fa9f1956 Fix failing ERC test
* test/lisp/erc/erc-tests.el (erc--update-modules/unknown): Fix
test failing due to grave/curve quote.
2023-10-23 14:37:23 +02:00
Po Lu
baf14aa16a Rewrite Yank Media node in the Emacs Lisp manual
* doc/lispref/frames.texi (Other Selections): Introduce a
reference to Accessing Selections, then rewrite for clarity and
to stop mentioning MIME types by name, for selection data types
are not confined to those.
2023-10-23 11:16:07 +00:00
Basil L. Contovounesios
7e87b145fc ; * test/lisp/align-tests.el: Pacify warning. 2023-10-23 12:59:13 +02:00
john muhl
1c261e0a6c Various improvements to lua-ts-mode (Bug#66159)
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Improve movement.
(lua-ts--simple-indent-rules): Improve indentation rules.
(lua-ts-mode-map): Add key bindings and menus.
(lua-ts-mode-hook): Make hook available in Customize.
(lua-ts-inferior-history, lua-ts-inferior--write-history): Add option
to read/write an input history file.
(lua-ts-inferior-lua, lua-ts-send-buffer, lua-ts-send-file)
(lua-ts-send-region, lua-ts-inferior-prompt)
(lua-ts-inferior-prompt-continue): Support for sending buffer,
file or region to the inferior process.
(lua-ts-show-process-buffer, lua-ts-hide-process-buffer)
(lua-ts-kill-process): New functions.
(lua-ts-inferior-prompt-regexp): Remove option.
* test/lisp/progmodes/lua-ts-mode-resources/indent.erts:
* test/lisp/progmodes/lua-ts-mode-resources/movement.erts: Add
tests.
2023-10-23 10:07:52 +02:00
Po Lu
731dd5f92e ; * doc/lispref/frames.texi (X Selections): Fix typo. 2023-10-23 08:03:49 +00:00
Po Lu
2cb3dea72b Correctly register Num Lock keys under Haiku
* src/haiku_support.cc (DispatchMessage): If B_NUM_LOCK is set,
invert B_SHIFT_KEY; should it be subsequently set, omit mapping
from raw_char.
2023-10-23 05:38:03 +00:00
Gerd Möllmann
db96cdcc8d Fix LLDB prompt in Gud when attached
* lisp/progmodes/gud.el (gud-lldb-marker-filter): Fix the prompt by
replacing multiple spaces with one.
2023-10-23 07:27:04 +02:00
Po Lu
d33a72e8d7 Further improve documentation concerning selections
* doc/lispref/frames.texi (Window System Selections): Replace
incomplete attempts to address selection data types in this node
with references to Accessing Selections.
(Accessing Selections, X Selections): Revise for clarity and
pithiness.
2023-10-23 02:32:09 +00:00
Antero Mejr
cfc796f6f2 Add completion for 'doas' to pcomplete
* lisp/pcmpl-unix.el (pcomplete/doas): New function.
* etc/NEWS: Announce.  (Bug#66551)

Co-authored-by: Visuwesh <visuweshm@gmail.com>
2023-10-23 00:42:05 +02:00
Mauro Aranda
9be8011217 Allow specifying the dir locals file to edit (Bug#66663)
* lisp/files-x.el (modify-dir-local-variable): Take a 5th optional
argument, the filename of the dir locals file to modify.
(read-dir-locals-file): New function.
(add-dir-local-variable, delete-dir-local-variable)
(copy-file-locals-to-dir-locals): Optionally read the filename to
modify, and pass it to modify-dir-local-variable.
* etc/NEWS: Announce the change.
* doc/emacs/custom.texi (Directory Variables): Document the new
functionality.
2023-10-22 20:54:15 +03:00
Petteri Hintsanen
f39cd59ed4 * lisp/tab-bar.el: Fix the close button with auto-width (bug#66678).
(tab-bar-auto-width): Take into account the length of tab-bar-close-button
more than one character: " x".
2023-10-22 20:41:14 +03:00
Po Lu
4ff0c738d0 Further improve selection-related documentation
* doc/lispref/frames.texi (Other Selections): Expand
documentation regarding Haiku selections, and some
non-substantive copy edits elsewhere.  Introduce more indexing.
2023-10-22 19:43:27 +08:00
Po Lu
ae33788410 Revise documentation concerning selections outside X
* doc/lispref/frames.texi (Accessing Selections, X Selections):
Correct markup, averting the recognition of X followed by a
sentence stop as an acronym.
(Other Selections): Relate the nature of the MS-Windows
selection emulation, how it functions, and its deficiencies.
Clarify paragraphs concerning PGTK and Nextstep.

* doc/misc/efaq.texi (Emacs in a Linux console):

* doc/misc/use-package.texi (Conditional loading): Correct
markup, averting the recognition of X followed by a sentence
stop as an acronym.
2023-10-22 07:55:12 +00:00
Eli Zaretskii
b446294faa ; * src/keyboard.c (save_line_number_display_width): Fix last change. 2023-10-22 08:20:38 +03:00
Po Lu
6f87ee0e3a Enumerate default UVS glyphs
* src/sfnt.c (sfnt_compare_unicode_value_range)
(sfnt_is_character_default): New functions.
(sfnt_test_uvs): Print and verify the default UVS table.

* src/sfnt.h: Update prototypes.

* src/sfntfont.c (sfntfont_get_variation_glyphs): Index the cmap
with the default glyph, and insert it within VARIATIONS if
character is present within a selector record's default UVS
table.
2023-10-22 09:06:28 +08:00
Yuan Fu
8c15515b62
; * lisp/progmodes/js.el (js--treesit-sexp-nodes): Fix docstring. 2023-10-21 11:08:58 -07:00
Yuan Fu
aa6cb41661
Documentation for treesit-font-lock-rules change
* doc/lispref/modes.texi (Parser-based Font Lock): Update manual.
* lisp/treesit.el (treesit-font-lock-rules): Update docstring.
2023-10-21 11:07:30 -07:00
Gerd Möllmann
5e546abf7a ; Fix a compilation warning 2023-10-21 19:55:25 +02:00
Stefan Monnier
c5f4d0fea5 * lisp/cedet/semantic/imenu.el: Don't load advice
We don't use it any more here.  Also move the `;;; Code:` where it belongs.
2023-10-21 13:48:30 -04:00
Stefan Monnier
0ad355e9c6 * lisp/treesit.el: Don't require cl-seq directly 2023-10-21 13:40:12 -04:00
Stefan Monnier
c221db0402 so-long.el: Don't load advice during compilation
* lisp/so-long.el: Prefer #' to quote function names.
(global-so-long-mode): Remove redundant `:group` arg.
(<toplevel>): Don't load needlessly the obsolete `advice` library
during compilation.
2023-10-21 13:05:58 -04:00
Eli Zaretskii
1e25f1d997 ; * etc/NEWS: Fix wording of a recently-added entry. 2023-10-21 18:18:11 +03:00
Mattias Engdegård
a3db503351 Move lexical-binding warning from checkdoc to byte-compiler
This warning is much more appropriate for the compiler, since lexical
binding affects what it can reason and warn about, than for checkdoc
as the warning has no bearing to documentation at all.
The move also improves the reach of the warning.

* etc/NEWS: Update.
* lisp/emacs-lisp/checkdoc.el (checkdoc-lexical-binding-flag)
(checkdoc-file-comments-engine): Move warning from here....
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): ...to here.
* test/lisp/emacs-lisp/bytecomp-resources/no-byte-compile.el:
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--unescaped-char-literals)
(bytecomp-tests-function-put, bytecomp-tests--not-writable-directory)
(bytecomp-tests--target-file-no-directory):
Update tests.
(bytecomp-tests--log-from-compilation)
(bytecomp-tests--lexical-binding-cookie): New test.
2023-10-21 15:12:55 +02:00
Eli Zaretskii
12c8cdb60c Merge from origin/emacs-29
b99d12c30c ; Fix argument name for function `copy-file'
2023-10-21 08:06:09 -04:00
Eli Zaretskii
5c65241445 ; Merge from origin/emacs-29
The following commits were skipped:

62920dcb0d Update Tramp version (don't merge with master)
d963bc6c6b ; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1.90.
0cbc91f29a Bump Emacs version
2023-10-21 08:06:08 -04:00
Eli Zaretskii
52f25b791e Merge from origin/emacs-29
ab9d6482e3 ; Update ChangeLog.4 and etc/AUTHORS.
d9e1605122 Correctly register focus events concomitant with alpha ch...
194e219825 * doc/man/emacsclient.1: Add missing options.
2023-10-21 08:06:07 -04:00
Eli Zaretskii
1b2083c2f3 ; * src/keyboard.c (line_number_mode_hscroll): Fix last change. 2023-10-21 15:03:22 +03:00
Eli Zaretskii
2fb4108ab7 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2023-10-21 14:34:28 +03:00
Mattias Engdegård
9c82f48059 Move and edit text about lexical environment representation
It's only relevant for the second argument to `eval`; the actual
internal representation is an implementation matter and usually
different from what was described here.

* doc/lispref/variables.texi (Lexical Binding): Move the relevant
part of the description of the internal representation of
lexical environments from here...
* doc/lispref/eval.texi (Eval): ...to here, where it belongs.
2023-10-21 13:10:56 +02:00
Po Lu
e367d1862d ; * src/sfnt.c: Refine doc of variation selectors and GX fonts. 2023-10-21 18:58:13 +08:00
Eli Zaretskii
e57b19b400 Fix mouse clicks on links under 'global-display-line-numbers-mode'
* src/indent.c (line_number_display_width): No longer static.
* src/lisp.h (line_number_display_width): Add prototype.
* src/keyboard.c (save_line_number_display_width)
(line_number_mode_hscroll): New functions.
(make_lispy_event): Call 'save_line_number_display_width' and
'line_number_mode_hscroll' to avoid interpreting up-event as drag
event when redisplay scrolls the text horizontally between the
down- and up-event to account for the changed width of the
line-number display.  (Bug#66655)
2023-10-21 13:53:21 +03:00