1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

143740 commits

Author SHA1 Message Date
Andrea Corallo
a26b14733b Merge remote-tracking branch 'savannah/master' into HEAD 2020-09-10 10:45:02 +02:00
Andrea Corallo
107514a6e2 * Fix rename file error when reloading the same file from an sys eln dir.
* src/comp.c (Fnative_elisp_load): Don't rename files we don't
	have the permission for.
2020-09-10 08:36:51 +02:00
Andrea Corallo
c2724c3ebb Revert "* src/comp.c (Fcomp__compile_ctxt_to_file): Don't cleanup caches at bootstrap."
This reverts commit 15acd27d1c.
2020-09-10 07:37:45 +02:00
Amin Bandali
931b9f5953
Set `generated-autoload-file' in erc-status-sidebar.el
* lisp/erc/erc-status-sidebar.el: Set `generated-autoload-file' to
ERC's dedicated "erc-loaddefs.el", since we don't need this file's
autoloaded functions to be available before ERC itself is loaded.
2020-09-09 23:07:49 -04:00
Basil L. Contovounesios
d08568e6e9 ; Silence byte-compilation warning in last change
* lisp/tab-line.el (tab-line-switch-cycling): Move definition before
first use.
2020-09-10 00:20:24 +01:00
Basil L. Contovounesios
60cb56e999 ; Fix typo in last change 2020-09-10 00:15:09 +01:00
Kiso Katsuyuki
5d43609095 Introduce a new variable tab-line-switch-cycling
If it is set t, enable cycling tab switch.  Default is nil.

Copyright-paperwork-exempt: yes
2020-09-09 22:24:06 +03:00
Kiso Katsuyuki
c3f986a455 Suppress errors of tab-line-switch functions
Traget errors occurs when tab-line-switch-to-prev-tab or
tab-line-switch-to-next-tab is invoked in a buffer which is not in
tabs

