]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoFix some Tramp problems
Michael Albinus [Mon, 18 Oct 2021 17:54:13 +0000 (19:54 +0200)]
Fix some Tramp problems

* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
Use `tramp-adb-handle-file-executable-p' and
`tramp-adb-handle-file-readable-p'.
(tramp-adb-handle-file-executable-p)
(tramp-adb-handle-file-readable-p): New defuns.
(tramp-adb-handle-file-writable-p): Simplify.
(tramp-adb-handle-make-process): Handle :filter being t.
(tramp-adb-find-test-command): Remove.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-readable-p):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-readable-p):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
(tramp-gvfs-handle-file-executable-p): Do not check whether file
exists, this is done in `tramp-check-cached-permissions'.
(tramp-gvfs-handle-file-readable-p): Remove.

* lisp/net/tramp.el (tramp-error): Move binding of `inhibit-message' ...
(tramp-signal-hook-function): ... here.
(tramp-handle-access-file): Rewrite.
(tramp-handle-file-readable-p): New defun.
(tramp-handle-make-process): Setting :filter to t works since
Emacs 29.1 only.

* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory)
(tramp-test18-file-attributes): Extend tests.

3 years agoAdapt Tramp manual
Michael Albinus [Mon, 18 Oct 2021 17:53:34 +0000 (19:53 +0200)]
Adapt Tramp manual

* doc/misc/tramp.texi: Use @uref instead of @url.
(Frequently Asked Questions): Adapt ELPA references.

3 years agoFurther fixes to Elisp manual
Martin Rudalics [Mon, 18 Oct 2021 17:18:42 +0000 (19:18 +0200)]
Further fixes to Elisp manual

* doc/lispref/frames.texi (Frame Layout): Index "tab bar" instead
of "internal tab bar".
(Implied Frame Resizing): Remove irritating hyphens.
* doc/lispref/windows.texi (Windows and Frames): Remove paragraph
relating 'minibuffer-window' to 'window-list'.

3 years ago* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start
Alan Mackenzie [Mon, 18 Oct 2021 16:49:19 +0000 (16:49 +0000)]
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start

Check type-start is non-nil at L659 of the function.

3 years agoRename tab-bar-drag-maybe to tab-bar--dragging-in-progress
Juri Linkov [Mon, 18 Oct 2021 16:52:29 +0000 (19:52 +0300)]
Rename tab-bar-drag-maybe to tab-bar--dragging-in-progress

* lisp/tab-bar.el (tab-bar--event-to-item, tab-bar-mouse-down-1)
(tab-bar-mouse-move-tab): Rename tab-bar-drag-maybe to
tab-bar--dragging-in-progress.

* src/xdisp.c (note_mouse_highlight): Rename tab_bar_drag_maybe to
tab_bar__dragging_in_progress.

3 years agoFix xref elisp identifier namespace mistake
Mattias Engdegård [Mon, 18 Oct 2021 15:06:22 +0000 (17:06 +0200)]
Fix xref elisp identifier namespace mistake

Pressing `M-.` on ALPHA in

  (let ((ALPHA BETA)) ...)

would incorrectly search for ALPHA as a function rather than a variable.

* lisp/progmodes/elisp-mode.el (elisp--xref-infer-namespace): Fix logic.
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-mode-infer-namespace): Add test case.

3 years agoMinor fixes for recent changes in ELisp manual
Eli Zaretskii [Mon, 18 Oct 2021 14:13:18 +0000 (17:13 +0300)]
Minor fixes for recent changes in ELisp manual

* doc/lispref/windows.texi (Basic Windows, Windows and Frames)
(Selecting Windows):
* doc/lispref/objects.texi (Window Type):
* doc/lispref/frames.texi (Input Focus, Frame Layout): Fix
wording, punctuation, and indexing.

3 years agoFix example in calc manual
Lars Ingebrigtsen [Mon, 18 Oct 2021 13:56:51 +0000 (15:56 +0200)]
Fix example in calc manual

