]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoTweak x_hide_tip for consistency
Paul Eggert [Mon, 4 Oct 2021 00:58:16 +0000 (17:58 -0700)]
Tweak x_hide_tip for consistency

* src/xfns.c (x_hide_tip, Fx_show_tip): Be consistent about using
!NILP (tip_frame) instead of FRAMEP (tip_frame).  The two
expressions are logically equivalent since tip_frame is either a
frame or nil, !NILP is a bit faster, and making things consistent
pacifies gcc 11.2.1 -Wanalyzer-null-dereference.

3 years agoRemove encode_terminal_code UNINITs
Paul Eggert [Mon, 4 Oct 2021 00:52:04 +0000 (17:52 -0700)]
Remove encode_terminal_code UNINITs

* src/term.c (encode_terminal_code): Clarify by removing a couple
of UNINITs and testing the local variable ‘cmp’ instead of
retesting src->u.cmp.automatic.  This pacifies gcc 11.2.1
-Wanalyzer-null-dereference.

3 years agoPort pdumper.c maybe_unused to C2x
Paul Eggert [Mon, 4 Oct 2021 00:45:20 +0000 (17:45 -0700)]
Port pdumper.c maybe_unused to C2x

Port pdumper.c to C2x, and pacify gcc 11.2.1 -Wattributes -Wunused.
* src/pdumper.c (dump_tailq_prepend):
Omit ATTRIBUTE_UNUSED, since it’s always used.
(dump_tailq_append): Remove; unused.

3 years agoPort systhreads.h to C2x
Paul Eggert [Mon, 4 Oct 2021 00:22:30 +0000 (17:22 -0700)]
Port systhreads.h to C2x

* src/systhread.h: Put NODISCARD at the start of extern
declarations, not at the end.  This is needed by C2x.
This patch also pacifies gcc 11.2.1 -Wattributes.

3 years agoPacify -Wanalyzer-null-argument in lisp_malloc
Paul Eggert [Sun, 3 Oct 2021 23:37:13 +0000 (16:37 -0700)]
Pacify -Wanalyzer-null-argument in lisp_malloc

* src/alloc.c (lisp_malloc): Document that NBYTES must be
positive, and omit a needless runtime check.  This pacifies a
false alarm with gcc 11.2.1 -Wanalyzer-possible-null-dereference.

3 years agoPacify gcc 11.2.1 -Wanalyzer-null-argument
Paul Eggert [Sun, 3 Oct 2021 23:31:50 +0000 (16:31 -0700)]
Pacify gcc 11.2.1 -Wanalyzer-null-argument

* src/gtkutil.c (xg_item_label_same_p): Clarify boolean expression
to pacify -Wanalyzer-null-argument with GCC 11.2.1 20210728
(Red Hat 11.2.1-1).