Copyright-paperwork-exempt: yes
2020-09-09 22:24:06 +03:00
João Távora
dd25055829 Fix up fix for bug#19032
* lisp/icomplete.el (icomplete-ret): Call
minibuffer-icomplete-and-exit, not minibuffer-exit.
2020-09-09 20:12:45 +01:00
Stefan Kangas
ceb5d1745f Minor clean ups and doc fixes in find-dired
* lisp/find-dired.el (find-ls-option, find-dired): Doc fixes.
(find-dired, kill-find): Minor clean ups.
2020-09-09 20:14:54 +02:00
Stefan Kangas
fab443827a Make flyspell-prog-text-faces into defcustom
* lisp/textmodes/flyspell.el (flyspell-prog-text-faces):
Make into defcustom.  (Bug#32136)
2020-09-09 20:08:51 +02:00
Naoya Yamashita
66509f2ead Add gv-define-expander for plist-get
It is necessary to make plist-get as a generalized variable, and this
definition allows user to use setf and other useful functions on
plist-get.

* lisp/emacs-lisp/gv.el: Add gv-define-expander for plist-get

* lisp/emacs-lisp/gv-tests.el: Add new tests for plist-get
2020-09-09 13:50:05 -04:00
Stefan Monnier
4064d07445 * lisp/dnd.el: Use lexical-binding. Remove redundant :group
(dnd--unescape-uri): Mark it internal, but don't mark it inlinable.

* lisp/cus-edit.el (dnd): Move the group to dnd.el.
2020-09-09 13:33:15 -04:00
Stefan Monnier
6e7736ac5f (define-minor-mode): Don't compute a default :group (bug#41145)
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Rely on the
`defcustom`s own defaulting for the :group.

* lisp/display-fill-column-indicator.el
(global-display-fill-column-indicator-mode): Remove now redundant :group.

* lisp/cus-dep.el (custom--get-def): New function.
(custom-make-dependencies): Use it.
2020-09-09 13:30:20 -04:00
Michael Albinus
9de9976de0 Adapt Tramp doc
* doc/misc/tramp.texi (Remote shell setup):
Mention password-word-equivalents.

* lisp/net/tramp.el (tramp-password-prompt-regexp): Fix docstring.
2020-09-09 19:29:18 +02:00
Glenn Morris
482fa0d9ed Merge from origin/emacs-27
366a97c980 (origin/emacs-27) Avoid crashes when trying to load bad GI...
7938713105 C++ Mode: handle comma separated brace initializers.
2b95300cf8 * lisp/display-fill-column-indicator.el: Fix bug#41145
2020-09-09 07:51:14 -07:00
Glenn Morris
a5cc0242eb ; Merge from origin/emacs-27
The following commits were skipped:

5489524ab0 Backport recent change in tramp-tests.el from master, don'...
c9708e5ba2 Fix bug in dbus.el; do not merge with master
2020-09-09 07:51:14 -07:00
Glenn Morris
5a9e237e15 Merge from origin/emacs-27
9b35b0c99c ; * lisp/man.el (Man-mode): Fix formatting.
abca75d2e9 ; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"
2020-09-09 07:51:14 -07:00
Glenn Morris
fecdc1a66a ; Merge from origin/emacs-27
The following commit was skipped:

e0a8a7e94c (emacs-27) ; Auto-commit of loaddefs files.
2020-09-09 07:51:14 -07:00
Glenn Morris
baade53cbe Merge from origin/emacs-27
302f71e55d Fix help message with help-window-select
0fb3fc92b3 Remove obsolete "Wide Characters" section of Gnus manual
2020-09-09 07:51:12 -07:00
Michael Albinus
4fa5bad400 Fix thinko in dbus.el
* doc/misc/dbus.texi (Register Objects): Rename from "Receiving
Method Calls".  Add reference to D-Bus API Design document.

* lisp/net/dbus.el (dbus-managed-objects-handler): Fix thinko.

* test/lisp/net/dbus-tests.el (dbus-test05-register-property)
(dbus-test05-register-property-several-paths): Extend tests.
2020-09-09 14:53:26 +02:00
Lars Ingebrigtsen
554c158419 Add the (hopefully) correct debbugs header for patches
* lisp/mail/emacsbug.el (submit-emacs-patch): Mark the submission
as a patch.
2020-09-09 13:06:50 +02:00
Lars Ingebrigtsen
4038b4fee7 Implement a new `submit-emacs-patch' command
* doc/emacs/trouble.texi (Checklist): Mention the new command.

* doc/lispref/intro.texi (Caveats): Ditto.

* lisp/mail/emacsbug.el (emacs-bug--system-description): Factor
out into own function.
(report-emacs-bug): ... from here.
(submit-emacs-patch): New command.
2020-09-09 12:59:33 +02:00
Lars Ingebrigtsen
1ee76735a2 Make the button navigation commands available via a minor mode
* lisp/button.el (button-mode): New minor mode.

* doc/lispref/display.texi (Button Buffer Commands): Mention it.
2020-09-09 12:59:33 +02:00
Andrew G Cohen
7bd6dd065b Make Gnus cache work with nnselect
* lisp/gnus/gnus-cache.el (gnus-cache-possibly-enter-article)
(gnus-cache-possibly-remove-articles)
(gnus-cache-possibly-remove-article): Use originating article info for
nnselect groups.
2020-09-09 17:01:44 +08:00
Andrew G Cohen
c50643cebd Add Gnus function to make a persistent group from a search result
* lisp/gnus/gnus-sum.el (gnus-summary-make-group-from-search): New
command (bound to C-c C-p in summary buffers).
* doc/misc/gnus.texi (What is nnir?): Document it. Correct previous
errors.
* etc/NEWS (Gnus): Mention it.
2020-09-09 09:58:39 +08:00
Lars Ingebrigtsen
45c0bbb921 Allow DEFAULT in format-prompt to be a list
* doc/lispref/minibuf.texi (Text from Minibuffer): Document it.

* lisp/minibuffer.el (format-prompt): Allow DEFAULT to be a list
(and use the first element).  This is how many of the prompting
functions interpret their default parameters.
2020-09-08 23:10:50 +02:00
Win Treese
9c42f1f7f0 Fix crash from clicking on menu bar (bug#34762, bug#26982)
* src/nsmenu.m (ns_update_menubar): Remove extraneous use of
autorelease pool.
2020-09-08 21:49:38 +01:00
Lars Ingebrigtsen
60de60b350 Revert "Use format-prompt in calls to read-from-minibuffer with default value"
This reverts commit 1921d2176b.

The DEFAULT-VALUE here isn't really a default value (since READ is nil), so
don't say there's a default.
2020-09-08 22:41:33 +02:00
Lars Ingebrigtsen
e90054bc31 Doc string update for tramp-password-prompt-regexp
* lisp/net/tramp.el (tramp-password-prompt-regexp): Mention
password-word-equivalents in the doc string.
2020-09-08 22:07:17 +02:00
Daniel Martín
3e5259a268 Use mouse-wheel-up-event in mwheel-tests.el
Enabling mouse-wheel-mode binds two different mouse events, depending
on the operating system. The correct way to check for those events is
by checking mouse-wheel-up-event, as explained in the ELisp manual.

* test/lisp/mwheel-tests.el (mwheel-test-enable/disable): Check
mouse-wheel-up-event instead of mouse-4 to make the test work
irrespective of the platform it's running.
2020-09-08 18:31:15 +02:00
Eli Zaretskii
366a97c980 Avoid crashes when trying to load bad GIF files
* src/image.c (gif_load): Handle the case when GifErrorString
returns NULL.  (Bug#43281)
2020-09-08 19:17:23 +03:00
Glenn Morris
7865b4044d Skip failing cperl test on hydra
* test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-test-bug-10483):
Skip on hydra.nixos.org.
2020-09-08 08:55:23 -07:00
Michael Albinus
6f30679365 * etc/NEWS: Add D-Bus changes. 2020-09-08 16:24:22 +02:00
Michael Albinus
39230fadbc Implement typed D-Bus properties (Bug#43252)
* doc/misc/dbus.texi (Properties and Annotations)
(Receiving Method Call): Document optional type symbol in
`dbus-set-property' and `dbus-register-property'.

* lisp/net/dbus.el (dbus-error-unknown-interface)
(dbus-error-unknown-method, dbus-error-unknown-object)
(dbus-error-unknown-property): New defconsts.
(dbus-peer-handler): Improve error handling.
(dbus-introspect-get-signature): Handle also properties.
(dbus-set-property, dbus-register-property): Allow optional TYPE
symbol for VALUE.  (Bug#43252)
(dbus-property-handler): Implement property types.  Improve error
handling.

* src/dbusbind.c (dbus-message-internal, dbus-registered-objects-table):
Fix docstring.

* test/lisp/net/dbus-tests.el (dbus-test05-register-property):
Extend test.
(dbus-test05-register-property-several-paths): New test.
2020-09-08 16:24:11 +02:00
Andrea Corallo
15acd27d1c * src/comp.c (Fcomp__compile_ctxt_to_file): Don't cleanup caches at bootstrap. 2020-09-08 13:02:45 +02:00
Lars Ingebrigtsen
65565a16cf Revert "Explain in the tab-always-indent doc how to make TAB insert a TAB"
This reverts commit 4b23716311.

overriding-terminal-local-map should apparently not be used for minor stuff like this.
2020-09-08 12:34:42 +02:00
Alex Bochannek
2630bbbcdf Introduce a new Gnus scoring method (for article age)
* doc/misc/gnus.texi (Score File Format): Document it.

* lisp/gnus/gnus-score.el (gnus-score-check-syntax): Add support
for the new date methods < and > (bug#43270).
(gnus-score-date): Allow scoring on dates by age.
2020-09-08 11:47:28 +02:00
João Távora
0fb5425442 Change icomplete-show-matches-on-no-input behaviour for Icomplete only
Fixes: bug#19032, bug#43120

Previous fixes to bug#19032 introduced bugs in Fido mode.  This fix
relies on a new command bound to RET.

* etc/NEWS (Miscellaneous): Mention icomplete-show-matches-on-no-input.

* lisp/icomplete.el (icomplete-show-matches-on-no-input): Add comment.
(icomplete-minibuffer-map): Rebind minibuffer-complete-and-exit to
icomplete-ret.
(icomplete-ret): New command.
2020-09-08 09:47:48 +01:00
João Távora
627e9c191e Revert two commits for bug#19032
This reverts:

- commit 585fe00557, which is titled
  "Fix up previous icomplete-show-matches-on-no-input change"

- commit 1b8d369c38, which is titled
  "Change icomplete-show-matches-on-no-input behavior".

A simpler, less intrusive fix follows shortly after this commit.
2020-09-08 09:47:34 +01:00
Amin Bandali
6ce08a165c
* etc/NEWS: Mention the new erc-status-sidebar.el 2020-09-07 19:07:24 -04:00
Amin Bandali
6fd03b0fbe
* lisp/erc/erc-status-sidebar.el: Fix header and make small tweaks 2020-09-07 19:05:39 -04:00
Andrew Barbarello
4ffc370373
* lisp/erc/erc-status-sidebar.el: New file
Taken from commit 87210a3ccc16a86e6b5992744b68daabed3b2d11
of https://github.com/drewbarbs/erc-status-sidebar.
2020-09-07 19:04:22 -04:00
Andrea Corallo
ff89ec0d36 * Name temp eln files as .eln.tmp so we can't clean-up them mistakenly.
* src/comp.c (Fcomp__compile_ctxt_to_file): Postfix temporary eln
	files as .eln.tmp.
2020-09-08 00:03:16 +02:00
Andrea Corallo
dc4b50ce0b * Do not crash compilation if user eln-cache wasn't already created.
* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Guard
	against calling `directory-files' on non existent directories.
2020-09-07 23:18:36 +02:00
Lars Ingebrigtsen
de4f347901 Use format-prompt in read-file-name calls that have a default
* lisp/xwidget.el (xwidget-webkit-save-as-file):
* lisp/vc/vc.el (vc-backend-for-registration, vc-delete-file)
(vc-rename-file):
* lisp/vc/ediff-ptch.el (ediff-prompt-for-patch-file):
* lisp/vc/diff-mode.el (diff-tell-file-name):
* lisp/progmodes/etags.el (visit-tags-table)
(visit-tags-table-buffer):
* lisp/misearch.el (multi-isearch-read-files):
* lisp/mail/rmailmm.el (rmail-mime-save):
* lisp/help-fns.el (doc-file-to-man, doc-file-to-info):
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-load):
* lisp/files.el (write-file, basic-save-buffer):
* lisp/dired.el (dired-read-dir-and-switches):
* lisp/bookmark.el (bookmark-save, bookmark-load):
* lisp/abbrev.el (write-abbrev-file, abbrev-edit-save-to-file):
Use format-prompt in read-file-name calls that have a default.
2020-09-07 22:10:06 +02:00
Reuben Thomas
151486931c Fix Enchant dictionary finding routine
* lisp/textmodes/ispell.el (ispell-find-enchant-dictionaries): Don’t
  pass `buffer-string' to enchant-lsmod. Remove zero-length substrings
  from the split output of `enchant-lsmod`, as the output ends with a
  separator. Pass the current language to
  `ispell--get-extra-word-characters', so we get the result for the
  current language, not the default language. (Patch from Jorge P. de
  Morais Neto.)
2020-09-07 20:56:58 +01:00
Juri Linkov
0ebe267800 * lisp/char-fold.el (char-fold-to-regexp): Handle lax-whitespace (bug#38539) 2020-09-07 21:33:13 +03:00
Lars Ingebrigtsen
5312e56d43 Fix test failure in custom--test-theme-variables
* test/lisp/custom-tests.el (custom--test-theme-variables): "make
check" in the main directory didn't work because the path was
wrong.  Use EMACS_TEST_DIRECTORY to find the test directory
instead.
2020-09-07 18:19:47 +02:00
Lars Ingebrigtsen
f681c097f2 Require ert in the cperl tests, since it's reloading itself 2020-09-07 18:13:58 +02:00