* doc/misc/calc.texi (Arithmetic Tutorial): Fix sign in the
example (bug#51265).

3 years agoRewrites of Elisp manual including tab-bar and tab-line changes
Martin Rudalics [Mon, 18 Oct 2021 07:58:48 +0000 (09:58 +0200)]
Rewrites of Elisp manual including tab-bar and tab-line changes

* doc/lispref/buffers.texi (Current Buffer, Buffer List): Update
references to 'selected-window'.
* doc/lispref/elisp.texi (Top): Move up Selecting Windows section
in front of Window Sizes section.
* doc/lispref/frames.texi (Creating Frames): Say window system
instead of windowing system.
(Frame Layout): Add Tab Bar to layout.
(Layout Parameters): Add 'tab-bar-lines'.
(Input Focus): Say window system window instead of window
manager window.  Fix reference to 'selected-window'.
* doc/lispref/objects.texi (Window Type): Minor rewrite.
* doc/lispref/windows.texi (Basic Windows): Rewrite.  Settle on
term 'window system window' for disambiguation with our windows.
Move 'selected-window' description to Selecting Windows section.
Move schematic of window structure here.  Use 'decorations' for
objects outside the window body.  Say that the areas reserved
for continuation and truncation glyphs, vertical dividers and
line numbers are part of the window body.
(Windows and Frames): Minor rewrite, adding and fixing some
cross references.  Move live window schematic to 'Basic Windows'
section.
(Selecting Windows): Move section in front of Window Sizes
section.  Move description of 'selected-window' here.  Move up
description of 'frame-selected-window' and
'set-frame-selected-window'.  Update and move description of
'window-bump-use-time' here.
(Window Sizes): Throughout use the term 'decorations' instead of
enumerating them individually.  Add 'window-tab-line-height'
description.
(Resizing Windows): Again use the term 'decorations' instead of
enumerating them individually.
(Splitting Windows): Minor fix.
(Cyclic Window Ordering): Improve descriptions of 'get-lru-window'
and 'get-mru-window'.  Move 'window-bump-use-time' to Selecting
Windows section.
(Coordinates and Windows, Window Configurations): Once more use
the term 'decorations' instead of enumerating them individually.
* src/window.c (Fwindow_bump_use_time): Move after
'window-use-time'.  Make it work for live windows only.  Make
WINDOW argument optional.  Update doc-string.

3 years ago; * INSTALL: Fix typo.
Stefan Kangas [Mon, 18 Oct 2021 00:35:33 +0000 (02:35 +0200)]
; * INSTALL: Fix typo.

3 years ago* lisp/tab-bar.el: Improve docstrings (bug#51247)
Juri Linkov [Sun, 17 Oct 2021 18:28:54 +0000 (21:28 +0300)]
* lisp/tab-bar.el: Improve docstrings (bug#51247)

* lisp/tab-bar.el (tab-bar--key-to-number)
(tab-bar--event-to-item, tab-bar--format-tab-group)
(tab-bar--current-tab-make): Improve docstrings.
(switch-to-buffer-other-tab): Obsolete the arg NORECORD.

3 years ago* lisp/tab-bar.el (tab-bar-mouse-move-tab): Don't drag tab to itself.
Juri Linkov [Sun, 17 Oct 2021 18:03:27 +0000 (21:03 +0300)]
* lisp/tab-bar.el (tab-bar-mouse-move-tab): Don't drag tab to itself.

3 years agoAdd tab-bar-drag-maybe for indication of tab dragging (bug#50993)
Martin Rudalics [Sun, 17 Oct 2021 17:48:45 +0000 (20:48 +0300)]
Add tab-bar-drag-maybe for indication of tab dragging (bug#50993)

* lisp/tab-bar.el (tab-bar--event-to-item)
(tab-bar-mouse-move-tab): Set tab-bar-drag-maybe to nil.
(tab-bar-mouse-down-1): Set tab-bar-drag-maybe to t.

* src/xdisp.c (note_mouse_highlight): Set cursor to 'hand_cursor'
when tab_bar_drag_maybe is true.
(syms_of_xdisp): New variable tab-bar-drag-maybe.

3 years ago* lisp/tab-bar.el: Add a new tab on [mouse-1] instead of [down-mouse-1]
Juri Linkov [Sun, 17 Oct 2021 17:27:16 +0000 (20:27 +0300)]
* lisp/tab-bar.el: Add a new tab on [mouse-1] instead of [down-mouse-1]

* lisp/tab-bar.el (tab-bar-mouse-down-1): Rename from
tab-bar-mouse-select-tab.  Ignore 'add-tab'.
(tab-bar-mouse-1): Rename from tab-bar-mouse-close-tab-from-button.
Use binding of 'add-tab'.
(tab-bar-map): Rebind [down-mouse-1] from tab-bar-mouse-select-tab to
tab-bar-mouse-down-1, and [mouse-1] from tab-bar-mouse-close-tab-from-button
to tab-bar-mouse-1 (bug#51246).

3 years agoAdd new and fix existing docstrings in tab-bar.el and tab-line.el (bug#51247)
Juri Linkov [Sun, 17 Oct 2021 17:09:29 +0000 (20:09 +0300)]
Add new and fix existing docstrings in tab-bar.el and tab-line.el (bug#51247)

* lisp/tab-bar.el (tab-bar--key-to-number)
(tab-bar--event-to-item, tab-bar--format-tab)
(tab-bar--format-tab-group, tab-bar--tab, tab-bar--current-tab)
(tab-bar--current-tab-make): Add/fix docstrings.

3 years agoAdd tab bar support to the nextstep port
Po Lu [Fri, 15 Oct 2021 18:02:54 +0000 (19:02 +0100)]
Add tab bar support to the nextstep port

* src/nsfns.m (ns_change_tab_bar_height): New function.
(ns_set_tab_bar_lines): Check tab bar height and set tab bar
accordingly.
* src/nsterm.m (ns_clear_under_internal_border): Clear internal border
correctly when there is a tab bar.
(ns_create_terminal): Add ns_change_tab_bar_height.
(mouseDown): Handle tab bar mouse click events.

3 years agoFix potential buffer overflow (bug#50767)
Alan Third [Mon, 4 Oct 2021 21:35:41 +0000 (22:35 +0100)]
Fix potential buffer overflow (bug#50767)

* src/image.c (svg_load_image): Check how many bytes were actually
written to the buffer.  Don't check xmalloc return value as xmalloc
doesn't return if it fails.

3 years agoImprove doc strings in tab-line.el
Eli Zaretskii [Sun, 17 Oct 2021 09:49:04 +0000 (12:49 +0300)]
Improve doc strings in tab-line.el

* lisp/tab-line.el (tab-line-tab-name-function)
(tab-line-tab-name-truncated-buffer, tab-line-tabs-mode-buffers)
(tab-line-tabs-buffer-group-function)
(tab-line-tabs-buffer-group-sort-function)
(tab-line-tabs-buffer-groups, tab-line-tab-name-format-function)
(tab-line-tab-name-format-default, tab-line-format-template)
(tab-line-tab-face-inactive-alternating)
(tab-line-tab-face-special, tab-line-tab-face-modified)
(tab-line-format, tab-line-auto-hscroll, tab-line-hscroll-right)
(tab-line-hscroll-left, tab-line-new-tab, tab-line-select-tab)
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab)
(tab-line-close-tab-function, tab-line-close-tab)
(tab-line-tab-context-menu, tab-line-context-menu)
(tab-line-mode, tab-line-exclude-modes, tab-line-mode--turn-on):
Add or fix doc strings.

3 years agoMore documentation fixes in tab-bar.el
Eli Zaretskii [Sun, 17 Oct 2021 08:42:23 +0000 (11:42 +0300)]
More documentation fixes in tab-bar.el

* lisp/tab-bar.el (tab-bar-detach-tab, tab-bar-move-window-to-tab)
(tab-bar-new-tab-to, tab-bar-new-tab, tab-bar-close-tab-select)
(tab-bar-close-last-tab-choice, tab-bar-tab-pre-close-functions)
(tab-bar-close-tab, tab-bar-close-tab-by-name)
(tab-bar-close-other-tabs, tab-bar-rename-tab)
(tab-bar-rename-tab-by-name, tab-bar-move-tab-to-group)
(tab-bar-change-tab-group, tab-bar-close-group-tabs)
(tab-switcher-next-line, tab-switcher-prev-line)
(tab-switcher-unmark, tab-switcher-delete, tab-switcher-select)
(tab-bar-get-buffer-tab, display-buffer-in-tab)
(display-buffer-in-new-tab, switch-to-buffer-other-tab)
(find-file-other-tab, find-file-read-only-other-tab): Doc fixes.

3 years agoImprove doc strings of tab-bar commands
Eli Zaretskii [Sun, 17 Oct 2021 07:33:34 +0000 (10:33 +0300)]
Improve doc strings of tab-bar commands

* lisp/tab-bar.el (tab-bar-mouse-select-tab)
(tab-bar-mouse-move-tab, tab-bar-mouse-close-tab-from-button)
(tab-bar-mouse-close-tab, tab-bar-mouse-context-menu)
(tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab)
(tab-bar-switch-to-last-tab, tab-bar-switch-to-recent-tab)
(tab-bar-move-tab-backward, tab-bar-move-tab)
(tab-bar-move-tab-to-frame): Add/fix doc strings.

3 years agoFix a semantic test on some macOS machines
Stefan Kangas [Sun, 17 Oct 2021 01:00:10 +0000 (03:00 +0200)]
Fix a semantic test on some macOS machines

* test/lisp/cedet/semantic/bovine/gcc-tests.el
(semantic-gcc-test-output-parser-this-machine): Fix test on some macOS
machines where running "gcc" runs "llvm" instead.

3 years agoUpdate to Org 9.5-57-g9bc3a2
Kyle Meyer [Sat, 16 Oct 2021 18:01:34 +0000 (14:01 -0400)]
Update to Org 9.5-57-g9bc3a2

3 years agoRecommend against using uce.el
Stefan Kangas [Tue, 12 Oct 2021 04:30:20 +0000 (06:30 +0200)]
Recommend against using uce.el

* lisp/mail/uce.el: Recommend against its use.  (Bug#46472)
Do not merge to master.

3 years agoAvoid aborts when a thread is signaled while "waiting for input".
Eli Zaretskii [Sat, 16 Oct 2021 11:47:32 +0000 (14:47 +0300)]
Avoid aborts when a thread is signaled while "waiting for input".

* src/process.c (kbd_is_ours): New function.
(wait_reading_process_output): Set 'waiting_for_input' only if the
current thread is monitoring the keyboard descriptor.  See also
https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01180.html.
(Bug#51229)

3 years agoImprove documentation string for 'compilation-error-regexp-alist'.
Philipp Stephani [Sat, 16 Oct 2021 09:46:49 +0000 (11:46 +0200)]
Improve documentation string for 'compilation-error-regexp-alist'.

* lisp/progmodes/compile.el (compilation-error-regexp-alist): Clarify
behavior when TYPE is a cons cell.

3 years ago* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix target dir.
Andrea Corallo [Sat, 16 Oct 2021 08:55:43 +0000 (10:55 +0200)]
* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix target dir.

3 years agoFix removal of fringe indication of bookmarks
Eli Zaretskii [Sat, 16 Oct 2021 07:10:06 +0000 (10:10 +0300)]
Fix removal of fringe indication of bookmarks

* lisp/bookmark.el (bookmark--remove-fringe-mark): Fix off-by-one
error in looking for bookmark-related overlays.  (Bug#51233)

3 years agoPrefer "graphical displays" to "X terminals" in documentation
Stefan Kangas [Fri, 15 Oct 2021 18:22:11 +0000 (20:22 +0200)]
Prefer "graphical displays" to "X terminals" in documentation

* doc/lispref/objects.texi (Ctl-Char Syntax): Fix incorrect remark;
some text terminals can generate ASCII control characters.
(Other Char Bits):
* lisp/bindings.el:
* lisp/gnus/gnus-undo.el (gnus-undo-mode-map): Say "graphical display"
and "GUI display" instead of "X terminal"; the latter term is
archaic.  (Bug#51217)

3 years agoPrecise documentation of file-notify-add-watch
Michael Albinus [Fri, 15 Oct 2021 14:29:11 +0000 (16:29 +0200)]
Precise documentation of file-notify-add-watch

* doc/lispref/os.texi (File Notifications):
* lisp/filenotify.el (file-notify-add-watch): Precise, that
watching a directory includes reports on file changes for some
backends.  (Bug#51146)

3 years agoFixes to account for windows' tab lines
Martin Rudalics [Fri, 15 Oct 2021 08:21:05 +0000 (10:21 +0200)]
Fixes to account for windows' tab lines

* doc/lispref/display.texi (Size of Displayed Text): Fix entry
on 'window-text-pixel-size'.
* lisp/window.el (window--dump-window): Dump tab-line-height and
scroll-bar-height too.
(window--min-size-1): Take 'window-tab-line-height' into account.
* src/xdisp.c (Fwindow_text_pixel_size): Fix doc-string of
'window-text-pixel-size'.  Rename last argument to 'MODE-LINES'.

3 years ago* Fix `native-compile-target-directory' effectiveness on trampolines
Andrea Corallo [Fri, 15 Oct 2021 07:26:24 +0000 (09:26 +0200)]
* Fix `native-compile-target-directory' effectiveness on trampolines

* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix
`native-compile-target-directory' effectiveness on trampoline
compilation.

3 years agoAdd missing single quotes in the Emacs manual
Jan Synacek [Fri, 15 Oct 2021 06:20:40 +0000 (08:20 +0200)]
Add missing single quotes in the Emacs manual

* lisp/mwheel.el (mouse-wheel-scroll-amount): Add missing single
quotes.  (Bug#51223)

Copyright-paperwork-exempt: yes.

3 years ago; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix comment.
Andrea Corallo [Fri, 15 Oct 2021 07:18:54 +0000 (09:18 +0200)]
; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix comment.

3 years ago* lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#51138).
Juri Linkov [Fri, 15 Oct 2021 06:58:29 +0000 (09:58 +0300)]
* lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#51138).

3 years agoAccept process-filter t in Tramp
Michael Albinus [Thu, 14 Oct 2021 12:32:47 +0000 (14:32 +0200)]
Accept process-filter t in Tramp

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Filter can be t.

* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Test filter equal t.

3 years ago; * doc/lispref/processes.texi (Filter Functions): Fix last change.
Eli Zaretskii [Thu, 14 Oct 2021 11:51:04 +0000 (14:51 +0300)]
; * doc/lispref/processes.texi (Filter Functions): Fix last change.

3 years agoDocument the t value for set-process-filter in the manual
Lars Ingebrigtsen [Thu, 14 Oct 2021 11:10:00 +0000 (13:10 +0200)]
Document the t value for set-process-filter in the manual

* doc/lispref/processes.texi (Filter Functions): Mention what t
means (bug#51177).

3 years ago* doc/misc/tramp.texi (Frequently Asked Questions): Add reference
Michael Albinus [Thu, 14 Oct 2021 09:50:47 +0000 (11:50 +0200)]
* doc/misc/tramp.texi (Frequently Asked Questions): Add reference

to ELPA Installation node.

3 years agoFix Help functions for clicks on tool bar and tab bar
Eli Zaretskii [Thu, 14 Oct 2021 09:29:43 +0000 (12:29 +0300)]
Fix Help functions for clicks on tool bar and tab bar

* lisp/mouse.el (mouse-minibuffer-check): Don't assume posn-window
returns a window.  (Bug#5199)

3 years ago; * etc/DEBUG: Add a section about debugging native-compilation.
Eli Zaretskii [Thu, 14 Oct 2021 09:14:14 +0000 (12:14 +0300)]
; * etc/DEBUG: Add a section about debugging native-compilation.

3 years agoIn make_lispy_position fix Bug#50993 in rudimentary fashion
Martin Rudalics [Thu, 14 Oct 2021 08:39:27 +0000 (10:39 +0200)]
In make_lispy_position fix Bug#50993 in rudimentary fashion

* src/keyboard.c (make_lispy_position): Do not set posn to
tool- or tab-bar when track_mouse is enabled (Bug#50993).

3 years agoMark vc-switch-backend as obsolete
Dmitry Gutov [Wed, 13 Oct 2021 23:28:00 +0000 (02:28 +0300)]
Mark vc-switch-backend as obsolete

* etc/NEWS: Mention the change.

* lisp/vc/vc.el (vc-switch-backend): Mark as obsolete (bug#50344).
(vc-transfer-file): Wrap the calls in 'with-suppressed-warnings'.

3 years agoAdd missing parentheses in the Emacs manual
Yan [Wed, 13 Oct 2021 23:28:02 +0000 (01:28 +0200)]
Add missing parentheses in the Emacs manual

* doc/emacs/maintaining.texi (Xref Commands): Add missing
parentheses (bug#51195).

Copyright-paperwork-exempt: yes

3 years agoImprove tooltip of mode-line-position again
Stefan Kangas [Wed, 13 Oct 2021 22:26:51 +0000 (00:26 +0200)]
Improve tooltip of mode-line-position again

* lisp/bindings.el (mode-line-position): Improve tooltip again.
This change was discussed in
https://lists.gnu.org/r/emacs-devel/2021-10/msg00952.html

3 years agoUse browse-url-button-regexp for rcirc-url-regexp
Philip Kaludercic [Wed, 13 Oct 2021 19:49:28 +0000 (21:49 +0200)]
Use browse-url-button-regexp for rcirc-url-regexp

* rcirc.el (rcirc-url-regexp): Copy improved regexp from browse-url

3 years ago* lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events
Juri Linkov [Wed, 13 Oct 2021 19:17:27 +0000 (22:17 +0300)]
* lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events

(bug#51173)

3 years ago; * etc/charsets/README: Update the format documentation.
Eli Zaretskii [Wed, 13 Oct 2021 17:02:23 +0000 (20:02 +0300)]
; * etc/charsets/README: Update the format documentation.

3 years agoTramp doc cleanup
Michael Albinus [Wed, 13 Oct 2021 16:59:10 +0000 (18:59 +0200)]
Tramp doc cleanup

* doc/misc/tramp.texi (Overview, Bug Reports)
(Frequently Asked Questions): Stylistic changes.
(Bug Reports): Mention tramp buffers appended to bug report.

3 years agoMake emacs-lisp-byte-compile-and-load load the .elc file again
Lars Ingebrigtsen [Wed, 13 Oct 2021 11:41:21 +0000 (13:41 +0200)]
Make emacs-lisp-byte-compile-and-load load the .elc file again

* lisp/progmodes/elisp-mode.el (emacs-lisp-byte-compile-and-load):
Load the compiled file instead of the source (bug#51180).

3 years agoFix point movement in image-dired
Peter Münster [Tue, 12 Oct 2021 12:31:58 +0000 (14:31 +0200)]
Fix point movement in image-dired

* lisp/image-dired.el (image-dired-thumb-file-marked-p): Don't
move point in associated dired buffer.
(image-dired-delete-marked): Revert "Fix deletion of associated image"
because it was wrong and introduced another problem (bug#51152).

3 years agoImprove shortdoc for vector
Stefan Kangas [Wed, 13 Oct 2021 03:00:10 +0000 (05:00 +0200)]
Improve shortdoc for vector

* lisp/emacs-lisp/shortdoc.el (vector): Improve shortdoc with titles.
Add mapc.  Fix typo where 'seq-reduce' is incorrectly written as
'reduce'.

3 years agoFix test bug when calloc returns null
Paul Eggert [Wed, 13 Oct 2021 00:10:46 +0000 (17:10 -0700)]
Fix test bug when calloc returns null

* test/src/emacs-module-resources/mod-test.c (Fmod_test_userptr_make):
Don’t dump core if calloc returns null and signal_errno returns.

3 years agoPacify GCC 11 -fanalyzer on x86-64
Paul Eggert [Tue, 12 Oct 2021 18:54:32 +0000 (11:54 -0700)]
Pacify GCC 11 -fanalyzer on x86-64

* src/buffer.c (fix_overlays_before):
Redo slightly to work around GCC bug 102692
<https://gcc.gnu.org/bugzilla//show_bug.cgi?id=102692>.

3 years agoImprove handling of non-character events in input methods
Gregory Heytings [Tue, 12 Oct 2021 12:50:21 +0000 (12:50 +0000)]
Improve handling of non-character events in input methods

* lisp/international/quail.el (quail-add-unread-command-events):
Handle non-vector event arguments.  Fixes bug#51118.

3 years ago; Fix mistakes in last doc rewording about shorthands
João Távora [Tue, 12 Oct 2021 15:50:46 +0000 (16:50 +0100)]
; Fix mistakes in last doc rewording about shorthands

bug#51089

1. The 'punctuation' syntax class is actually empty in Emacs Lisp.
   The class used in the implementation is 'symbol constituents';

2) The prefix to escape shorthands is '#_' together, not '#' or '_'.

* doc/lispref/symbols.texi (Shorthands): Fix exception.

3 years ago; Fix last change related to shorthands
Eli Zaretskii [Tue, 12 Oct 2021 13:20:47 +0000 (16:20 +0300)]
; Fix last change related to shorthands

* src/lread.c (read1): Minor stylistic fixes of the last change,
including the wording of the comment.

* doc/lispref/symbols.texi (Shorthands): Fix wording and typos.

3 years agoIn Fdelete_other_windows_internal fix new total window sizes (Bug#51007)
Martin Rudalics [Tue, 12 Oct 2021 07:25:57 +0000 (09:25 +0200)]
In Fdelete_other_windows_internal fix new total window sizes (Bug#51007)

* src/window.c (Fdelete_other_windows_internal): Assign the
new total sizes of windows _after_ the new window configuration
is in place (Bug#51007).

3 years ago* lisp/mh-e/mh-show.el (mh-junk-whitelist): Custom obsolescence message.
Stephen Gildea [Tue, 12 Oct 2021 01:19:18 +0000 (18:19 -0700)]
* lisp/mh-e/mh-show.el (mh-junk-whitelist): Custom obsolescence message.

3 years agoDon't apply shorthands to punctuation-only symbols (bug#51089)
João Távora [Mon, 11 Oct 2021 21:19:51 +0000 (22:19 +0100)]
Don't apply shorthands to punctuation-only symbols (bug#51089)

This includes symbols used for arithmetic functions such as -, /=,
etc.  Using "-" or "/=" is still possible but doing so won't shadow
those functions.

* doc/lispref/symbols.texi (Shorthand, Exceptions): New
subsubsection.

* src/lread.c (read1): Exempt punctionation-only symbols from
oblookup_considering_shorthand.

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Tweak test.

3 years ago* lisp/progmodes/python.el: Bump package version to 0.28.
Stefan Kangas [Mon, 11 Oct 2021 19:20:55 +0000 (21:20 +0200)]
* lisp/progmodes/python.el: Bump package version to 0.28.

3 years agoFontify "print" and "exec" as functions in python-mode
Stefan Kangas [Mon, 11 Oct 2021 13:10:26 +0000 (15:10 +0200)]
Fontify "print" and "exec" as functions in python-mode

This change was first made on master, but on closer consideration it
is better to fix this bug already in Emacs 28.1.

* lisp/progmodes/python.el (python-font-lock-keywords-level-2):
Fontify "print" and "exec" as functions, which is the case in
Python 3.  (Bug#43298)  Do not merge to master.

3 years agoCopy parent face attributes to tab-line-tab-current instead of inheriting face
Juri Linkov [Mon, 11 Oct 2021 18:27:50 +0000 (21:27 +0300)]
Copy parent face attributes to tab-line-tab-current instead of inheriting face

* lisp/tab-line.el (tab-line-tab-current): Don't inherit face from
'tab-line-tab' to not inherit the face attribute :height from 'tab-line',
because :height of mouse-face is added to the base face.
Copy here most of the parent face attributes (bug#50798).

3 years agoAnother fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)
Martin Rudalics [Mon, 11 Oct 2021 16:58:10 +0000 (18:58 +0200)]
Another fix for 'ibuffer-shrink-to-fit' (Bug#7218, Bug#51029)

* lisp/ibuffer.el (ibuffer-shrink-to-fit): Fit window only if its
buffer is in 'ibuffer-mode' (Bug#7218, Bug#51029).

3 years agoBackport: * doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.
Michael Albinus [Mon, 11 Oct 2021 08:16:06 +0000 (10:16 +0200)]
Backport: * doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.

(cherry picked from commit 978e5339e0d4ef98575096bcf3ec2061ad530f27)

3 years agoWork around GCC bug 102671
Paul Eggert [Mon, 11 Oct 2021 16:23:47 +0000 (09:23 -0700)]
Work around GCC bug 102671

This is for --enable-gcc-warnings on GCC 11.2.1.
* src/window.c, src/timefns.c: Disable -Wanalyzer-null-dereference.

3 years agoRelease ERC 5.4
Amin Bandali [Mon, 11 Oct 2021 14:29:35 +0000 (10:29 -0400)]
Release ERC 5.4

* lisp/erc/erc.el (Version, erc-version): Bump to 5.4.
(customize-package-emacs-version-alist): Add entry for 5.4.

3 years ago* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.
Amin Bandali [Mon, 11 Oct 2021 14:25:08 +0000 (10:25 -0400)]
* etc/ERC-NEWS: Announce ERC's addition to GNU ELPA.

3 years ago* etc/ERC-NEWS: Fix outline level for the recent additions.
Amin Bandali [Mon, 11 Oct 2021 14:13:56 +0000 (10:13 -0400)]
* etc/ERC-NEWS: Fix outline level for the recent additions.

3 years agoAdd ERC entries for 'customize-package-emacs-version-alist'
Amin Bandali [Mon, 11 Oct 2021 14:04:44 +0000 (10:04 -0400)]
Add ERC entries for 'customize-package-emacs-version-alist'

* lisp/erc/erc.el (customize-package-emacs-version-alist): Add entries
for existing ERC versions.

3 years agoExpand the full file name
Dmitry Gutov [Mon, 11 Oct 2021 13:37:55 +0000 (16:37 +0300)]
Expand the full file name

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Expand the full file name, not just the local part (bug#51112).

3 years agoObsolete XEmacs compat convention in 'erc-button-press-button'
Stefan Kangas [Mon, 11 Oct 2021 13:39:17 +0000 (09:39 -0400)]
Obsolete XEmacs compat convention in 'erc-button-press-button'

* lisp/erc/erc-button.el (erc-button-press-button): Advertise new
calling convention without XEmacs compatibility.

3 years agoBackport: Add ERC version to protocol log
F. Jason Park [Sat, 9 Oct 2021 12:59:43 +0000 (14:59 +0200)]
Backport: Add ERC version to protocol log

* lisp/erc/erc.el (erc-toggle-debug-irc-protocol): Include the erc
version in the debug logs (bug#51107).

(cherry picked from commit 13411346202f86e950bee076a5d528e98695fbb4)

3 years agoAdapt the recent 'num_processors' change to MS-Windows
Eli Zaretskii [Mon, 11 Oct 2021 12:56:31 +0000 (15:56 +0300)]
Adapt the recent 'num_processors' change to MS-Windows

* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_nproc): Omit nproc.

* src/w32.c (num_processors): New function.
* src/w32proc.c (Fw32_get_nproc): Remove.

3 years agoMinor fix to clarify a sentence in emacs-lisp-intro
Stefan Kangas [Mon, 11 Oct 2021 12:43:11 +0000 (14:43 +0200)]
Minor fix to clarify a sentence in emacs-lisp-intro

* doc/lispintro/emacs-lisp-intro.texi (Simple Extension): Add the word
"that" for clarity.  (Bug#43965)

3 years ago; Pacify recent shorthand unused lexarg warnings.
Basil L. Contovounesios [Mon, 11 Oct 2021 10:55:40 +0000 (11:55 +0100)]
; Pacify recent shorthand unused lexarg warnings.

3 years agoMake tty-run-terminal-initialization load the .elc file (if any)
Lars Ingebrigtsen [Mon, 11 Oct 2021 09:22:05 +0000 (11:22 +0200)]
Make tty-run-terminal-initialization load the .elc file (if any)

* lisp/faces.el (tty-run-terminal-initialization):
`locate-library' may have found the .el.gz file (bug#51116).

3 years agoFix ert errors when there's a test that binds `debug-on-error'
Lars Ingebrigtsen [Mon, 11 Oct 2021 09:14:26 +0000 (11:14 +0200)]
Fix ert errors when there's a test that binds `debug-on-error'

* lisp/emacs-lisp/ert.el (ert--run-test-internal): Don't infloop
on errors when signalling errors (bug#51131).

3 years agoNew function num-processors
Paul Eggert [Sun, 10 Oct 2021 20:59:16 +0000 (13:59 -0700)]
New function num-processors

This addresses a FIXME comment in lisp/emacs-lisp/comp.el,
relating to the number of subsidiary processes used by
comp-run-async-workers in native compilation.
* admin/merge-gnulib (GNULIB_MODULES): Add nproc.
* doc/lispref/processes.texi (Process Information), etc/NEWS:
Document num-processors.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/nproc.c, lib/nproc.h, m4/nproc.m4:
New files, copied from Gnulib by admin/merge-gnulib.
* lisp/emacs-lisp/comp.el (w32-get-nproc): Remove decl.
(comp-effective-async-max-jobs): Use num-processors.
* src/process.c: Include nproc.h.
(Fnum_processors): New function.
(syms_of_process): Define ‘all’, ‘current’, ‘num-processors’.
* src/w32proc.c (Fw32_get_nproc): Add FIXME comment.
* test/src/process-tests.el (process-num-processors): New test.

3 years agoAdd symbol property 'save-some-buffers-function' (bug#46374)
Juri Linkov [Sun, 10 Oct 2021 17:38:12 +0000 (20:38 +0300)]
Add symbol property 'save-some-buffers-function' (bug#46374)

* lisp/files.el (save-some-buffers-root): Put non-nil
symbol property 'save-some-buffers-function'.
(save-some-buffers): Check pred for the
symbol property 'save-some-buffers-function'.
(save-some-buffers-default-predicate): Mention
symbol property 'save-some-buffers-function'.

3 years agoKeep reading when typed RET in read-char-from-minibuffer and y-or-n-p
Juri Linkov [Sun, 10 Oct 2021 17:31:15 +0000 (20:31 +0300)]
Keep reading when typed RET in read-char-from-minibuffer and y-or-n-p

* lisp/subr.el (read-char-from-minibuffer-map):
Remap exit-minibuffer to read-char-from-minibuffer-insert-other.
(y-or-n-p-map): Remap 'exit' to y-or-n-p-insert-other.
(y-or-n-p): Don't mention RET in docstring.  (Bug#51101)

3 years ago* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.
David M. Koppelman [Sun, 10 Oct 2021 17:27:29 +0000 (20:27 +0300)]
* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.

(Bug#51101)

3 years agoFix point positioning on mouse clicks with non-zero line-height
Eli Zaretskii [Sun, 10 Oct 2021 14:14:55 +0000 (17:14 +0300)]
Fix point positioning on mouse clicks with non-zero line-height

* src/xdisp.c (move_it_to): After passing a newline, reset
it->override_ascent, like 'display_line' does (in
'append_space_for_newline').  (Bug#51111)

3 years agoComplete shorthands to longhands for symbol-completing tables
João Távora [Wed, 6 Oct 2021 10:30:29 +0000 (11:30 +0100)]
Complete shorthands to longhands for symbol-completing tables

Shorthands aren't symbols, they're text forms that 'read' into
symbols.  As such, shorthands aren't candidates in these tables of
symbols.  But in some situations, if no other candidates match the
pattern, we can e.g. complete "x-foo" to "xavier-foo" if the shorthand

  (("x-" . "xavier-"))

is set up in the buffer of origin.

bug#50959

* lisp/help-fns.el (help--symbol-completion-table): Report
`symbol-help' category.

* lisp/minibuffer.el (completion-styles-alist): New 'shorthand'
style.
(completion-category-defaults): Link 'symbol-help' category with
'shorthand' style.
(minibuffer--original-buffer): New variable.
(completing-read-default): Setup minibuffer--original-buffer.
(completion-shorthand-try-completion)
(completion-shorthand-all-completions): New helpers.

3 years agoAdd new failing test for bug#51089
João Távora [Sun, 10 Oct 2021 11:03:15 +0000 (12:03 +0100)]
Add new failing test for bug#51089

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Add new failing test.

3 years ago; * lisp/emacs-lisp/shortdoc.el: Fix typo.
Stefan Kangas [Sun, 10 Oct 2021 11:52:24 +0000 (13:52 +0200)]
; * lisp/emacs-lisp/shortdoc.el: Fix typo.

3 years agoAvoid mapping file names through 'substring'
Dmitry Gutov [Sun, 10 Oct 2021 01:14:35 +0000 (04:14 +0300)]
Avoid mapping file names through 'substring'

* lisp/progmodes/project.el (project--files-in-directory):
Avoid mapping file names through 'substring'.  Reducing the amount
of garbage generated.  Better perf by up to 20%.
Bump the package version.

3 years agoUpdate to Org 9.5-46-gb71474
Kyle Meyer [Sat, 9 Oct 2021 20:34:12 +0000 (16:34 -0400)]
Update to Org 9.5-46-gb71474

3 years agoExpanded testing of MH-E with multiple MH variants
Stephen Gildea [Sat, 9 Oct 2021 18:36:03 +0000 (11:36 -0700)]
Expanded testing of MH-E with multiple MH variants

* test/lisp/mh-e/mh-utils-tests.el: Environment variable TEST_MH_PATH
controls which installed MH variant to test with.  Moved the commentary
about testing with different MH variants from above 'with-mh-test-env'
definition to "Commentary" section at the top of the file.
* test/lisp/mh-e/test-all-mh-variants.sh: New script to test all
installed MH variants.

3 years agoFix Seccomp filter for newer GNU/Linux systems (Bug#51073).
Philipp Stephani [Sat, 9 Oct 2021 17:39:31 +0000 (19:39 +0200)]
Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).

On some systems, process startup calls prctl(PR_CAPBSET_READ) via
'cap_get_bound'.  We can just return EINVAL.

* lib-src/seccomp-filter.c (main): Add a rule for
prctl(PR_CAPBSET_READ, ...).

3 years agoTramp code cleanup
Michael Albinus [Sat, 9 Oct 2021 16:42:11 +0000 (18:42 +0200)]
Tramp code cleanup

* lisp/net/tramp.el (tramp-remote-path): Adapt docstring.
(tramp-action-login, tramp-action-password, tramp-action-yesno)
(tramp-action-yn, tramp-process-actions): Move let-binding of
`enable-recursive-minibuffers' up.
(tramp-handle-make-process, tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region)
(tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process)
(tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Use `string-or-null-p'.

3 years ago; Fix indentation in etc/NEWS
Michael Albinus [Sat, 9 Oct 2021 14:42:00 +0000 (16:42 +0200)]
; Fix indentation in etc/NEWS

3 years agoFix thinko in ls-lisp--insert-directory
Michael Albinus [Sat, 9 Oct 2021 14:18:53 +0000 (16:18 +0200)]
Fix thinko in ls-lisp--insert-directory

* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.

3 years agoMention that RET means "yes" in y-or-n-p
Lars Ingebrigtsen [Sat, 9 Oct 2021 13:04:11 +0000 (15:04 +0200)]
Mention that RET means "yes" in y-or-n-p

* lisp/subr.el (y-or-n-p): Mention that RET also means yes (bug#51101).

3 years ago; * src/dispextern.h (struct glyph_string): Comment on NCHARS. (Bug#51105)
Eli Zaretskii [Sat, 9 Oct 2021 11:38:06 +0000 (14:38 +0300)]
; * src/dispextern.h (struct glyph_string): Comment on NCHARS.  (Bug#51105)

3 years agoRewrite Antinews for Emacs 28
Eli Zaretskii [Sat, 9 Oct 2021 11:32:28 +0000 (14:32 +0300)]
Rewrite Antinews for Emacs 28

* doc/lispref/anti.texi (Antinews):
* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 28.
* doc/lispref/elisp.texi (Top):
* doc/emacs/emacs.texi (Top): Update menu accordingly.

3 years ago; * etc/NEWS: Rearrange the "incompatible changes" sections.
Eli Zaretskii [Sat, 9 Oct 2021 11:30:31 +0000 (14:30 +0300)]
; * etc/NEWS: Rearrange the "incompatible changes" sections.

3 years ago; * etc/NEWS: Fix a typo.
Eli Zaretskii [Sat, 9 Oct 2021 09:49:38 +0000 (12:49 +0300)]
; * etc/NEWS: Fix a typo.

3 years ago; * src/Makefile.in (../native-lisp): Add comment.
Eli Zaretskii [Sat, 9 Oct 2021 08:23:44 +0000 (11:23 +0300)]
; * src/Makefile.in (../native-lisp): Add comment.

3 years ago* lisp/bindings.el (mode-line-position): Improve tooltip.
Stefan Kangas [Sat, 9 Oct 2021 06:32:25 +0000 (08:32 +0200)]
* lisp/bindings.el (mode-line-position): Improve tooltip.

3 years ago* lisp/progmodes/xref.el: Bump the version.
Dmitry Gutov [Sat, 9 Oct 2021 01:38:11 +0000 (04:38 +0300)]
* lisp/progmodes/xref.el: Bump the version.