3 years agoSimplify hack-read-symbol-shorthands again (bug#50946)
João Távora [Sun, 3 Oct 2021 15:05:40 +0000 (16:05 +0100)]
Simplify hack-read-symbol-shorthands again (bug#50946)

* lisp/loadup.el (load-source-file-function): Don't set twice.

* lisp/shorthands.el (hack-read-symbol-shorthands): Simplify.
(load-with-shorthands-and-code-conversion): Remove.

* lisp/international/mule.el (load-with-code-conversion): Call
hack-read-symbol-shorthands-function.  Set up shorthands.
(hack-read-symbol-shorthands-function): New variable.

3 years agoFix recipe for 'native-lisp' directory
Eli Zaretskii [Sun, 3 Oct 2021 19:35:04 +0000 (22:35 +0300)]
Fix recipe for 'native-lisp' directory

* src/Makefile.in (../native-lisp): If the directory native-lisp
exists, do nothing.

3 years ago; * lisp/time-stamp.el (time-stamp-format): Doc string.
Stephen Gildea [Sun, 3 Oct 2021 19:22:23 +0000 (12:22 -0700)]
; * lisp/time-stamp.el (time-stamp-format): Doc string.

3 years agoSimplify socket symlink-attack checking
Paul Eggert [Sun, 3 Oct 2021 18:42:20 +0000 (11:42 -0700)]
Simplify socket symlink-attack checking

This is a minor bugfix cleanup (Bug#33847#161).
* lib-src/emacsclient.c: Move "#include <acl.h>" to inside
"#ifdef SOCKETS_IN_FILE_SYSTEM", which is more accurate
and simpler than having a separate "#ifndef WINDOWSNT".
(O_PATH): Likewise.

3 years ago; * doc/lispref/files.texi (Reading from Files): Fix wording.
Eli Zaretskii [Sun, 3 Oct 2021 18:30:34 +0000 (21:30 +0300)]
; * doc/lispref/files.texi (Reading from Files): Fix wording.

3 years agoClarify (elisp) insert-file-contents with BEG or END not on character boundary
Alan Mackenzie [Sun, 3 Oct 2021 18:13:23 +0000 (18:13 +0000)]
Clarify (elisp) insert-file-contents with BEG or END not on character boundary

* doc/lispref/files.texi (Reading from files): When the argument BEG or END to
insert-file-contents are at a byte position not at a character boundary,
clarify that raw bytes get inserted, and how to handle this awkwardness in
Lisp.  Also clarify that insert-file-contents-literally is intended to insert
raw bytes into the buffer.  Fix the outdated example that states it inserts
500 characters, when it actually inserts 500 bytes.

3 years ago* src/Makefile.in: Simplify conditionals.
Andreas Schwab [Sun, 3 Oct 2021 17:36:53 +0000 (19:36 +0200)]
* src/Makefile.in: Simplify conditionals.

3 years agoMove context-menu selection items Defun/List/Symbol to prog-mode (bug#9054)
Juri Linkov [Sun, 3 Oct 2021 17:35:49 +0000 (20:35 +0300)]
Move context-menu selection items Defun/List/Symbol to prog-mode (bug#9054)

* lisp/mouse.el (context-menu-functions):
Add context-menu-middle-separator to choices.
(context-menu-region): Move Defun/List/Symbol selection items
to prog-context-menu.

* lisp/progmodes/prog-mode.el (prog-context-menu):
Move Defun/List/Symbol selection items from context-menu-region.
Include text-mode select menu only in strings and comments.

* lisp/textmodes/text-mode.el (text-mode-menu): New function.
(text-mode): Add text-mode-menu to context-menu-functions.

3 years ago* lisp/tab-bar.el (tab-bar-detach-tab): Handle frame selected by make-frame.
Juri Linkov [Sun, 3 Oct 2021 17:16:32 +0000 (20:16 +0300)]
* lisp/tab-bar.el (tab-bar-detach-tab): Handle frame selected by make-frame.

(tab-bar-move-window-to-tab): New command.
(tab-bar-new-tab-to): Handle the value 'window' of tab-bar-new-tab-choice.
https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg02197.html

3 years ago* lisp/tab-line.el (tab-line-format): Add face-modified to the cache key.
Juri Linkov [Sun, 3 Oct 2021 17:13:29 +0000 (20:13 +0300)]
* lisp/tab-line.el (tab-line-format): Add face-modified to the cache key.

When tab-line-tab-face-functions contains tab-line-tab-face-modified,
add 'buffer-modified-p' status to the cache-key, so the cache will expire
when the buffer modification status will change.
https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00129.html

3 years agoFix unmounting in Tramp
Michael Albinus [Sun, 3 Oct 2021 16:55:35 +0000 (18:55 +0200)]
Fix unmounting in Tramp

* doc/misc/tramp.texi (FUSE setup): Add tramp-fuse-unmount-on-cleanup.

* lisp/net/tramp.el (tramp-file-name-unify): New defun.
(tramp-file-name-equal-p):
* lisp/net/tramp-cache.el (tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-flush-connection-properties): Use it.

* lisp/net/tramp-fuse.el (tramp-fuse-get-fusermount): New defun.
(tramp-fuse-mount-points): New defvar.
(tramp-fuse-unmount): Use it.  Delete VEC from
`tramp-fuse-mount-points'.  Delete mount point.
(tramp-fuse-unmount-on-cleanup): New user option.
(tramp-fuse-cleanup, tramp-fuse-cleanup-all): New defuns.
(top): Adapt `tramp-fuse-unload-hook',
`tramp-cleanup-connection-hook',
`tramp-cleanup-all-connections-hook' and `kill-emacs-hook'.

* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
Add VEC to `tramp-fuse-mount-points'.

* test/lisp/net/tramp-tests.el (tramp-fuse-unmount-on-cleanup): Declare.
(tramp-test39-make-lock-file-name): Use it.

3 years ago* etc/themes/light-blue-theme.el: Add "Maintainer: emacs-devel".
Stefan Kangas [Sun, 3 Oct 2021 16:33:32 +0000 (18:33 +0200)]
* etc/themes/light-blue-theme.el: Add "Maintainer: emacs-devel".

3 years agoDefine HAVE_NATIVE_COMP in src/Makefile.in
Eli Zaretskii [Sun, 3 Oct 2021 16:05:49 +0000 (19:05 +0300)]
Define HAVE_NATIVE_COMP in src/Makefile.in

* src/Makefile.in (HAVE_NATIVE_COMP): Define.  Reported by Ken
Brown <kbrown@cornell.edu>.

3 years agoRename elisp-shorthands to read-symbol-shorthands
João Távora [Sun, 3 Oct 2021 11:14:41 +0000 (12:14 +0100)]
Rename elisp-shorthands to read-symbol-shorthands

The new name fits better in the family of variables that affect
the Lisp reader.

Suggested-by: Po Lu <luangruo@yahoo.com>
* doc/lispref/symbols.texi (Shorthands): Mention read-symbol-shorthands

* lisp/shorthands.el (hack-read-symbol-shorthands)
(hack-read-symbol-shorthands)
(shorthands-font-lock-shorthands): Use read-symbol-shorthands

* lisp/progmodes/elisp-mode.el (elisp--completion-local-symbols)
(elisp--completion-local-symbols)
(elisp-shorthands): Use read-symbol-shorthands

* src/lread.c:
(syms_of_lread): Define Vread_symbol_shorthands
(oblookup_considering_shorthand): Use Vread_symbol_shorthands.

* test/lisp/progmodes/elisp-mode-tests.el (elisp-shorthand-read-buffer):
(elisp-shorthand-read-from-string): Use read-symbol-shorthands

* test/lisp/progmodes/elisp-mode-resources/simple-shorthand-test.el
Use new symbol name read-symbol-shorthands.

3 years agoFont-lock shorthands in elisp-mode for quick visual recognition (bug#50959)
João Távora [Sun, 3 Oct 2021 10:56:16 +0000 (11:56 +0100)]
Font-lock shorthands in elisp-mode for quick visual recognition (bug#50959)

Only the shorthanded prefix is font-locked.  This allows the remainder
of the font-lock logic to subsist (e.g. for macro-defining symbols).

* lisp/shorthands.el (cl-lib): Require it when compiling.
(elisp-shorthand-font-lock-face): New face.
(shorthands--mismatch-from-end): New helper.
(shorthands-font-lock-shorthands): New helper.

* test/lisp/progmodes/elisp-mode-resources/simple-shorthand-test.el:
Add some dummy test code.

3 years ago; Fix last change in tramp-sshfs.el
Michael Albinus [Sun, 3 Oct 2021 15:01:30 +0000 (17:01 +0200)]
; Fix last change in tramp-sshfs.el

3 years agoSuppress superfluous error messages in Tramp
Michael Albinus [Sun, 3 Oct 2021 12:27:26 +0000 (14:27 +0200)]
Suppress superfluous error messages in Tramp

* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-insert-file-contents):
* lisp/net/tramp.el (tramp-handle-insert-file-contents)
(tramp-handle-lock-file): Suppress superfluous error message.

3 years agoFix reading the tail of a file in shorthands.el
Eli Zaretskii [Sun, 3 Oct 2021 11:34:08 +0000 (14:34 +0300)]
Fix reading the tail of a file in shorthands.el

* lisp/shorthands.el (hack-elisp-shorthands): Fix reading past
3000-character limit from EOF.  (Bug#50946)

3 years agoFix substitution of pretty quotes in code in easy-mmode
Lars Ingebrigtsen [Sun, 3 Oct 2021 09:35:28 +0000 (11:35 +0200)]
Fix substitution of pretty quotes in code in easy-mmode

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Adjust.
(easy-mmode--mode-docstring): Avoid making quotes into pretty
quotes in code (bug#50968).

3 years agoFix agent directory deletion
Lars Ingebrigtsen [Sun, 3 Oct 2021 09:28:27 +0000 (11:28 +0200)]
Fix agent directory deletion

* lisp/gnus/gnus-agent.el (gnus-agent-expire-unagentized-dirs):
Delete directories in a simpler way that actually works (bug#50986).

3 years ago; * etc/TODO: Fix previous commit; delete the right thing.
Stefan Kangas [Sun, 3 Oct 2021 00:04:34 +0000 (02:04 +0200)]
; * etc/TODO: Fix previous commit; delete the right thing.

3 years agoClarify the purpose of internal--format-docstring-line
Stefan Kangas [Sat, 2 Oct 2021 19:56:22 +0000 (21:56 +0200)]
Clarify the purpose of internal--format-docstring-line

* test/lisp/subr-tests.el (subr-test-internal--format-docstring-line):
* lisp/subr.el (internal--format-docstring-line): Make it more clear
that this function is not intended for the first line of a docstring.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add comment explaining
why we use 'internal--format-docstring-line'.
Problem pointed out by Stefan Monnier <monnier@iro.umontreal.ca>.

3 years ago* lisp/net/dictionary.el (context-menu-dictionary): Move menu item down.
Juri Linkov [Sat, 2 Oct 2021 19:22:41 +0000 (22:22 +0300)]
* lisp/net/dictionary.el (context-menu-dictionary): Move menu item down.

Place the dictionary menu item after middle-separator (bug#50552).

3 years agoUpdate to Org 9.5-30-g10dc9d
Kyle Meyer [Sat, 2 Oct 2021 18:27:55 +0000 (14:27 -0400)]
Update to Org 9.5-30-g10dc9d

The plan is to cut the Org 9.5.1 release and include it in Emacs 28.1,
but in the meantime regularly sync changes from Org's bugfix branch to
emacs-28.

This sync includes files from Org 9.5's new etc/csl/ directory that
should have been synced in bf9ec3d91a (Update to Org 9.5, 2021-09-29).

3 years agoRemove bogus ":safe t" custom properties
Glenn Morris [Sat, 2 Oct 2021 17:59:48 +0000 (10:59 -0700)]
Remove bogus ":safe t" custom properties

* lisp/org/oc.el (org-cite-global-bibliography)
(org-cite-note-rules, org-cite-punctuation-marks):
* lisp/org/oc-csl.el (org-cite-csl-locales-dir)
(org-cite-csl-styles-dir, org-cite-csl-no-citelinks-backends):
* lisp/org/oc-natbib.el (org-cite-natbib-options):
* lisp/org/org-keys.el (org-mouse-1-follows-link):
Remove bogus ":safe t" properties that would largely need to be
replaced by custom predicates.

3 years agoFix 'apropos-compact-layout'
Eli Zaretskii [Sat, 2 Oct 2021 17:53:26 +0000 (20:53 +0300)]
Fix 'apropos-compact-layout'

* lisp/textmodes/fill.el (fill-region-as-paragraph): Fix filling
paragraphs that end at EOB without a newline.  (Bug#50974)

3 years agoRemove bogus ":safe nil" custom properties
Glenn Morris [Sat, 2 Oct 2021 17:46:29 +0000 (10:46 -0700)]
Remove bogus ":safe nil" custom properties

* lisp/org/oc.el (org-cite-activate-processor)
(org-cite-export-processors, org-cite-follow-processor)
(org-cite-insert-processor):
* lisp/org/ol.el (org-link-parameters, org-link-frame-setup)
(org-link-shell-confirm-function)
(org-link-shell-skip-confirm-regexp)
(org-link-elisp-confirm-function)
(org-link-elisp-skip-confirm-regexp):
* lisp/org/org-num.el (org-num-format-function):
Remove bogus ":safe nil" that do nothing but propagate a
misunderstanding of the safe-local-variable property.

3 years agoThe safe-local-variable property is a function (bug#50944)
Glenn Morris [Sat, 2 Oct 2021 17:37:42 +0000 (10:37 -0700)]
The safe-local-variable property is a function (bug#50944)

* lisp/org/oc-basic.el (org-cite-basic-sorting-field)
(org-cite-basic-author-year-separator)
(org-cite-basic-max-key-distance)
(org-cite-basic-author-column-end)
(org-cite-basic-column-separator)
(org-cite-basic-mouse-over-key-face):
* lisp/org/oc-biblatex.el (org-cite-biblatex-options):
* lisp/org/oc-csl.el (org-cite-csl-link-cites)
(org-cite-csl-html-hanging-indent)
(org-cite-csl-html-label-width-per-char)
(org-cite-csl-latex-hanging-indent):
* lisp/org/oc.el (org-cite-adjust-note-numbers):
* lisp/org/org-keys.el (org-return-follows-link):
* lisp/org/org.el (org-fontify-todo-headline):
* lisp/org/ox-html.el (org-html-equation-reference-format)
(org-html-wrap-src-lines):
* lisp/org/ox-latex.el (org-latex-reference-command)
(org-latex-default-quote-environment):
* lisp/textmodes/tildify.el (tildify-pattern)
(tildify-space-string): Fix :safe property.

3 years ago; Some minor tweaks to TODO
Stefan Kangas [Sat, 2 Oct 2021 15:26:28 +0000 (17:26 +0200)]
; Some minor tweaks to TODO

* etc/TODO: Explain elpa.gnu.org items better.  Delete fixed item
about dynamic embedded graphics.  (Bug#50937)

3 years agoRevert "; * etc/TODO: Move elpa.gnu.org items to the end."
Stefan Kangas [Sat, 2 Oct 2021 15:25:29 +0000 (17:25 +0200)]
Revert "; * etc/TODO: Move elpa.gnu.org items to the end."

This reverts commit d73f0e96a7026808c01861f7525a2909279fc00d.

These items are a priority for the project and should be before other,
less prioritized items, according to a private discussion with project
co-maintainer Eli Zaretskii <eliz@gnu.org>.

3 years agoRevert "* etc/TODO: Rearrange to start with "Simple tasks"."
Stefan Kangas [Sat, 2 Oct 2021 15:25:24 +0000 (17:25 +0200)]
Revert "* etc/TODO: Rearrange to start with "Simple tasks"."

This reverts commit 879ef5b19ab1dd90284aef829ef306d56b4e5adb.

Some of these items are a priority for the project and should be
before other, less prioritized items, according to a private
discussion with project co-maintainer Eli Zaretskii <eliz@gnu.org>.

3 years agoFix selection of fonts for Arabic on Posix platforms
Eli Zaretskii [Sat, 2 Oct 2021 14:38:55 +0000 (17:38 +0300)]
Fix selection of fonts for Arabic on Posix platforms

* lisp/international/fontset.el (script-representative-chars): Add
U+06C1 to representative-characters for Arabic.  (Bug#50951)

3 years ago; Fix a typo in a doc string
Eli Zaretskii [Sat, 2 Oct 2021 12:57:51 +0000 (15:57 +0300)]
; Fix a typo in a doc string

* lisp/files.el (hack-local-variables--find-variables): Fix typo
in the doc string.

3 years agoFix ox-koma-letter compilation warnings
Lars Ingebrigtsen [Sat, 2 Oct 2021 08:37:48 +0000 (10:37 +0200)]
Fix ox-koma-letter compilation warnings

* lisp/org/ox-koma-letter.el (org-koma-letter-export-block)
(org-koma-letter-export-snippet): Fix warning about two unused
parameter.

3 years agoPreload paren.el
Eli Zaretskii [Sat, 2 Oct 2021 08:06:18 +0000 (11:06 +0300)]
Preload paren.el

* lisp/Makefile.in (COMPILE_FIRST): Add the dependencies of
comp.el, so that they are natively-compiled in advance.
* lisp/loadup.el ("paren"): Preload paren.el. (Bug#50934)

3 years agoImprove documentation of 'shift-select-mode'
Eli Zaretskii [Sat, 2 Oct 2021 06:40:44 +0000 (09:40 +0300)]
Improve documentation of 'shift-select-mode'

* doc/emacs/mark.texi (Shift Selection): Document the 'permanent'
value of 'shift-select-mode'.  Add index entry for that variable.
(Bug#50954)

* etc/NEWS: Update the entry for 'shift-select-mode'.

3 years ago; Standardize some license headers
Glenn Morris [Sat, 2 Oct 2021 01:07:45 +0000 (18:07 -0700)]
; Standardize some license headers

3 years agoSimplify shorthand injection (bug#50946)
João Távora [Fri, 1 Oct 2021 23:49:48 +0000 (00:49 +0100)]
Simplify shorthand injection (bug#50946)

* lisp/loadup.el: Load "shorthands" relatively late. Set
load-source-file-function to load-with-shorthands-and-code-conversion

* lisp/international/mule.el (hack-elisp-shorthands)
(load-with-shorthands-and-code-conversion): Move to
lisp/shorthands.el

* lisp/shorthands.el: New file.

3 years ago; * admin/release-branch.txt: Tweak previous.
Glenn Morris [Fri, 1 Oct 2021 16:31:40 +0000 (09:31 -0700)]
; * admin/release-branch.txt: Tweak previous.

3 years ago* doc/lispref/control.texi (pcase Macro): Fix cross-reference.
Glenn Morris [Fri, 1 Oct 2021 16:27:09 +0000 (09:27 -0700)]
* doc/lispref/control.texi (pcase Macro): Fix cross-reference.

3 years ago; * lisp/time-stamp.el: Fix wording in some documentation strings.
Stephen Gildea [Fri, 1 Oct 2021 15:54:10 +0000 (08:54 -0700)]
; * lisp/time-stamp.el: Fix wording in some documentation strings.

3 years ago; * admin/release-branch.txt: Small edits.
Glenn Morris [Fri, 1 Oct 2021 15:46:09 +0000 (08:46 -0700)]
; * admin/release-branch.txt: Small edits.

3 years agoFix some custom types
Glenn Morris [Fri, 1 Oct 2021 15:33:32 +0000 (08:33 -0700)]
Fix some custom types

* lisp/mpc.el (mpc-cover-image-re):
* lisp/org/oc-csl.el (org-cite-csl-locales-dir)
(org-cite-csl-styles-dir):
* lisp/org/org-plot.el (org-plot/preset-plot-types): Fix :type.

3 years ago; Fix oddities in etc/NEWS
Michael Albinus [Fri, 1 Oct 2021 14:42:52 +0000 (16:42 +0200)]
; Fix oddities in etc/NEWS

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Oct 2021 13:18:35 +0000 (06:18 -0700)]
; Auto-commit of loaddefs files.

3 years ago* etc/TODO: Add interactive mode tagging.
Stefan Kangas [Fri, 1 Oct 2021 13:09:31 +0000 (15:09 +0200)]
* etc/TODO: Add interactive mode tagging.

3 years ago* etc/TODO: Rearrange to start with "Simple tasks".
Stefan Kangas [Fri, 1 Oct 2021 13:00:29 +0000 (15:00 +0200)]
* etc/TODO: Rearrange to start with "Simple tasks".

3 years ago; * etc/TODO: Move elpa.gnu.org items to the end.
Stefan Kangas [Fri, 1 Oct 2021 12:04:04 +0000 (14:04 +0200)]
; * etc/TODO: Move elpa.gnu.org items to the end.

It makes no sense to have them before "easy" items intended for
beginners, especially since we miss some things to make this happen.

3 years ago; * etc/TODO: Mention a relevant bug report.
Stefan Kangas [Fri, 1 Oct 2021 11:57:06 +0000 (13:57 +0200)]
; * etc/TODO: Mention a relevant bug report.

3 years ago* etc/TODO: Remove outdated item. (Bug#50904)
Stefan Kangas [Fri, 1 Oct 2021 11:07:31 +0000 (13:07 +0200)]
* etc/TODO: Remove outdated item.  (Bug#50904)

3 years ago; Oops, fix up last commit
Amin Bandali [Fri, 1 Oct 2021 05:31:29 +0000 (01:31 -0400)]
; Oops, fix up last commit

3 years agoRename arguments of ERC's '/whois' and simplify doc string
Stefan Kangas [Fri, 1 Oct 2021 05:21:08 +0000 (01:21 -0400)]
Rename arguments of ERC's '/whois' and simplify doc string

* lisp/erc/erc.el (erc-cmd-WHOIS): Rename arguments and reword the doc
string to further clarify and simplify.

3 years ago; s/class/type
Dmitry Gutov [Fri, 1 Oct 2021 00:05:56 +0000 (03:05 +0300)]
; s/class/type

3 years agoMigrate Xref off EIEIO
Dmitry Gutov [Thu, 30 Sep 2021 21:02:21 +0000 (00:02 +0300)]
Migrate Xref off EIEIO

To improve performance and flexibility (bug#50777).

* lisp/progmodes/xref.el (xref-location): Remove.
(xref-file-location): Change to cl-struct.
(xref-buffer-location, xref-bogus-location): Ditto.
(xref-item, xref-match-item): Same.
And update all method definitions accordingly.
(xref--insert-xrefs): Don't use 'oref', use 'xref-item-location'.
(xref--insert-xrefs, xref-show-definitions-completing-read):
Insetad of 'with-slots', use 'xref-item-summary' and
'xref-item-location'.

* lisp/progmodes/etags.el (xref-etags-location):
Change from EIEIO class into a cl-struct.
(xref-etags-apropos-location): Ditto.
Update all method definitions.

* test/lisp/progmodes/elisp-mode-tests.el (xref-elisp-test-run):
Avoid using 'oref'.

3 years ago* admin/release-branch.txt: New file.
Eli Zaretskii [Thu, 30 Sep 2021 19:19:14 +0000 (22:19 +0300)]
* admin/release-branch.txt: New file.

3 years ago* lisp/dired.el (dired-omit-mode): Declare, to avoid compiler warning.
Eli Zaretskii [Thu, 30 Sep 2021 19:16:23 +0000 (22:16 +0300)]
* lisp/dired.el (dired-omit-mode): Declare, to avoid compiler warning.

3 years agoCut the emacs-28 release branch
Eli Zaretskii [Thu, 30 Sep 2021 17:05:09 +0000 (20:05 +0300)]
Cut the emacs-28 release branch

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 28.0.60.

* lisp/cus-edit.el (customize-changed-options-previous-release):
Update the last released version of Emacs.

3 years ago; Still working on emba CI
Michael Albinus [Thu, 30 Sep 2021 16:28:31 +0000 (18:28 +0200)]
; Still working on emba CI

* test/infra/Dockerfile.emba (emacs-base): Install also acl.

* test/infra/gitlab-ci.yml (.test-template): Move 'allow_failure'
clause level up.

3 years agoMake checkdoc's docstring substitution consistent with other docs
Nikolay Kudryavtsev [Wed, 29 Sep 2021 19:33:49 +0000 (22:33 +0300)]
Make checkdoc's docstring substitution consistent with other docs

* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
In error text, say "mapvar" instead of "keymap", and "command"
instead of "function", to be consistent with the ELisp manual.
(Bug#50903)

3 years ago; Mark cl-flet indentation test as failing (bug#9622)
Mattias Engdegård [Thu, 30 Sep 2021 15:22:29 +0000 (17:22 +0200)]
; Mark cl-flet indentation test as failing (bug#9622)

3 years agoFix regexp snags in org
Mattias Engdegård [Thu, 30 Sep 2021 15:13:12 +0000 (17:13 +0200)]
Fix regexp snags in org

* lisp/org/org-element.el (org-element-citation-key-re):
* lisp/org/ox-org.el (org-org-identity):
Remove repeated chars in alternatives.
* lisp/org/ob-java.el (org-babel-execute:java):
Remove superfluous backslash.
* lisp/org/ob-java.el (org-babel-java--main-re)
(org-babel-java--any-method-re): Remove (0+ space) expressions
subsumed by adjacent expressions.

3 years agoorg-element: use correct function
Mattias Engdegård [Thu, 30 Sep 2021 15:10:41 +0000 (17:10 +0200)]
org-element: use correct function

* lisp/org/org-element.el (org-element-headline-parser):
Pretty sure this one should be `skip-chars-backward`, not
`skip-syntax-backward`, since \t isn't a valid syntax code.

3 years ago; * test/lisp/emacs-lisp/bytecomp-tests.el: remove ineffective \
Mattias Engdegård [Thu, 30 Sep 2021 15:08:46 +0000 (17:08 +0200)]
; * test/lisp/emacs-lisp/bytecomp-tests.el: remove ineffective \

3 years agoRevert "Indent bodies of local function definitions properly in elisp-mode"
Mattias Engdegård [Thu, 30 Sep 2021 13:14:05 +0000 (15:14 +0200)]
Revert "Indent bodies of local function definitions properly in elisp-mode"

This reverts commit 38037e04cb05cb1f2b604f0b1602d36b0bcf6985.

3 years agoRevert "Fix regressions in cl-flet indentation"
Mattias Engdegård [Thu, 30 Sep 2021 13:13:52 +0000 (15:13 +0200)]
Revert "Fix regressions in cl-flet indentation"

This reverts commit c42af5aee74f310bdcd63aac96b1c02ec07a1c50.

3 years agoAdd rcirc-omit-unless-requested option
Philip Kaludercic [Thu, 30 Sep 2021 14:25:48 +0000 (16:25 +0200)]
Add rcirc-omit-unless-requested option

* doc/misc/rcirc.texi (Notices): Update documentation
* lisp/net/rcirc.el (rcirc-pending-requests): Add local variable
(rcirc-omit-unless-requested): Add user option
(rcirc-print): Respect rcirc-omit-unless-requested
(rcirc-define-command): Update rcirc-pending-requests

3 years ago* lisp/org/ob-julia.el: Use lexical-binding
Stefan Monnier [Thu, 30 Sep 2021 14:02:29 +0000 (10:02 -0400)]
* lisp/org/ob-julia.el: Use lexical-binding

(ess-eval-visibly-p): Declare.
(org-babel-julia-assign-elisp): Remove unused vars `header` and
`row-names` and corespondingly remove now unused args `colnames-p` and
`rownames-p`.
(org-babel-variable-assignments:julia): Adjust call to
`org-babel-julia-assign-elisp` accordingly.
(org-babel-julia-initiate-session): Use `bound-and-true-p`.
(org-babel-julia-evaluate-external-process)
(org-babel-julia-evaluate-session, org-babel-julia-evaluate):
Remove unused arg `row-names-p`.
(org-babel-execute:julia): Adjust call to
`org-babel-julia-evaluate` accordingly.

3 years ago* lisp/org/ox-koma-letter.el: Use lexical-binding
Stefan Monnier [Thu, 30 Sep 2021 13:58:04 +0000 (09:58 -0400)]
* lisp/org/ox-koma-letter.el: Use lexical-binding

And remove redundant `:group` args.

3 years agoFix a recent change of 'undo-redo' binding
Eli Zaretskii [Thu, 30 Sep 2021 11:32:58 +0000 (14:32 +0300)]
Fix a recent change of 'undo-redo' binding

* lisp/bindings.el (global-map): Fix the binding of 'undo-redo'.
(Bug#50911)

3 years agoMerge Org 9.5 from branch 'origin/scratch/org-sync'.
Eli Zaretskii [Thu, 30 Sep 2021 10:26:50 +0000 (13:26 +0300)]
Merge Org 9.5 from branch 'origin/scratch/org-sync'.

3 years ago; * src/nsterm.h: Use objc-mode.
Mattias Engdegård [Thu, 30 Sep 2021 08:56:26 +0000 (10:56 +0200)]
; * src/nsterm.h: Use objc-mode.

3 years ago; * lisp/help.el (help--analyze-key): Add comment.
Juri Linkov [Thu, 30 Sep 2021 07:04:20 +0000 (10:04 +0300)]
; * lisp/help.el (help--analyze-key): Add comment.

3 years agoFix previous `newline' patch
Lars Ingebrigtsen [Thu, 30 Sep 2021 07:04:11 +0000 (09:04 +0200)]
Fix previous `newline' patch

* lisp/simple.el (newline): Signal an error earlier to avoid
peculiar behaviour after getting a backtrace (bug#50900).

3 years agoMake `newline' check the argument earlier
Lars Ingebrigtsen [Thu, 30 Sep 2021 07:03:18 +0000 (09:03 +0200)]
Make `newline' check the argument earlier

* lisp/simple.el (newline): Signal an error earlier to avoid
peculiar behaviour after getting a backtrace (bug#50900).

3 years agoFix regressions in cl-flet indentation
akater [Thu, 30 Sep 2021 06:33:14 +0000 (08:33 +0200)]
Fix regressions in cl-flet indentation

* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p):
Rename (from -p-less form) and fix indentation regression
introduced by 38037e04cb05cb1f2b604f0b1602d36b0bcf6985
(bug#9622).  Also add cl-macrolet cl-flet* cl-symbol-macrolet.

3 years agoFix bootstrap after recent undo-redo change
dickmao [Thu, 30 Sep 2021 04:59:10 +0000 (06:59 +0200)]
Fix bootstrap after recent undo-redo change

* lisp/bindings.el (global-map): Don't use `kbd' here -- it breaks
bootstrap (bug#50911).

3 years ago* etc/NEWS: Announce Org update.
Kyle Meyer [Thu, 30 Sep 2021 00:42:46 +0000 (20:42 -0400)]
* etc/NEWS: Announce Org update.

3 years agoUpdate to Org 9.5
Kyle Meyer [Wed, 29 Sep 2021 22:48:59 +0000 (18:48 -0400)]
Update to Org 9.5

3 years agoAdd new '/wii' convenience ERC command
Amin Bandali [Thu, 30 Sep 2021 03:11:49 +0000 (23:11 -0400)]
Add new '/wii' convenience ERC command

* etc/NEWS: Announce the addition of the command.
* lisp/erc/erc.el (erc-cmd-WII): Add '/wii' convenience command which
calls the '/whois' command with the given nick as both arguments,
which is useful for displaying the whois information for the nick
along with idle time, even if the nick is on a different server than
the one we are currently connected to.

3 years agoRestore the previous order of ERC's '/whois' arguments
Amin Bandali [Thu, 30 Sep 2021 02:15:07 +0000 (22:15 -0400)]
Restore the previous order of ERC's '/whois' arguments

* etc/NEWS: Remove unneeded entry.
* lisp/erc/erc.el (erc-cmd-WHOIS): Restore the previous order of
arguments sent to the server, so that there's no change in the
function's behavior.  Instead, rename the arguments to be more
accurate, and expand upon them in the doc string.

3 years agoNew command mpc-goto-playing-song
Stefan Kangas [Wed, 29 Sep 2021 23:17:24 +0000 (01:17 +0200)]
New command mpc-goto-playing-song

* lisp/mpc.el (mpc-goto-playing-song): New command to go to the
currently playing song.
(mpc-mode-map): Bind it to "o".

3 years ago* lisp/linum.el: Recommend `display-line-numbers-mode'.
Stefan Kangas [Wed, 29 Sep 2021 18:33:45 +0000 (20:33 +0200)]
* lisp/linum.el: Recommend `display-line-numbers-mode'.

3 years agoAdd bindings for 'undo-redo'
Dmitry Gutov [Wed, 29 Sep 2021 19:44:40 +0000 (22:44 +0300)]
Add bindings for 'undo-redo'

* etc/NEWS: Describe the change.

* lisp/bindings.el (global-map): Add bindings for 'undo-redo'.

* lisp/simple.el (undo-no-redo): Turn into a user option.

3 years ago* lisp/tab-bar.el (tab-bar-move-tab-to-frame): Delete frame with last tab.
Juri Linkov [Wed, 29 Sep 2021 19:40:20 +0000 (22:40 +0300)]
* lisp/tab-bar.el (tab-bar-move-tab-to-frame): Delete frame with last tab.

3 years ago* lisp/tab-bar.el: (tab-bar-detach-tab) New command
Adam Porter [Wed, 29 Sep 2021 19:37:38 +0000 (22:37 +0300)]
* lisp/tab-bar.el: (tab-bar-detach-tab) New command

(tab-bar-detach-tab): New command.
(tab-bar-mouse-context-menu): Add menu entry.

With thanks to Matt Beshara <m@mfa.pw> for his feedback.
https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg02141.html

3 years agoTweak previous message-newline-and-reformat change
Lars Ingebrigtsen [Wed, 29 Sep 2021 18:48:41 +0000 (20:48 +0200)]
Tweak previous message-newline-and-reformat change

* lisp/gnus/message.el (message-newline-and-reformat): Only search
for previous/next cited lines that have space, because it's the
space we're trying to find.

3 years agoCross reference `dired-do-revert-buffer'
Lars Ingebrigtsen [Wed, 29 Sep 2021 17:10:00 +0000 (19:10 +0200)]
Cross reference `dired-do-revert-buffer'

* lisp/dired-aux.el (dired-do-copy):
(dired-do-symlink):
(dired-do-hardlink):
(dired-do-rename): Mention `dired-do-revert-buffer'.

3 years agoDo some NEWS taggin
Lars Ingebrigtsen [Wed, 29 Sep 2021 17:07:08 +0000 (19:07 +0200)]
Do some NEWS taggin

3 years ago* etc/TODO: Delete ImageMagick items. (Bug#50891)
Stefan Kangas [Wed, 29 Sep 2021 16:59:28 +0000 (18:59 +0200)]
* etc/TODO: Delete ImageMagick items.  (Bug#50891)

3 years agoMake `M-q' in message-mode work better
Lars Ingebrigtsen [Wed, 29 Sep 2021 16:44:41 +0000 (18:44 +0200)]
Make `M-q' in message-mode work better

* lisp/gnus/message.el (message-newline-and-reformat): Fix
bug#43299 differently.
(message-newline-and-reformat): Revert change for bug#43299.  This
fixes bug#50842.

3 years agoForce volume to an integer divisible by mpc-volume-step
Stefan Kangas [Wed, 29 Sep 2021 16:22:43 +0000 (18:22 +0200)]
Force volume to an integer divisible by mpc-volume-step

* lisp/mpc.el (mpc-volume-mouse-set): Force volume to an integer
divisible by 'mpc-volume-step'.
(mpc-volume-step): Add docstring.

3 years agoSignal an error in `search-forward-help-for-help'
Lars Ingebrigtsen [Wed, 29 Sep 2021 15:43:16 +0000 (17:43 +0200)]
Signal an error in `search-forward-help-for-help'

* lisp/help.el (search-forward-help-for-help): Error out instead
of showing an empty buffer (bug#50881).

3 years agoAdd a comment about bug#50877 for gnus-set-difference
Lars Ingebrigtsen [Wed, 29 Sep 2021 15:27:20 +0000 (17:27 +0200)]
Add a comment about bug#50877 for gnus-set-difference

3 years agoRevert "Obsolete local set difference functions in favor of seq-difference"
Lars Ingebrigtsen [Wed, 29 Sep 2021 15:25:01 +0000 (17:25 +0200)]
Revert "Obsolete local set difference functions in favor of seq-difference"

This reverts commit 20f7fa691b7c2859b96550d9ccb326bf394e160d.

gnus-set-difference is orders of magnitude faster than seq-difference
(on these sets), and using seq-difference makes nnimap too
slow.