]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years ago* lisp/woman.el (woman): Fix comment; don't mention gnudoit.
Stefan Kangas [Thu, 7 Jul 2022 11:21:07 +0000 (13:21 +0200)]
* lisp/woman.el (woman): Fix comment; don't mention gnudoit.

2 years agoMake two XEmacs related variables obsolete
Stefan Kangas [Thu, 7 Jul 2022 11:18:01 +0000 (13:18 +0200)]
Make two XEmacs related variables obsolete

* lisp/net/browse-url.el (browse-url-gnudoit-program)
(browse-url-gnudoit-args): Make obsolete.  The corresponding command
'browse-url-w3-gnudoit' is already obsolete since 25.1.

2 years agoFix GTK build
Po Lu [Thu, 7 Jul 2022 12:16:43 +0000 (20:16 +0800)]
Fix GTK build

* src/xterm.c (x_dnd_begin_drag_and_drop): Update GTK quitting
code for last change too.  Reported by Norbert Koch
<viteno@netic.de>.

2 years agoFix quitting out of selection converters during drag and drop
Po Lu [Thu, 7 Jul 2022 10:36:56 +0000 (18:36 +0800)]
Fix quitting out of selection converters during drag and drop

* src/xterm.c (x_dnd_process_quit): New function.
(x_dnd_begin_drag_and_drop): Use it instead.  Also quit if
quit-flag is true immediately after a selection converter is
run.

2 years agoMark comint modes in net-utils.el as non-interactive
Stefan Kangas [Thu, 7 Jul 2022 10:05:35 +0000 (12:05 +0200)]
Mark comint modes in net-utils.el as non-interactive

* lisp/net/net-utils.el (net-utils-mode, nslookup-mode, ftp-mode)
(smbclient-mode, network-connection-mode): Mark as non-interactive.
(nslookup-mode-map, ftp-mode-map): Prefer defvar-keymap.

2 years agoMake 'run-dig' command obsolete in favor of 'dig'
Stefan Kangas [Thu, 7 Jul 2022 09:11:34 +0000 (11:11 +0200)]
Make 'run-dig' command obsolete in favor of 'dig'

* lisp/net/net-utils.el (run-dig): Redefine in terms of `dig' and make
obsolete.  (Bug#56432).
(dig-program): Delete duplicate defcustom; it is also in dig.el.
(dig-program-options): Move from here...
* lisp/net/dig.el (dig-program-options): ...to here.
(dig-invoke): Respect 'dig-program-options'.
(dig): Prompt for DNS server when given double prefix argument.

2 years agoFix undo of changes in cloned indirect buffers
Eli Zaretskii [Thu, 7 Jul 2022 08:56:31 +0000 (11:56 +0300)]
Fix undo of changes in cloned indirect buffers

* lisp/simple.el (primitive-undo): If the visited-modtime of the
indirect buffer's file is bogus, use the modtime of the file
visited by its base buffer.

* src/undo.c (record_first_change): Call
'buffer_visited_file_modtime' with the correct buffer, instead of
always calling 'Fvisited_file_modtime', which returns possibly
bogus values for indirect buffers.
* src/fileio.c (Fset_visited_file_modtime): Signal a meaningful
error for indirect buffers.
(buffer_visited_file_modtime): New function, with implementation
taken from 'Fvisited_file_modtime'.
(Fvisited_file_modtime): Call 'buffer_visited_file_modtime'.
* src/lisp.h: Add prototype for 'buffer_visited_file_modtime'.
(Bug#56397)

2 years ago* lisp/net/dig.el (dig-exit): Mark for 'dig-mode'.
Stefan Kangas [Thu, 7 Jul 2022 08:38:45 +0000 (10:38 +0200)]
* lisp/net/dig.el (dig-exit): Mark for 'dig-mode'.

2 years agoMake the Indian itrans methods more phonetic
Visuwesh [Wed, 6 Jul 2022 04:33:59 +0000 (10:03 +0530)]
Make the Indian itrans methods more phonetic

The characters ऋ and ॠ are pronunced as ru in languages such as
Marathi, Gujarati, Telugu, etc. so add new translation rules that
reflects this sound.  (bug#56414)

* lisp/language/ind-util.el (indian-itrans-v5-table): Add new
translation rules to make the input method more phonetic.
(indian-tml-base-table, indian-tml-base-digits-table): Fix typo.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Thu, 7 Jul 2022 06:31:49 +0000 (09:31 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoDon't accumulate trailing newlines on every save of .dir-locals.el
Juri Linkov [Thu, 7 Jul 2022 06:31:02 +0000 (09:31 +0300)]
Don't accumulate trailing newlines on every save of .dir-locals.el

* lisp/files-x.el (modify-dir-local-variable): Insert a newline
only after creating a new file.
(dir-locals-to-string): Remove newline to not add more newlines
on every save.

2 years ago; Improve documentation of 'set-transient-map' changes
Eli Zaretskii [Thu, 7 Jul 2022 06:29:51 +0000 (09:29 +0300)]
; Improve documentation of 'set-transient-map' changes

* lisp/subr.el (set-transient-map-timeout, set-transient-map): Doc
fixes.

* etc/NEWS: Improve wording of the 'set-transient-map' entry.

* doc/lispref/keymaps.texi (Controlling Active Maps): Fix wording
and passive tense, and improve indexing.  (Bug#21634)

2 years agoFix `trace-function' default buffer
Po Lu [Thu, 7 Jul 2022 05:37:31 +0000 (13:37 +0800)]
Fix `trace-function' default buffer

* lisp/emacs-lisp/trace.el (trace--read-args): Don't use
format-prompt; instead, use DEF arg to read-buffer.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Thu, 7 Jul 2022 04:30:37 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

f9d01e5047 ; * lisp/emacs-lisp/ert.el: Remove installation instructions.

2 years agognus-advanced-body: Fix return value
Sean Whitton [Thu, 7 Jul 2022 03:34:33 +0000 (20:34 -0700)]
gnus-advanced-body: Fix return value

* gnus-logic.el (gnus-advanced-body): Return whether the search
succeeded, not the value of one of the cleanup forms.

2 years agoFix NS build
Po Lu [Thu, 7 Jul 2022 02:50:49 +0000 (10:50 +0800)]
Fix NS build

* src/keyboard.c (process_special_events): Don't define copy and
moved events on the wrong toolkit.

2 years agoPort `x-lost-selection-functions' to Haiku
Po Lu [Thu, 7 Jul 2022 02:48:19 +0000 (02:48 +0000)]
Port `x-lost-selection-functions' to Haiku

* src/haiku_io.c (haiku_len): Add `CLIPBOARD_CHANGED_EVENT'.
* src/haiku_select.cc (be_update_clipboard_count): Set ownership
flags.
(be_handle_clipboard_changed_message):
(be_start_watching_selection): New functions.

