]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAdd new command 'ensure-empty-lines'.
Lars Ingebrigtsen [Mon, 4 Oct 2021 11:15:41 +0000 (13:15 +0200)]
Add new command 'ensure-empty-lines'.

* doc/lispref/text.texi (Commands for Insertion): Document it.

* lisp/emacs-lisp/subr-x.el (ensure-empty-lines): New command.

3 years ago* test/infra/gitlab-ci.yml (test-native-comp-speed0): Fix thinko.
Michael Albinus [Mon, 4 Oct 2021 11:19:38 +0000 (13:19 +0200)]
* test/infra/gitlab-ci.yml (test-native-comp-speed0): Fix thinko.

3 years agoAdd new user option 'translate-upper-case-key-bindings'
Lars Ingebrigtsen [Mon, 4 Oct 2021 10:33:53 +0000 (12:33 +0200)]
Add new user option 'translate-upper-case-key-bindings'

* doc/lispref/commands.texi (Key Sequence Input): Document it.

* lisp/cus-start.el (standard): defcustom it.

* src/keyboard.c (read_key_sequence): Use it.
(syms_of_keyboard): New variable 'translate-upper-case-key-bindings'.

3 years agoRemove MozRepl stuff from js.el
Lars Ingebrigtsen [Mon, 4 Oct 2021 09:56:23 +0000 (11:56 +0200)]
Remove MozRepl stuff from js.el

* lisp/progmodes/js.el: Remove all the mozrepl stuff from js.el
(bug#40771).

3 years agoAvoid a warning in python-eldoc-setup-code
Carlos Pita [Mon, 4 Oct 2021 09:43:17 +0000 (11:43 +0200)]
Avoid a warning in python-eldoc-setup-code

* lisp/progmodes/python.el (python-eldoc-setup-code): Avoid a
deprecation warning about formatargspec (bug#50996).

3 years agoFix problem with outputting error messages while dumping Emacs
Gregory Heytings [Mon, 4 Oct 2021 09:18:07 +0000 (11:18 +0200)]
Fix problem with outputting error messages while dumping Emacs

* src/print.c (print_error_message): Don't call
substitute-command-keys while bootstrapping.

3 years agoAllow computing :doc-spec info-look elements at run time
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:53:39 +0000 (10:53 +0200)]
Allow computing :doc-spec info-look elements at run time

* lisp/info-look.el (info-lookup--expand-info): New function.
(:mode, info-lookup-add-help): Adjust doc string.
(info-lookup-add-help*): Allow adding a dynamic expansion.
(info-lookup): Expand.
(:mode): Use a dynamic expansion for Python to postpone the lookup.
(info-complete): Expand.

3 years agoUpdate NEWS for 'define-keymap'
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:17:03 +0000 (10:17 +0200)]
Update NEWS for 'define-keymap'

3 years agoConvert some keymaps to defvar-keymap
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:15:04 +0000 (10:15 +0200)]
Convert some keymaps to defvar-keymap

* lisp/simple.el (special-mode-map):
* lisp/net/shr.el (shr-map):
* lisp/net/eww.el (eww-link-keymap):
(eww-mode-map):
(eww-submit-map):
(eww-bookmark-mode-map):
(eww-history-mode-map):
(eww-buffers-mode-map):
* lisp/gnus/message.el (message-mode-map): Use defvar-keymap.

* lisp/gnus/gnus-eform.el (gnus-edit-form-mode-map):
* lisp/gnus/gnus-dired.el (gnus-dired-mode-map):
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode-map): Use
defvar-keymap.

* lisp/gnus/gnus-group.el (gnus-group-mode-map): Use define-keymap.

* lisp/gnus/gnus-html.el (gnus-html-image-map): Use defvar-keymap.

* lisp/gnus/gnus.el: Autoload gnus-score-edit-all-score.

3 years agoAdd 'define-keymap' and 'defvar-keymap'
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:12:11 +0000 (10:12 +0200)]
Add 'define-keymap' and 'defvar-keymap'

* doc/lispref/keymaps.texi (Changing Key Bindings): Document
define-keymap and defvar-keymap.

* lisp/subr.el (define-keymap): New function.
(define-keymap--define): New function.
(defvar-keymap): New macro.

* lisp/emacs-lisp/lisp-mode.el (lisp-indent--defvar-keymap): New
function.
(lisp-indent-function): Use it to indent defvar-keymap.