* src/haiku_support.cc (class Emacs): Handle
B_CLIPBOARD_CHANGED.

* src/haiku_support.h (enum haiku_event_type): New event
`CLIPBOARD_CHANGED_EVENT'.
(struct haiku_clipboard_changed_event): New struct.

* src/haikuselect.c (haiku_handle_selection_clear)
(haiku_selection_disowned, haiku_start_watching_selections): New
functions.
(syms_of_haikuselect): New defsym and defvar.

* src/haikuselect.h: Update prototypes.
* src/haikuterm.c (haiku_read_socket): Handle selection events.
(haiku_term_init): Start watching selections.
* src/haikuterm.h: Update prototypes.
* src/keyboard.c (kbd_buffer_get_event, process_special_events)
(mark_kboards): Handle SELECTON_CLEAR_EVENTs correctly on Haiku.

2 years agoAvoid excessive synchronization performing "xterm" drops
Po Lu [Thu, 7 Jul 2022 01:21:22 +0000 (09:21 +0800)]
Avoid excessive synchronization performing "xterm" drops

* src/xterm.c (x_dnd_do_unsupported_drop): Asynchronously catch
errors around XSendEvent.

2 years agoEnd new .dir-locals.el files with a newline
Stefan Kangas [Thu, 7 Jul 2022 00:09:30 +0000 (02:09 +0200)]
End new .dir-locals.el files with a newline

* lisp/files-x.el (dir-locals-to-string): Add newline at the end of
newly created .dir-locals.el files.  This avoids git complaining about
"No newline at end of file".

2 years agoAutoload safe local property for plstore-encrypt-to
Stefan Kangas [Wed, 6 Jul 2022 18:53:52 +0000 (20:53 +0200)]
Autoload safe local property for plstore-encrypt-to

* lisp/plstore.el (plstore-encrypt-to): Autoload 'safe-local-variable'
property for improved security.

2 years agoPrefer defcustom :safe to putting 'safe-local-variable'
Stefan Kangas [Wed, 6 Jul 2022 17:56:32 +0000 (19:56 +0200)]
Prefer defcustom :safe to putting 'safe-local-variable'

* lisp/emacs-lisp/lisp-mode.el (lisp-indent-offset)
(lisp-body-indent, emacs-lisp-docstring-fill-column):
* lisp/files.el (version-control):
* lisp/progmodes/modula2.el (m2-indent):
* lisp/progmodes/octave.el (octave-block-offset):
* lisp/progmodes/sh-script.el (sh-basic-offset):
* lisp/progmodes/tcl.el (tcl-indent-level)
(tcl-continued-indent-level):
* lisp/simple.el (fill-prefix):
* lisp/textmodes/fill.el (colon-double-space):
* lisp/textmodes/paragraphs.el (paragraph-start)
(paragraph-separate, sentence-end-double-space)
(sentence-end-without-period, sentence-end-without-space)
(sentence-end, sentence-end-base, page-delimiter)
(paragraph-ignore-fill-prefix):
* lisp/textmodes/tex-mode.el (tex-fontify-script):
* lisp/vc/add-log.el (add-log-dont-create-changelog-file):
* lisp/vc/vc-hooks.el (vc-follow-symlinks): Prefer defcustom :safe to
putting 'safe-local-variable'.

2 years ago* lisp/repeat.el (describe-repeat-maps): Handle non-symbol keymap (bug#21634).
Juri Linkov [Wed, 6 Jul 2022 17:40:48 +0000 (20:40 +0300)]
* lisp/repeat.el (describe-repeat-maps): Handle non-symbol keymap (bug#21634).

2 years agoAdd new args MESSAGE and TIMEOUT to set-transient-map (bug#21634)
Juri Linkov [Wed, 6 Jul 2022 17:39:41 +0000 (20:39 +0300)]
Add new args MESSAGE and TIMEOUT to set-transient-map (bug#21634)

* lisp/subr.el (set-transient-map): Add new args MESSAGE and TIMEOUT.
(set-transient-map-timeout, set-transient-map-timer): New variables.

* lisp/international/emoji.el (emoji-zoom-increase):
* lisp/indent.el (indent-rigidly):
* lisp/face-remap.el (text-scale-adjust, global-text-scale-adjust):
Use the arg MESSAGE of set-transient-map.

* doc/lispref/keymaps.texi (Controlling Active Maps): Mention new args
MESSAGE and TIMEOUT of set-transient-map.

2 years agoMake some additional defcustom types more restrictive
Stefan Kangas [Wed, 6 Jul 2022 17:29:51 +0000 (19:29 +0200)]
Make some additional defcustom types more restrictive

* lisp/desktop.el (desktop-lazy-idle-delay):
* lisp/files.el (dired-kept-versions)
(kept-old-versions, kept-new-versions):
* lisp/filesets.el (filesets-max-submenu-length)
(filesets-max-entry-length, filesets-tree-max-level)
(filesets-query-user-limit):
* lisp/hi-lock.el (hi-lock-file-patterns-range)
(hi-lock-highlight-range):
* lisp/ido.el (ido-max-work-directory-list):
* lisp/image/gravatar.el (gravatar-cache-ttl):
* lisp/imenu.el (imenu-auto-rescan-maxout, imenu-max-items):
* lisp/informat.el (Info-split-threshold):
* lisp/mail/hashcash.el (hashcash-default-payment)
(hashcash-default-accept-payment):
* lisp/mail/mail-hist.el (mail-hist-history-size):
* lisp/mail/smtpmail.el (smtpmail-retries):
* lisp/msb.el (msb-display-most-recently-used):
* lisp/nxml/rng-valid.el (rng-state-cache-distance)
(rng-validate-chunk-size):
* lisp/progmodes/gdb-mi.el (gdb-max-source-window-count):
* lisp/recentf.el (recentf-arrange-by-rules-min-items):
* lisp/simple.el (kill-ring-max, mark-ring-max)
(global-mark-ring-max):
* lisp/tab-line.el (tab-line-tab-name-truncated-max):
* lisp/term.el (term-buffer-maximum-size, term-input-chunk-size):
* lisp/thumbs.el (thumbs-max-image-number)
(thumbs-thumbsdir-max-size, thumbs-relief, thumbs-margin)
(thumbs-image-resizing-step):
* lisp/type-break.el (type-break-interval)
(type-break-good-rest-interval, type-break-query-interval)
(type-break-warning-repeat):
* lisp/vc/compare-w.el (compare-windows-sync-string-size):
* lisp/woman.el (woman-fill-column): Use defcustom :type natnum.

* lisp/emacs-lisp/backtrace.el (backtrace-line-length):
* lisp/doc-view.el (doc-view-conversion-refresh-interval):
Use defcustom :type natnum and allow the nil value.

* lisp/gnus/spam-stat.el (spam-stat-process-directory-age):
Use defcustom :type integer.

2 years agoFix missing :value with defcustom const :type
Stefan Kangas [Wed, 6 Jul 2022 13:25:56 +0000 (15:25 +0200)]
Fix missing :value with defcustom const :type

* lisp/calendar/calendar.el (calendar-intermonth-header)
(calendar-intermonth-text, calendar-date-style):
* lisp/calendar/diary-lib.el (diary-face-attrs):
* lisp/emacs-lisp/package.el (package-check-signature):
* lisp/erc/erc-dcc.el (erc-dcc-get-default-directory):
* lisp/gnus/gnus-art.el (gnus-auto-select-part):
* lisp/gnus/gnus-cus.el (gnus-agent-parameters):
* lisp/gnus/gnus.el (gnus-user-agent):
* lisp/mail/rmail.el (rmail-retry-ignored-headers):
* lisp/progmodes/sh-script.el (sh-indent-after-continuation):
Fix missing :value with defcustom const :type.

2 years agoFix infinite looping around Haiku menus
Po Lu [Wed, 6 Jul 2022 12:23:19 +0000 (12:23 +0000)]
Fix infinite looping around Haiku menus

* src/haikumenu.c (haiku_menu_show): Block SIGIO around menu
event loop.
* src/haikuterm.c (haiku_read_socket): Flush tooltip frames
after resize.

2 years agoSend region to the subshell specified by the current file interpreter
Davide Masserut [Wed, 6 Jul 2022 11:45:40 +0000 (13:45 +0200)]
Send region to the subshell specified by the current file interpreter

* sh-script.el (sh-execute-region): Send region to the subshell
specified by the current file interpreter (bug#56406).

2 years agoRemove soft newlines in longlines-mode
Manuel Giraud [Wed, 6 Jul 2022 11:18:09 +0000 (13:18 +0200)]
Remove soft newlines in longlines-mode

* lisp/longlines.el (longlines-mode, longlines-encode-string): Update
from `buffer-substring-filters' to `filter-buffer-substring-function'.
Remove soft newlines in substring (bug#56335).

2 years ago; * lisp/emacs-lisp/ert.el: Remove installation instructions.
Stefan Kangas [Wed, 6 Jul 2022 10:31:01 +0000 (12:31 +0200)]
; * lisp/emacs-lisp/ert.el: Remove installation instructions.

(cherry picked from commit ef218ac936c3ffe219b57e37e684fd8400389c38)

2 years ago; * lisp/emacs-lisp/ert.el: Remove installation instructions.
Stefan Kangas [Wed, 6 Jul 2022 10:31:01 +0000 (12:31 +0200)]
; * lisp/emacs-lisp/ert.el: Remove installation instructions.

2 years ago* lisp/erc/erc-track.el (erc-track-minor-mode-map): Doc fix.
F. Jason Park [Tue, 5 Jul 2022 10:46:00 +0000 (03:46 -0700)]
* lisp/erc/erc-track.el (erc-track-minor-mode-map): Doc fix.

2 years agoUse compatibility macro for ISUPPORT caching in ERC
dickmao [Fri, 1 Jul 2022 15:06:51 +0000 (11:06 -0400)]
Use compatibility macro for ISUPPORT caching in ERC

* lisp/erc/erc-backend.el (erc--with-memoization): Defalias was a
kung-fu I've never seen before. (Bug#56340)

2 years agoStop synchronizing after sending XEmbed events
Po Lu [Wed, 6 Jul 2022 08:31:54 +0000 (16:31 +0800)]
Stop synchronizing after sending XEmbed events

* src/xterm.c (xembed_send_message): Don't sync and handle
errors, which is actually why the XSync call in the spec exists.

2 years agoFix 'fit-frame-to-buffer' (Bug#56102)
Martin Rudalics [Wed, 6 Jul 2022 07:25:43 +0000 (09:25 +0200)]
Fix 'fit-frame-to-buffer' (Bug#56102)

* lisp/window.el (fit-frame-to-buffer-sizes): Fix doc-string.
Give calls to 'max' a second argument so they do something
useful.  If ONLY equals 'vertically', call
'window-text-pixel-size' with X-LIMIT nil (Bug#56102).  For
minimum sizes of the window to fit, use 'window-safe-min-size' by
default.
* doc/lispref/windows.texi (Resizing Windows): Fix descriptions of
'fit-frame-to-buffer' and 'fit-frame-to-buffer-sizes'.

2 years agoFix the MS-DOS build
Po Lu [Wed, 6 Jul 2022 06:09:51 +0000 (14:09 +0800)]
Fix the MS-DOS build

* msdos/sedlibmk.inp: Define GL_GNULIB_RAWMEMCHR.
* src/process.c (Fsignal_names): Disable on MS-DOS and use
SIGNUM_BOUND, which is always provided by gnulib.

2 years agoSpeed up interning XDS atoms
Po Lu [Wed, 6 Jul 2022 05:43:24 +0000 (13:43 +0800)]
Speed up interning XDS atoms

* src/xselect.c (symbol_to_x_atom, x_atom_to_symbol)
(syms_of_xselect): Handle new atoms.
* src/xterm.c (x_atom_refs):
* src/xterm.h (struct x_display_info): New atoms
`XdndDirectSave0', `XdndActionDirectSave' and `text/plain'.

2 years agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Wed, 6 Jul 2022 04:57:32 +0000 (23:57 -0500)]
Update from Gnulib by running admin/merge-gnulib

* admin/merge-gnulib (AVOIDED_MODULES): Add chmod.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 6 Jul 2022 04:30:39 +0000 (06:30 +0200)]
Merge from origin/emacs-28

6b5d829d9d Add index entry for "ignore case"
29e1459965 ; * lisp/files.el (remote-file-name-inhibit-cache): Minor ...

2 years agoAdjust better to Autoconf quoting style change
Paul Eggert [Wed, 6 Jul 2022 04:25:44 +0000 (23:25 -0500)]
Adjust better to Autoconf quoting style change

* admin/gitmerge.el (gitmerge-emacs-version):
* admin/nt/dist-build/build-zips.sh (ACTUAL_VERSION):
* admin/quick-install-emacs (VERSION):
* lisp/cedet/ede/emacs.el (ede-emacs-version):
Adjust to change in configure.ac’s Autoconf quoting style.
* etc/srecode/ede-autoconf.srt:
* test/lisp/progmodes/autoconf-tests.el:
(autoconf-tests-current-defun-function-define)
(autoconf-tests-current-defun-function-subst):
Use better Autoconf quoting.
* make-dist (version): Simplify.

2 years agoReduce duplicate code cleaning up DND processes
Po Lu [Wed, 6 Jul 2022 02:42:12 +0000 (10:42 +0800)]
Reduce duplicate code cleaning up DND processes

* src/xterm.c (x_restore_events_after_dnd): New function.
(x_dnd_cleanup_drag_and_drop, x_dnd_begin_drag_and_drop): Use
that instead of manually cleaning up properties and events.

2 years agoDon't select for unnecessary properties during DND
Po Lu [Wed, 6 Jul 2022 01:01:02 +0000 (09:01 +0800)]
Don't select for unnecessary properties during DND

* src/xterm.c (x_dnd_begin_drag_and_drop): Don't select for
property changes when not using toplevels.

2 years agoFix announcements of XDND mouse rectangles
Po Lu [Tue, 5 Jul 2022 13:56:50 +0000 (21:56 +0800)]
Fix announcements of XDND mouse rectangles

* lisp/x-dnd.el (x-dnd-handle-xdnd): Use correct meaning of "2",
which isn't well documented.
* src/xterm.c (handle_one_xevent): Likewise.  Also fix unpacking
of mouse rects.

2 years ago* make-dist: Fix after recent configure.ac quoting changes.
Glenn Morris [Tue, 5 Jul 2022 21:50:17 +0000 (14:50 -0700)]
* make-dist: Fix after recent configure.ac quoting changes.

2 years agoFix custom-initialize-reset bootstrap error
Lars Ingebrigtsen [Tue, 5 Jul 2022 20:42:25 +0000 (22:42 +0200)]
Fix custom-initialize-reset bootstrap error

* lisp/custom.el (custom-initialize-reset): Fix bootstrap problem
by avoiding when-let.

2 years agoFix rcirc buffer name collisions
Lars Ingebrigtsen [Tue, 5 Jul 2022 19:06:36 +0000 (21:06 +0200)]
Fix rcirc buffer name collisions

* lisp/net/rcirc.el (rcirc-handler-NICK): Avoid naming collisions
when renaming buffers (bug#45872).

2 years agoMention remote-file-name-inhibit-auto-save-visited in Tramp manual
Michael Albinus [Tue, 5 Jul 2022 19:19:51 +0000 (21:19 +0200)]
Mention remote-file-name-inhibit-auto-save-visited in Tramp manual

* doc/misc/tramp.texi (Auto-save File Lock and Backup):
Explain remote-file-name-inhibit-auto-save-visited.

2 years agoAdd index entry for "ignore case"
Stefan Kangas [Tue, 5 Jul 2022 17:57:34 +0000 (19:57 +0200)]
Add index entry for "ignore case"

* doc/emacs/glossary.texi (Glossary): Add index entry for "ignore
case" pointing to "Case Folding".

2 years agoRename new option to remote-file-name-inhibit-auto-save-visited
Stefan Kangas [Tue, 5 Jul 2022 17:37:55 +0000 (19:37 +0200)]
Rename new option to remote-file-name-inhibit-auto-save-visited

* lisp/files.el (remote-file-name-inhibit-auto-save-visited):
Rename from 'auto-save-visited-remote-files' and invert logic.
(auto-save-visited-mode): Adjust accordingly.  (Bug#41333)
Suggested by Michael Albinus <michael.albinus@gmx.de>.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Tue, 5 Jul 2022 17:37:52 +0000 (19:37 +0200)]
Regenerate ldefs-boot.el

2 years agoGive a warning if setopt has been used with an invalid value
Lars Ingebrigtsen [Tue, 5 Jul 2022 17:32:37 +0000 (19:32 +0200)]
Give a warning if setopt has been used with an invalid value

* lisp/cus-edit.el (setopt--set): Mark the variable for checking.

* lisp/custom.el (custom-initialize-reset): Give a warning if the
type is wrong (bug#56400).

* lisp/wid-edit.el (widget-convert): Autoload.

2 years ago; * lisp/files.el (remote-file-name-inhibit-cache): Minor doc fix.
Stefan Kangas [Tue, 5 Jul 2022 17:32:15 +0000 (19:32 +0200)]
; * lisp/files.el (remote-file-name-inhibit-cache): Minor doc fix.

2 years ago; * lisp/emacs-lisp/subr-x.el (string-limit): Clarify doc string.
Eli Zaretskii [Tue, 5 Jul 2022 16:45:35 +0000 (19:45 +0300)]
; * lisp/emacs-lisp/subr-x.el (string-limit): Clarify doc string.

2 years ago; * etc/NEWS: Clarify entry.
Stefan Kangas [Tue, 5 Jul 2022 15:54:43 +0000 (17:54 +0200)]
; * etc/NEWS: Clarify entry.

2 years agoRe-fix narrowing problem in tramp-debug-buffer-command-completion-p
Stefan Kangas [Tue, 5 Jul 2022 15:53:06 +0000 (17:53 +0200)]
Re-fix narrowing problem in tramp-debug-buffer-command-completion-p

* lisp/net/tramp.el (tramp-debug-buffer-command-completion-p):
Respect narrowing also for end of substring.  (Bug#56225)

2 years agoMake some defcustom types more restrictive
Stefan Kangas [Tue, 5 Jul 2022 14:26:45 +0000 (16:26 +0200)]
Make some defcustom types more restrictive

* lisp/abbrev.el (abbrev-suggest-hint-threshold):
* lisp/bookmark.el (bookmark-bmenu-file-column)
(bookmark-menu-length):
* lisp/buff-menu.el (Buffer-menu-size-width)
(Buffer-menu-mode-width):
* lisp/calendar/calendar.el (calendar-week-start-day)
(calendar-intermonth-spacing, calendar-column-width)
(calendar-day-digit-width):
* lisp/calc/calc.el (calc-undo-length):
* lisp/calendar/timeclock.el (timeclock-workday):
* lisp/comint.el (comint-buffer-maximum-size)
(comint-input-ring-size):
* lisp/doc-view.el (doc-view-resolution, doc-view-image-width):
* lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-max-column):
* lisp/emacs-lisp/comp.el (native-comp-debug)
(native-comp-verbose, native-comp-async-jobs-number):
* lisp/emacs-lisp/package.el (package-name-column-width)
(package-version-column-width, package-status-column-width)
(package-archive-column-width):
* lisp/eshell/esh-mode.el (eshell-buffer-maximum-lines):
* lisp/frame.el (blink-cursor-blinks):
* lisp/info.el (Info-breadcrumbs-depth):
* lisp/jit-lock.el (jit-lock-chunk-size):
* lisp/kmacro.el (kmacro-ring-max):
* lisp/menu-bar.el (yank-menu-length, yank-menu-max-items):
* lisp/midnight.el (clean-buffer-list-delay-general)
(clean-buffer-list-delay-special):
* lisp/net/dictionary.el (dictionary-port)
(dictionary-proxy-port):
* lisp/net/ldap.el (ldap-default-port):
* lisp/net/pop3.el (pop3-port, pop3-stream-length):
* lisp/net/rcirc.el (rcirc-default-port):
* lisp/net/sieve-manage.el (sieve-manage-default-port):
* lisp/play/spook.el (spook-phrase-default-count):
* lisp/play/tetris.el (tetris-buffer-width)
(tetris-buffer-height, tetris-width, tetris-height)
(tetris-top-left-x, tetris-top-left-y):
* lisp/profiler.el (profiler-sampling-interval):
* lisp/progmodes/sql.el (sql-port):
* lisp/recentf.el (recentf-max-menu-items):
* lisp/strokes.el (strokes-grid-resolution):
* lisp/tab-bar.el (tab-bar-tab-name-truncated-max):
* lisp/term/xterm.el (xterm-max-cut-length):
* lisp/time.el (display-time-interval, world-clock-timer-second):
* lisp/url/url-cache.el (url-cache-expire-time):
* lisp/url/url-cookie.el (url-cookie-save-interval):
* lisp/url/url-history.el (url-history-save-interval):
* lisp/url/url-queue.el (url-queue-parallel-processes)
(url-queue-timeout):
* lisp/url/url-vars.el (url-max-password-attempts)
(url-max-redirections):
* lisp/vc/emerge.el (emerge-min-visible-lines):
* lisp/vc/vc.el (vc-log-show-limit):
* lisp/window.el (window-min-height, window-min-width):
* lisp/winner.el (winner-ring-size): Use :type natnum.

* lisp/savehist.el (savehist-file-modes): Fix setting to nil value and
use :type natnum.

2 years agoDon't hard-code `M-c' in `read-regexp'
Lars Ingebrigtsen [Tue, 5 Jul 2022 16:26:52 +0000 (18:26 +0200)]
Don't hard-code `M-c' in `read-regexp'

* lisp/replace.el (read-regexp-map): New map.
(read-regexp--case-fold, read-regexp-toggle-case-folding)
(read-regexp): Factor out to avoid hard-coding `M-c'.

2 years agoDocumnt left/right mwheel events
Lars Ingebrigtsen [Tue, 5 Jul 2022 11:44:45 +0000 (13:44 +0200)]
Documnt left/right mwheel events

* doc/lispref/commands.texi (Misc Events): Document left/right
mwheel events (bug#41722).

2 years agoMention byte order marks in string-limit doc string
Lars Ingebrigtsen [Tue, 5 Jul 2022 11:07:56 +0000 (13:07 +0200)]
Mention byte order marks in string-limit doc string

* lisp/emacs-lisp/subr-x.el (string-limit): Mention byte order
marks (bug#48324).

2 years ago; * lisp/files.el (auto-save-visited-predicate): Doc fix.
Eli Zaretskii [Tue, 5 Jul 2022 13:12:13 +0000 (16:12 +0300)]
; * lisp/files.el (auto-save-visited-predicate): Doc fix.

2 years ago; Fix documentation of 'auto-save-visited-remote-files'
Eli Zaretskii [Tue, 5 Jul 2022 13:07:03 +0000 (16:07 +0300)]
; Fix documentation of 'auto-save-visited-remote-files'

* etc/NEWS:
* lisp/files.el (auto-save-visited-remote-files): Doc fix.

2 years agoNew user option auto-save-visited-remote-files
Stefan Kangas [Tue, 5 Jul 2022 12:16:08 +0000 (14:16 +0200)]
New user option auto-save-visited-remote-files

* lisp/files.el (auto-save-visited-remote-files): New user option.
(auto-save-visited-mode): Use above new variable to decide whether
or not to save remote files.  (Bug#41333)

2 years agoNew user option auto-save-visited-mode-predicate
Stefan Kangas [Tue, 5 Jul 2022 11:34:24 +0000 (13:34 +0200)]
New user option auto-save-visited-mode-predicate

* lisp/files.el (auto-save-visited-mode-predicate): New defcustom.
(auto-save-visited-mode): Use above new variable as a predicate to
decide whether or not to save a buffer.

2 years agoShorten name of recently added command to emacs-news-open-line
Stefan Kangas [Tue, 5 Jul 2022 11:37:32 +0000 (13:37 +0200)]
Shorten name of recently added command to emacs-news-open-line

* lisp/textmodes/emacs-news-mode.el (emacs-news-open-line): Rename
from 'emacs-news-mode-open-line'.

2 years agoFix manually disowning Emacs drag atoms
Po Lu [Tue, 5 Jul 2022 11:17:03 +0000 (19:17 +0800)]
Fix manually disowning Emacs drag atoms

* src/xterm.c (handle_one_xevent): Disown Motif drag atom if
eventp->time is CurrentTime as well.  This can happen with some
synthetic events.

2 years agoRemove the interactive prefix from emoji-insert
Lars Ingebrigtsen [Tue, 5 Jul 2022 11:03:36 +0000 (13:03 +0200)]
Remove the interactive prefix from emoji-insert

* lisp/international/emoji.el (emoji-insert): Remove the prefix
action from this command, since the same is already available on
`C-x 8 e s', and we're considering using the prefix to copy to the
kill ring.

2 years agoAllow immediately saving XDS drops
Po Lu [Tue, 5 Jul 2022 06:55:24 +0000 (14:55 +0800)]
Allow immediately saving XDS drops

This fixes things with programs that have a very timeout, such
as Chromium, within which it isn't practical for the user to
confirm the default file name.

* lisp/x-dnd.el (x-dnd-direct-save-function): Add new choices to
defcustom.
(x-dnd-init-frame): Use fast protocol requests.
(x-dnd-save-direct-immediately): New function.
(x-dnd-handle-xds-drop): Fix nil values of selected file name.

2 years agoQuote configure.ac arguments more consistently
Paul Eggert [Tue, 5 Jul 2022 04:12:45 +0000 (23:12 -0500)]
Quote configure.ac arguments more consistently

This should help avoid further Autoconf portability gotchas such as
the one recently fixed in 2022-06-27T04:26:01Z!meyering@fb.com.
* autogen.sh (autoconf_min): Adjust pattern to match
updated configure.ac.
* configure.ac: Quote arguments more consistently,
as per the Autoconf manual.

2 years agoDon’t mishandle preset emacs_cv_lesstif
Paul Eggert [Tue, 5 Jul 2022 04:23:59 +0000 (23:23 -0500)]
Don’t mishandle preset emacs_cv_lesstif

* configure.ac: Restore CFLAGS etc. correctly even when
emacs_cv_lesstif is already set on the command line.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 5 Jul 2022 04:30:40 +0000 (06:30 +0200)]
Merge from origin/emacs-28

d5e1424174 Expand docstrings related to auto-saving

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Tue, 5 Jul 2022 04:30:40 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commits were skipped:

28c5c27162 Don't bug out in manual-html-fix-index-2 on newer makeinfo...
724f712ef1 Preserve <title> in the Emacs manuals

2 years agoDon't take XCB socket every time we want the no of the next request
Po Lu [Tue, 5 Jul 2022 03:03:11 +0000 (11:03 +0800)]
Don't take XCB socket every time we want the no of the next request

* src/xterm.c (x_ignore_errors_for_next_request, x_uncatch_errors)
(x_check_errors, x_had_errors_p): Don't call XNextRequest
redundantly.  Use NextRequest if it was immediately preceded by
XNextRequest, which updates dpy->request.

2 years agoNew command emacs-news-mode-open-line
Stefan Kangas [Tue, 5 Jul 2022 02:57:51 +0000 (04:57 +0200)]
New command emacs-news-mode-open-line

* lisp/textmodes/emacs-news-mode.el
(emacs-news-mode-open-line): New command.
(emacs-news-mode-map): Remap 'open-line' to above new command.

2 years agoImprove support for remote files in XDS
Po Lu [Tue, 5 Jul 2022 02:40:32 +0000 (10:40 +0800)]
Improve support for remote files in XDS

* lisp/x-dnd.el (x-dnd-direct-save-function): Remove "local file
name" from documentation.
(x-dnd-save-direct): Handle remote file names normally.
(x-dnd-handle-xds-drop): Handle remote file names in URI.

2 years agoDon't overestimate supported input extension version on GTK 3
Po Lu [Tue, 5 Jul 2022 02:12:19 +0000 (10:12 +0800)]
Don't overestimate supported input extension version on GTK 3

* src/xterm.c (x_term_init): If minor > original_minor (the
maximum version supported by libXi), set it back to
original_minor.

2 years agoAdd reverse mapping for EUDC attribute names
Alexander Adolf [Sat, 2 Jul 2022 15:27:55 +0000 (17:27 +0200)]
Add reverse mapping for EUDC attribute names

* lisp/net/eudc.el (eudc-translate-query): new optional parameter to
reverse the mapping direction
(eudc-translate-attribute-list): new optional parameter to
reverse the mapping direction

2 years ago(gnus-inverse-list-range-intersection): Update alias
Stefan Monnier [Mon, 4 Jul 2022 22:44:03 +0000 (18:44 -0400)]
(gnus-inverse-list-range-intersection): Update alias

* lisp/gnus/gnus-range.el (gnus-inverse-list-range-intersection):
Don't alias to an obsolete alias.

2 years agoExpand docstrings related to auto-saving
Stefan Kangas [Mon, 4 Jul 2022 21:54:07 +0000 (23:54 +0200)]
Expand docstrings related to auto-saving

* lisp/files.el (auto-save-visited-mode):
* lisp/simple.el (auto-save-mode): Expand docstring.

2 years agoFix core dump with x-get-local-selection
Paul Eggert [Mon, 4 Jul 2022 21:21:35 +0000 (16:21 -0500)]
Fix core dump with x-get-local-selection

* src/xselect.c (Fx_get_local_selection): Check that VALUE has 4
elements, since x_get_local_selection can dump core otherwise.
This pacifies gcc -Wanalyzer-null-dereference, which found the
problem.

2 years agoAdd quit-window entry to list-timers menu
Stefan Kangas [Mon, 4 Jul 2022 16:44:24 +0000 (18:44 +0200)]
Add quit-window entry to list-timers menu

* lisp/emacs-lisp/timer-list.el (timer-list-mode-map): Add
quit-window entry to menu.

2 years agoPrefer defvar-keymap in emacs-lisp/*.el
Stefan Kangas [Mon, 4 Jul 2022 16:42:26 +0000 (18:42 +0200)]
Prefer defvar-keymap in emacs-lisp/*.el

* lisp/emacs-lisp/backtrace.el (backtrace-mode-map):
* lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map):
* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode-map):
* lisp/emacs-lisp/crm.el (crm-local-completion-map)
(crm-local-must-match-map):
* lisp/emacs-lisp/debug.el (debugger-mode-map):
* lisp/emacs-lisp/edebug.el (edebug-mode-map, edebug-global-map)
(edebug-eval-mode-map):
* lisp/emacs-lisp/eieio-custom.el (eieio-custom-mode-map):
* lisp/emacs-lisp/elp.el (elp-results-symname-map):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map):
* lisp/emacs-lisp/re-builder.el (reb-mode-map)
(reb-lisp-mode-map, reb-subexp-mode-map):
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map)
(tabulated-list-sort-button-map):
* lisp/emacs-lisp/timer-list.el (timer-list-mode-map):

2 years agoDocument using make-composed-keymap with defvar-keymap
Stefan Kangas [Mon, 4 Jul 2022 16:19:20 +0000 (18:19 +0200)]
Document using make-composed-keymap with defvar-keymap

* doc/lispref/keymaps.texi (Inheritance and Keymaps): Document
using 'make-composed-keymap' with 'defvar-keymap'.

* lisp/help-mode.el (help-mode-map): Use defvar-keymap to make this
code match the above documentation change.

2 years ago; Fix warning in mwheel.el
Stefan Kangas [Mon, 4 Jul 2022 14:58:53 +0000 (16:58 +0200)]
; Fix warning in mwheel.el

* lisp/mwheel.el (global-text-scale-adjust): Declare function.

2 years agoDoc fix; quote keys in face-remap.el
Stefan Kangas [Mon, 4 Jul 2022 14:54:38 +0000 (16:54 +0200)]
Doc fix; quote keys in face-remap.el

* lisp/face-remap.el (text-scale-adjust, global-text-scale-adjust):
Doc fix; quote keys.

2 years agoInherit instead of copying keymap in bookmark.el
Stefan Kangas [Mon, 4 Jul 2022 14:18:54 +0000 (16:18 +0200)]
Inherit instead of copying keymap in bookmark.el

* lisp/bookmark.el (bookmark-rename): Inherit instead of copying
keymap.

2 years ago* src/keymap.c (Fcopy_keymap): Document using defvar-keymap.
Stefan Kangas [Mon, 4 Jul 2022 14:02:26 +0000 (16:02 +0200)]
* src/keymap.c (Fcopy_keymap): Document using defvar-keymap.

2 years ago; remove regexp ambiguity
Mattias Engdegård [Mon, 4 Jul 2022 13:54:14 +0000 (15:54 +0200)]
; remove regexp ambiguity

2 years agoUse substitute-command-keys in Helper-help
Stefan Kangas [Mon, 4 Jul 2022 13:45:18 +0000 (15:45 +0200)]
Use substitute-command-keys in Helper-help

* lisp/emacs-lisp/helper.el (Helper-help-scroller)
(Helper-help-options, Helper-help): Use substitute-command-keys.
(Helper-help-map): Prefer defvar-keymap.

2 years agoAvoid code duplication converting XI event state in toolkit menu code
Po Lu [Mon, 4 Jul 2022 13:03:02 +0000 (21:03 +0800)]
Avoid code duplication converting XI event state in toolkit menu code

* src/xmenu.c (x_menu_translate_generic_event):
(popup_get_selection): Use `xi_convert_event_state' instead.
* src/xterm.c (xi_convert_event_state): Export on non-GTK
builds.
* src/xterm.h: Update prototypes.

2 years agoFix scrolling backwards in Helper-help
Stefan Kangas [Mon, 4 Jul 2022 13:06:52 +0000 (15:06 +0200)]
Fix scrolling backwards in Helper-help

* lisp/emacs-lisp/helper.el (Helper-help-scroller): Fix scrolling
backwards.

2 years agoRemove some useless `eval-when-compile`
Mattias Engdegård [Mon, 4 Jul 2022 12:52:50 +0000 (14:52 +0200)]
Remove some useless `eval-when-compile`

* lisp/cedet/semantic/java.el (semantic-java-number-regexp):
* lisp/cedet/semantic/lex.el (semantic-lex-number-expression):
* lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function-1):
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression)
(lisp--el-match-keyword, lisp-string-in-doc-position-p):
* lisp/emacs-lisp/shorthands.el (shorthands-font-lock-shorthands):
* lisp/net/socks.el (socks-send-command):
* lisp/progmodes/meta-mode.el (meta-font-lock-keywords):
* lisp/shell.el (shell--parse-pcomplete-arguments):
* lisp/textmodes/sgml-mode.el (sgml-mode):
* lisp/textmodes/tex-mode.el (tex--guess-mode)
(tex-common-initialization, tex-input-files-re):
* lisp/textmodes/tildify.el (tildify-mode):
* lisp/xdg.el (xdg-line-regexp):
Eliminate `eval-when-compile` when the argument would be evaluated by
the compiler anyway.

2 years agoReplace lisp-mode-symbol-regexp with (rx lisp-mode-symbol)
Mattias Engdegård [Mon, 4 Jul 2022 12:12:24 +0000 (14:12 +0200)]
Replace lisp-mode-symbol-regexp with (rx lisp-mode-symbol)

This is shorter, simplifies use inside rx expressions, and removes
need for eval-when-compile elsewhere (for later exploitation).

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-symbol): New rx-define.
(lisp-mode-symbol-regexp): Redefine using lisp-mode-symbol.
(lisp-imenu-generic-expression, lisp--el-match-keyword)
(lisp-fdefs, lisp-string-in-doc-position-p):
* lisp/emacs-lisp/checkdoc.el (checkdoc--error-bad-format-p):
* lisp/emacs-lisp/shorthands.el (shorthands-font-lock-shorthands):
Use lisp-mode-symbol instead of lisp-mode-symbol-regexp.

2 years ago* lisp/progmodes/ebrowse.el (ebrowse-tree-mode): Fix typo.
Stefan Kangas [Mon, 4 Jul 2022 12:53:16 +0000 (14:53 +0200)]
* lisp/progmodes/ebrowse.el (ebrowse-tree-mode): Fix typo.

2 years agoRemove remaining Helper-help support from view-mode
Stefan Kangas [Mon, 4 Jul 2022 12:10:04 +0000 (14:10 +0200)]
Remove remaining Helper-help support from view-mode

* lisp/view.el (view-old-Helper-return-blurb): Make obsolete.
(view--enable, view--disable): Delete remaining Helper-help support
code; view-mode stopped using it in 1995.

2 years ago; Fix doc strings in help-fns.el
Eli Zaretskii [Mon, 4 Jul 2022 12:13:12 +0000 (15:13 +0300)]
; Fix doc strings in help-fns.el

* lisp/help-fns.el (help-fns-edit-mode-done)
(help-fns-edit-mode-cancel): Doc fixes.

2 years agoDon't bug out in manual-html-fix-index-2 on newer makeinfo versions
Lars Ingebrigtsen [Mon, 4 Jul 2022 10:37:17 +0000 (12:37 +0200)]
Don't bug out in manual-html-fix-index-2 on newer makeinfo versions

Backport from master.

* admin/admin.el (manual-html-fix-index-2): Don't bug out if the
makeinfo version doesn't include <ul>.

(cherry picked from commit e0e3f2b672bc42da52ac9c7596c7560a88684651)

2 years agoPreserve <title> in the Emacs manuals
Lars Ingebrigtsen [Mon, 4 Jul 2022 10:47:16 +0000 (12:47 +0200)]
Preserve <title> in the Emacs manuals

Backport from master.

* admin/admin.el (manual-html-fix-headers): Preserve the <title>
element (bug#48334).

(cherry picked from commit b778e71af7ca8c59917334b4bb1b34cdb52faca9)

2 years ago; Fix documentation of 'file-parent-directory'
Eli Zaretskii [Mon, 4 Jul 2022 11:59:58 +0000 (14:59 +0300)]
; Fix documentation of 'file-parent-directory'

* doc/lispref/files.texi (Directory Names):
* lisp/files.el (file-parent-directory): Improve wording of the
documentation of 'file-parent-directory'.  (Bug#56355)

2 years agoAdd file-parent-directory function
Daanturo [Mon, 4 Jul 2022 11:07:51 +0000 (13:07 +0200)]
Add file-parent-directory function

* doc/lispref/files.texi: Document the function.
* etc/NEWS: Add its entry.
* lisp/emacs-lisp/shortdoc.el: Add it to 'file-name' group.
* lisp/files.el: implementation (bug#56355).

2 years agolisp/thumbs.el: Fix calling the "convert" command
Benjamin Riefenstahl [Mon, 4 Jul 2022 10:57:34 +0000 (12:57 +0200)]
lisp/thumbs.el: Fix calling the "convert" command

* lisp/thumbs.el (thumbs-call-convert): Pass 'action-prefix' and
'action' as a combined parameter.  Do not pass 'arg' if it is nil.
(thumbs-modify-image): Do not pass "" as 'arg' to
'thumbs-call-convert' (bug#56375).

Some time in the past this was converted from using the shell to
passing the parameters directly, but the fallout was not handled
correctly.

2 years agoPreserve <title> in the Emacs manuals
Lars Ingebrigtsen [Mon, 4 Jul 2022 10:47:16 +0000 (12:47 +0200)]
Preserve <title> in the Emacs manuals

* admin/admin.el (manual-html-fix-headers): Preserve the <title>
element (bug#48334).