3 years ago* test/infra/gitlab-ci.yml (.native-comp-template): Revert change.
Michael Albinus [Sun, 3 Oct 2021 17:53:17 +0000 (19:53 +0200)]
* test/infra/gitlab-ci.yml (.native-comp-template): Revert change.

3 years agoImprove native compilation on emba
Michael Albinus [Sun, 3 Oct 2021 17:40:14 +0000 (19:40 +0200)]
Improve native compilation on emba

* test/infra/Dockerfile.emba (emacs-native-comp)
(emacs-native-comp-speed1, emacs-native-comp-speed2): New stages.
(emacs-native-comp-speed0): Adapt.

* test/infra/gitlab-ci.yml (.build-template): Add 'needs: []'.
(.native-comp-template): Use 'only:' instead of 'rules:'.
(build-native-comp-speed0): Rename from 'build-native-bootstrap-speed0'.
(build-native-comp-speed1, build-native-comp-speed2)
(test-native-comp-speed0): New jobs.

3 years agoObsolete the light-blue theme
Lars Ingebrigtsen [Sun, 3 Oct 2021 09:03:55 +0000 (11:03 +0200)]
Obsolete the light-blue theme

* etc/themes/light-blue-theme.el (light-blue): Make theme obsolete
since it's not maintained and seems to serve no particular use
case (bug#47047).

3 years agoAllow obsoleting themes
Lars Ingebrigtsen [Sun, 3 Oct 2021 09:03:07 +0000 (11:03 +0200)]
Allow obsoleting themes

* lisp/cus-theme.el (customize-themes): Don't list obsolete themes.

* lisp/custom.el (load-theme): Issue a warning if the theme is
obsolete (bug#47047).

3 years agoExpand internal--format-docstring-line test
Stefan Kangas [Sat, 2 Oct 2021 14:20:06 +0000 (16:20 +0200)]
Expand internal--format-docstring-line test

* test/lisp/subr-tests.el (subr-test-internal--format-docstring-line):
Check for error on newline.

3 years agoSupport 'strong-italic' facemenu face in html-mode
Stefan Kangas [Sat, 2 Oct 2021 13:14:15 +0000 (15:14 +0200)]
Support 'strong-italic' facemenu face in html-mode

* lisp/textmodes/sgml-mode.el (sgml-face-tag-alist)
(sgml-mode-facemenu-add-face-function, html-face-tag-alist):
Support 'strong-italic' facemenu face.

3 years agognus-icalendar: Missing attendees are not REQ-PARTICIPANT
Alexandre Duret-Lutz [Sat, 2 Oct 2021 08:55:44 +0000 (10:55 +0200)]
gnus-icalendar: Missing attendees are not REQ-PARTICIPANT

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event--get-attendee-names)
(gnus-icalendar-event-from-ical): Do not default to REQ-PARTICIPANT
if the user was not found as an attendee.
* test/lisp/gnus/gnus-icalendar-tests.el
(gnus-icalendary-weekly-byday): Remove the ROLE property to test
that it correctly defaults to REQ-PARTICIPANT.  The case where the
user is not listed is covered by gnus-icalendar-parse already
(bug#50749).

3 years ago* lisp/emacs-lisp/cl-generic.el: Fix test/lisp/loadhist-tests
Stefan Monnier [Sat, 2 Oct 2021 03:53:20 +0000 (23:53 -0400)]
* lisp/emacs-lisp/cl-generic.el: Fix test/lisp/loadhist-tests

Revert 2fcd34f202 which was redundant anyway since e165bf3d4
had fixed it in a better way anyway (a way which doesn't litter the
`load-history`).

3 years ago* lisp/emacs-lisp/cl-generic.el (cl--generic-get-dispatcher): Fix regression
Stefan Monnier [Fri, 1 Oct 2021 19:34:09 +0000 (15:34 -0400)]
* lisp/emacs-lisp/cl-generic.el (cl--generic-get-dispatcher): Fix regression

3 years ago; If Invalid function: with-memoization error introduced in 3c972723
Tassilo Horn [Fri, 1 Oct 2021 19:15:51 +0000 (21:15 +0200)]
; If Invalid function: with-memoization error introduced in 3c972723

3 years ago* lisp/emacs-lisp/subr-x.el (with-memoization): New macro
Stefan Monnier [Fri, 1 Oct 2021 18:33:37 +0000 (14:33 -0400)]
* lisp/emacs-lisp/subr-x.el (with-memoization): New macro

Extracted from `cl-generic.el`.

* lisp/emacs-lisp/cl-generic.el (cl--generic-get-dispatcher)
(cl--generic-build-combined-method, cl-generic-generalizers): Use it.
(cl--generic-with-memoization): Delete.

3 years agoMerge from origin/emacs-28
Glenn Morris [Fri, 1 Oct 2021 16:27:47 +0000 (09:27 -0700)]
Merge from origin/emacs-28

626696c3c8 (origin/emacs-28) * doc/lispref/control.texi (pcase Macro)...
2895cb8d49 ; * lisp/time-stamp.el: Fix wording in some documentation ...
1e79c9e9c0 ; * admin/release-branch.txt: Small edits.
f1f57a541e Fix some custom types

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 agoMerge from origin/emacs-28
Glenn Morris [Fri, 1 Oct 2021 14:50:25 +0000 (07:50 -0700)]
Merge from origin/emacs-28

5ee5a90213 (origin/emacs-28) ; Fix oddities in etc/NEWS

# Conflicts:
# etc/NEWS

3 years ago; Merge from origin/emacs-28
Glenn Morris [Fri, 1 Oct 2021 14:50:25 +0000 (07:50 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

35e6b8d357 (emacs-28) ; Auto-commit of loaddefs files.

3 years agoMerge from origin/emacs-28
Glenn Morris [Fri, 1 Oct 2021 14:50:25 +0000 (07:50 -0700)]
Merge from origin/emacs-28

ad0798a395 * etc/TODO: Add interactive mode tagging.
879ef5b19a * etc/TODO: Rearrange to start with "Simple tasks".
d73f0e96a7 ; * etc/TODO: Move elpa.gnu.org items to the end.
7cf1229706 ; * etc/TODO: Mention a relevant bug report.
f733b909ff * etc/TODO: Remove outdated item.  (Bug#50904)
94c247d659 ; Oops, fix up last commit
88378acbfc Rename arguments of ERC's '/whois' and simplify doc string
205eb7f801 ; s/class/type
86da812afb Migrate Xref off EIEIO
5c73dfcbcb * admin/release-branch.txt: New file.
f060d1c9a4 * lisp/dired.el (dired-omit-mode): Declare, to avoid compi...

# Conflicts:
# etc/NEWS

3 years ago; Merge from origin/emacs-28
Glenn Morris [Fri, 1 Oct 2021 14:50:18 +0000 (07:50 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

2750d97543 Cut the emacs-28 release branch

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

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 agoFix one-clause movement in erts-mode--goto-start-of-test
Lars Ingebrigtsen [Fri, 1 Oct 2021 13:38:29 +0000 (15:38 +0200)]
Fix one-clause movement in erts-mode--goto-start-of-test

* lisp/progmodes/erts-mode.el (erts-mode--goto-start-of-test): Fix
so this works in one-clause tests.

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

3 years agoFix text in erts-run-test message
Lars Ingebrigtsen [Fri, 1 Oct 2021 13:25:05 +0000 (15:25 +0200)]
Fix text in erts-run-test message

* lisp/progmodes/erts-mode.el (erts-run-test): New command and
keystroke.

3 years agoAdd new command erts-run-test
Lars Ingebrigtsen [Fri, 1 Oct 2021 13:24:01 +0000 (15:24 +0200)]
Add new command erts-run-test

* lisp/progmodes/erts-mode.el (erts-run-test): New command and
keystroke.

3 years agoRefactor out ert-test--erts-test
Lars Ingebrigtsen [Fri, 1 Oct 2021 13:23:32 +0000 (15:23 +0200)]
Refactor out ert-test--erts-test

* lisp/emacs-lisp/ert.el (ert-test--erts-test): Refactor out the
bulk of the function for easier reuse.

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 agoNew command for unmarking all images in image-dired
Peter Münster [Fri, 1 Oct 2021 12:49:28 +0000 (14:49 +0200)]
New command for unmarking all images in image-dired

* lisp/image-dired.el (image-dired-unmark-all-marks): Remove marks from
Dired buffer and update the view of the thumbnails (bug#50920).

3 years agodefault role for attendees is REQ-PARTICIPANT
Alexandre Duret-Lutz [Wed, 22 Sep 2021 20:28:28 +0000 (22:28 +0200)]
default role for attendees is REQ-PARTICIPANT

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event--get-attendee-names,
gnus-icalendar-event-from-ical): When the ROLE property
is missing from an ATTENDEE line, follow RFC5546 and default
to REQ-PARTICIPANT.

3 years agoallow party crashers to respond to ical events
Alexandre Duret-Lutz [Wed, 22 Sep 2021 14:38:42 +0000 (16:38 +0200)]
allow party crashers to respond to ical events

If an ical invitation is sent to a mailing list, the recipients
are probably not listed as attendees.  However there are
legitimate situations where these unlisted (or indirectly listed)
recipients are still expected to respond.  RFC5546 allows that,
calling those respondents "party crashers".

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event:inline-reply-buttons): Display the response
buttons even if the user was not found in the list of attendees,
but change the labels of those buttons to make clear they are
not explicitly invited.
(gnus-icalendar-event--build-reply-event-body): Add an attendee
line for the user in case one was not found.

3 years agoreply to the organizer of an ical event
Alexandre Duret-Lutz [Wed, 22 Sep 2021 14:30:21 +0000 (16:30 +0200)]
reply to the organizer of an ical event

RFC5546 specifies that participant status (accepted, tentative,
declined) should be sent to the organizer of the event.  That
organizer is not necessarily the sender of the invitation; for
instance Google Calendar uses custom email addresses to receive these
notifications.

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-send-buffer-by-mail):
Replace the default recipient of the reply by the organizer of the
event.
(gnus-icalendar-reply) Pass that organizer to the previous function.

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 agoRestore the flet indentation fixes
akater [Fri, 1 Oct 2021 11:25:42 +0000 (13:25 +0200)]
Restore the flet indentation fixes

* lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p): New
function.
(lisp-indent-function): Use it to fix cl-flet indentation.

3 years agoAdd a new command to mark a region as a test in erts-mode
Lars Ingebrigtsen [Fri, 1 Oct 2021 11:22:03 +0000 (13:22 +0200)]
Add a new command to mark a region as a test in erts-mode

* lisp/progmodes/erts-mode.el (erts-mode--in-test-p): Fix test.
(erts-tag-region): New command and keystroke.

3 years agoAllow skipping erts tests
Lars Ingebrigtsen [Fri, 1 Oct 2021 11:20:20 +0000 (13:20 +0200)]
Allow skipping erts tests

* doc/misc/ert.texi (erts files): Document it.

* lisp/emacs-lisp/ert.el (ert-test-erts-file): Allow skipping tests.

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 agoAdd more indentation tests for Emacs Lisp mode
Lars Ingebrigtsen [Fri, 1 Oct 2021 10:18:17 +0000 (12:18 +0200)]
Add more indentation tests for Emacs Lisp mode

3 years agoAdd new functionality to write buffer-based tests
Lars Ingebrigtsen [Fri, 1 Oct 2021 10:17:47 +0000 (12:17 +0200)]
Add new functionality to write buffer-based tests

* doc/misc/ert.texi (erts files): New node.

* lisp/files.el (auto-mode-alist): Map .erts to erts-mode.

* lisp/emacs-lisp/ert.el (ert-test-erts-file): New function.

* lisp/emacs-lisp/ert.el (ert--erts-specifications)
(ert--erts-unquote): Helper functions.

* lisp/progmodes/erts-mode.el: New mode and file.

3 years agoSave position in mark ring before jumping to definition
Ihor Radchenko [Fri, 1 Oct 2021 07:11:37 +0000 (09:11 +0200)]
Save position in mark ring before jumping to definition

* lisp/help-mode.el (help-function-def--button-function): Current
point is saved in the mark ring before jumping to definition.

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 agoUpdate emacs-module sources for Emacs 29
Eli Zaretskii [Thu, 30 Sep 2021 17:26:00 +0000 (20:26 +0300)]
Update emacs-module sources for Emacs 29

* configure.ac (module_env_snippet_29): New.

* src/module-env-28.h: Remove the comment with instructions for
the next release.
* src/module-env-29.h: New file.

3 years agoBump Emacs version to 29.0.50
Eli Zaretskii [Thu, 30 Sep 2021 17:11:43 +0000 (20:11 +0300)]
Bump Emacs version to 29.0.50

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp:
* src/msdos.c (internal_terminal_init):
* etc/refcards/ru-refcard.tex:
* etc/NEWS: Bump Emacs version to 29.0.50.
* etc/NEWS.28: New file.

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

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.

3 years ago* test/Makefile.in (WRITE_LOG): Add emacs-module-tests as problematic.
Michael Albinus [Wed, 29 Sep 2021 12:51:39 +0000 (14:51 +0200)]
* test/Makefile.in (WRITE_LOG): Add emacs-module-tests as problematic.