1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00
Commit graph

148415 commits

Author SHA1 Message Date
Stefan Kangas
6927f23767 * lisp/progmodes/modula2.el: Use lexical-binding. 2021-03-24 06:25:36 +01:00
Stefan Kangas
673d281b82 Use lexical-binding in view.el
* lisp/view.el: Use lexical-binding.  Remove redundant :group args.
2021-03-24 06:15:37 +01:00
Stefan Kangas
a902af6c1b Delete some commented out defgroups
* lisp/eshell/esh-opt.el:
* lisp/international/ccl.el:
* lisp/pcmpl-linux.el:
* lisp/shell.el:
* lisp/url/url-news.el: Delete some commented out defgroups.
2021-03-24 06:15:37 +01:00
Stefan Kangas
e2613f4121 Doc fixes in view.el
* lisp/view.el:
(view-try-extend-at-buffer-end, kill-buffer-if-not-modified)
(view-buffer, view-buffer-other-window, view-buffer-other-frame)
(view-page-size-default, view-set-half-page-size-default)
(view-really-at-end, view-end-message)
(view-search-no-match-lines): Doc fixes.
2021-03-24 06:15:37 +01:00
Stefan Kangas
3a964dc5c1 * lisp/master.el: Use lexical-binding. 2021-03-24 05:32:47 +01:00
Stefan Kangas
ac4dd5f244 Use lexical-binding in ruler-mode.el
* lisp/ruler-mode.el: Use lexical-binding.  Remove redundant
:group args.
2021-03-24 03:47:27 +01:00
Stefan Monnier
952550258d * lisp/progmodes/ebnf-*.el: Use lexical-binding
* lisp/progmodes/ebnf-abn.el:
* lisp/progmodes/ebnf-bnf.el:
* lisp/progmodes/ebnf-dtd.el:
* lisp/progmodes/ebnf-ebx.el:
* lisp/progmodes/ebnf-iso.el:
* lisp/progmodes/ebnf-otz.el:
* lisp/progmodes/ebnf-yac.el: Enable lexical-binding.
* lisp/progmodes/ebnf2ps.el (ebnf-apply-style1)
(ebnf-insert-ebnf-prologue): Use lexical-binding.
2021-03-23 22:38:41 -04:00
Stefan Monnier
667e002e91 * lisp/mh-e: Enable lexical-binding in all the files
* lisp/mh-e/mh-alias.el: Use lexical-binding.
(mh-alias-insert-file): Completion tables can be mere lists of strings.

* lisp/mh-e/mh-mime.el: Use lexical-binding.
(mh-mm-inline-message): Remove always-nil var `visible-headers`.

* lisp/mh-e/mh-search.el: Use lexical-binding.
(mh-search-folder): Remove unused var `pick-folder`.

* lisp/mh-e/mh-show.el: Use lexical-binding.
(mh-display-msg): Remove always-nil var `visible-headers`.

* lisp/mh-e/mh-utils.el: Use lexical-binding.
(completion-root-regexp): Always declare var.

* lisp/mh-e/mh-buffers.el: Use lexical-binding.
* lisp/mh-e/mh-comp.el: Use lexical-binding.
* lisp/mh-e/mh-folder.el: Use lexical-binding.
* lisp/mh-e/mh-funcs.el: Use lexical-binding.
* lisp/mh-e/mh-gnus.el: Use lexical-binding.
* lisp/mh-e/mh-identity.el: Use lexical-binding.
* lisp/mh-e/mh-inc.el: Use lexical-binding.
* lisp/mh-e/mh-junk.el: Use lexical-binding.
* lisp/mh-e/mh-letter.el: Use lexical-binding.
* lisp/mh-e/mh-limit.el: Use lexical-binding.
* lisp/mh-e/mh-print.el: Use lexical-binding.
* lisp/mh-e/mh-scan.el: Use lexical-binding.
* lisp/mh-e/mh-seq.el: Use lexical-binding.
* lisp/mh-e/mh-speed.el: Use lexical-binding.
* lisp/mh-e/mh-thread.el: Use lexical-binding.
* lisp/mh-e/mh-tool-bar.el: Use lexical-binding.
* lisp/mh-e/mh-xface.el: Use lexical-binding.
2021-03-23 01:00:56 -04:00
Stefan Monnier
efd80237ca * lisp/wdired.el: Fix typo in last change.
Reported by Michael Heerdegen <michael_heerdegen@web.de>.

(wdired-change-to-wdired-mode, wdired-change-to-dired-mode):
The `(local FOO)` form takes an expression, so the var needs to be quoted.
2021-03-23 00:08:24 -04:00
Lars Ingebrigtsen
22910e71e5 Mention C-o' in the RET' doc string
* lisp/simple.el (newline-and-indent): Mention `C-o' in the doc
string.
2021-03-22 20:25:37 +01:00
Lars Ingebrigtsen
b9683230ec Fix previous face.el change
* lisp/faces.el (require): Fix compilation warning from previous
face.el change.
2021-03-22 20:18:04 +01:00
Juri Linkov
8c589c2583 * lisp/tab-bar.el (tab-bar-new-tab-group): Set default to t.
(tab-bar-tabs, tab-bar-select-tab, tab-bar-new-tab-to):
Use tab-bar--current-tab-make instead of tab-bar--current-tab.
(tab-bar--tab): Add arg 'frame' to tab-bar--current-tab-find.
(tab-bar--current-tab, tab-bar--current-tab-make): Move most of body
from the former to the latter, thus reverting tab-bar--current-tab
to its previous behavior.
https://lists.gnu.org/archive/html/emacs-devel/2021-03/msg00959.html
2021-03-22 20:55:49 +02:00
Lars Ingebrigtsen
add90dcc8a Use read-color in read-face-attribute for color attributes
* lisp/faces.el (read-face-attribute): Use read-color when
prompting for a color (bug#47316).
2021-03-22 19:50:22 +01:00
Michael Albinus
4d944f6ddb * lisp/files-x.el (connection-local-criteria-for-default-directory):
Add optional argument APPLICATION.
2021-03-22 17:47:45 +01:00
Stefan Kangas
cb5d1fe1aa Remove unnecessary requires of rx
* lisp/cedet/semantic/wisent/python.el (rx):
* test/src/process-tests.el (rx): Remove unnecessary requires.
2021-03-22 01:06:32 +01:00
Stefan Kangas
aa21273788 Use lexical-binding in notifications.el
* lisp/notifications.el: Use lexical-binding.
(notifications-notify): Prefer 'push' to 'add-to-list'.
2021-03-22 01:06:32 +01:00
Andrea Corallo
7ba816ee1c * lisp/emacs-lisp/comp.el (comp-lookup-eln): Add autoload cookie. 2021-03-21 21:55:13 +01:00
Andrea Corallo
5ae0a728c0 ; * src/comp.c (Fcomp_el_to_eln_filename): Improve docstring. 2021-03-21 21:50:22 +01:00
Andrea Corallo
6351953dcd * lisp/emacs-lisp/comp.el (comp-lookup-eln): Add new function. 2021-03-21 21:50:22 +01:00
Andrea Corallo
5aa42f686c Prevent unnecessary multiple .el hashing in 'maybe_swap_for_eln'
* src/comp.c (Fcomp_el_to_eln_rel_filename): New function.
	(Fcomp_el_to_eln_filename): Make use of.
	(syms_of_comp): Register 'Scomp_el_to_eln_rel_filename'.
	* src/lread.c (maybe_swap_for_eln): Make use of
	'Fcomp_el_to_eln_rel_filename' to hash prevent unnecessary
	multiple hashing.
2021-03-21 20:45:03 +01:00
Andrea Corallo
ec12cdd197 ; * test/Makefile.in (TEST_HOME): Add a note. 2021-03-21 19:39:52 +01:00
Alan Mackenzie
7c2ebf6e23 Prevent open minibuffers getting lost when their frame gets deleted
This happened with minibuffer-follows-selected-frame set to t.

* doc/emacs/mini.texi (Basic Minibuffer): State where a command's action takes
place when a minibuffer's frame has been deleted.

* lisp/window.el (window--before-delete-windows, record-window-buffer): Take
into account that minibuffers are now recorded on w->prev_buffers field.

* src/fns.c (merge_c): New version of `merge' taking a C function, rather than
a Lisp function as the comparison function.

* src/frame.c (do_switch_frame): Pass arguments sf and for_deletion to
move_minibuffers_onnto_frame.

* src/lisp.h (top level): Declare merge_c and
move_minibuffers_onto_selected_frame.

* src/minibuf.c (MB_frame): New Lisp_Object recording the minibuffer's frame.
(choose_minibuf_frame): Remove all code except that which sets minibuf_window
to the current frame's minibuffer.
(minibuffer_ent_greater): New comparison function, passed to merge_c.
(zip_minibuffer_stacks): New function.
(move_minibuffers_onto_frame): Renamed from `move_minibuffer_onto_frame' given
two arguments, the old frame and for_deletion, and simplified.  Minibuffers
are now stacked in the mini-window's ->prev_buffers field.
(read_minibuf): Several detailed amendments.
(exp_MB_frame): New Lisp_Object, the expired minibuffer's frame.
(read_minibuf_unwind): Search for the expired minibuffer's frame, rather than
taking it from (unreliable) variables.  Switch temporarily to this frame for
tidying up operations.
(minibuffer_unwind): New function which pops a stacked minibuffer.
(syms_of_minibuf): Call staticpro for the two new Lisp variables.

* src/window.c (Fset_window_configuration): Don't record minibuffers with
record-window-buffer.

* src/xdisp.c (gui_consider_frame_title): Remove redundant Fselect_window,
which caused an unwanted frame switch.  Amend the arguments to
format_mode_line_unwind_data to match.
2021-03-21 16:54:31 +00:00
Andrea Corallo
af739863b0 Add a tmp dir to `comp-eln-load-path' when running the testsuite.
* lisp/startup.el (normal-top-level): Tweak `comp-eln-load-path'
	adding a temp directory when running the testsuite.
2021-03-21 17:26:40 +01:00
Glenn Morris
e276810dff * lisp/thumbs.el (thumbs-conversion-program): Simplify.
/usr/bin is (normally) always in PATH, and this need not be absolute,
so the executable-find is unnecesary.
2021-03-21 09:15:51 -07:00
Stefan Kangas
574eadbdaf Actually use lexical-binding in wid-browse.el
* lisp/wid-browse.el: Use lexical-binding.  I apparently forgot to
commit the lexical-binding cookie in my previous attempt.
2021-03-21 17:05:48 +01:00
Andrea Corallo
d0280ce1b1 Revert "* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all..."
This reverts commit be22cda7be.

Older binaries might still need those .eln if they where preloaded.
2021-03-21 15:34:38 +01:00
Theodor Thornhill
70b64e0d04 Use pop-to-buffer-same-window for shell
* lisp/progmodes/project.el (project-shell): Behave the same way as
'M-x project-eshell'.
* lisp/shell.el (shell): Behave the same way as 'M-x eshell'.
* etc/NEWS: Add news entry describing the change.
* lisp/tutorial.el: Use lexical-binding.
2021-03-21 14:40:32 +02:00
Andrea Corallo
08682ccc31 ; Remove two unnecessary quotes
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-=): Remove unnecessary
	quote.
	* lisp/emacs-lisp/comp.el (comp-compile-ctxt-to-file): Likewise.
2021-03-21 09:28:25 +01:00
Andrea Corallo
be22cda7be * lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all .eln dirs. 2021-03-21 09:15:25 +01:00
Zhiwei Chen
3cbf92323c Allow hide-ifdef-guts to work in buffers not visiting files
* lisp/progmodes/hideif.el (hide-ifdef-guts): Allow working in
buffers not visiting files (bug#47279).

Copyright-paperwork-exempt: yes
2021-03-21 08:17:41 +01:00
Stefan Kangas
e9e691093a * lisp/tutorial.el: Use lexical-binding. 2021-03-21 02:28:20 +01:00
Stefan Monnier
f27a9a341f * lisp/cedet/semantic/ia.el (semantic-ia-complete-symbol): Simplify
Cut the `semantic-ia-get-completions-deprecated` middle man.
2021-03-20 20:39:01 -04:00
Stefan Kangas
dee2f914f3 Remove support for Syndic8.com, defunct since 2013
* lisp/gnus/nnrss.el (nnrss-discover-feed)
(nnrss-find-rss-via-syndic8): Remove support for Syndic8.com, as
the site was shut down in 2013.
2021-03-20 16:47:16 +01:00
Eli Zaretskii
b4a125e5ad ; * etc/NEWS: Minor improvement to the last change. 2021-03-20 12:11:04 +02:00
Eli Zaretskii
a9e7ea47b9 ; Improve a recent change in NEWS
* etc/NEWS: Enhance the description of how to get the old bindings
removed with the 'M-o' keymap.
2021-03-20 11:08:25 +02:00
Toby Cubitt
e33c2bfbf3 Fix cl-progv binding order
* lisp/emacs-lisp/cl-macs.el (cl-progv): Bind variables in the
correct order (bug#47272).
2021-03-20 10:01:19 +01:00
Gregory Heytings
f85b66d9b0 * etc/NEWS: Small corrections for the new command 'font-lock-update' 2021-03-20 10:01:19 +01:00
Stefan Kangas
1f63f704d1 Remove Gnus specific .dir-locals.el
* lisp/gnus/.dir-locals.el: Delete file.  The only variable it set was
'show-trailing-whitespace', but this should be up to the individual
developer.  (Bug#47278)
2021-03-20 10:00:28 +01:00
Stefan Kangas
990e748cd0 Prefer https and fix broken links in ERC
* lisp/erc/erc-button.el (erc-button-rfc-url)
(erc-button-search-url): Prefer https.
* lisp/erc/erc-capab.el:
* lisp/erc/erc.el (erc-cmd-MODE): Fix broken links.
2021-03-20 10:00:28 +01:00
Stefan Kangas
f6d7e2e8f9 * lisp/thumbs.el (thumbs-show-from-dir): Improve prompt. 2021-03-20 10:00:28 +01:00
Eli Zaretskii
729eae14eb Fix args-out-of-range error in format.el
* lisp/format.el (format-deannotate-region): Ignore todo items
with FROM > TO.  (Bug#47277)
2021-03-20 10:48:07 +02:00
Paul Eggert
31544bc908 Don’t convert pointer to bool
Without this patch, Oracle Studio 12.6 complains about converting
pointer to bool.
* src/editfns.c (styled_format): Use !!.
2021-03-19 17:48:00 -07:00
Stefan Kangas
0eeb865aae Assume something more recent than X11R6
* lisp/bindings.el:
* lisp/menu-bar.el:
* lisp/printing.el:
* lisp/thumbs.el (thumbs-conversion-program): Assume we have something
more recent than X11R6.
2021-03-20 01:26:21 +01:00
Stefan Kangas
7607d1c4e8 Use lexical-binding in thumbs.el
* lisp/thumbs.el: Use lexical-binding.  Remove redundant :group args.
* test/lisp/thumbs-tests.el: New file.
2021-03-20 01:11:47 +01:00
Stefan Kangas
26dc070fa9 * lisp/novice.el: Use lexical-binding. 2021-03-20 00:34:02 +01:00
Stefan Monnier
64f37487e2 * lisp/wdired.el: Use lexical-binding
Remove redundant `:group` args.

(wdired-change-to-wdired-mode): Use `add-function` to modify
`revert-buffer-function`.
(wdired-change-to-dired-mode): Adjust accordingly.
(wdired-do-renames): Make sure to bind `dired-backup-overwrite` dynamically.
2021-03-19 19:04:27 -04:00
Stefan Kangas
115c7bcfc6 Don't tag mouse command as mode exclusive
* lisp/finder.el (finder-mouse-select): Don't tag for finder-mode.
2021-03-20 00:00:49 +01:00
Stefan Monnier
bf210251ea * lisp/emacs-lisp/bytecomp.el: Remember location of unresolved calls
I've gotten tired of seeing the "function foo not known to be defined"
warning without any line number information.  So this patch adds as
line number the position of the first use of that function in the file
(well, approximately, as usual).

(byte-compile-unresolved-functions): Add POSITIONs in the alist.
(byte-compile-function-warn): Store the current position in
`byte-compile-unresolved-functions`.
(byte-compile-arglist-warn): Adjust accordingly.
(byte-compile-print-syms): Delete unused function.
(byte-compile-warn-about-unresolved-functions): Use the stored position
to give more precise warnings.
2021-03-19 18:33:46 -04:00
Stefan Monnier
937b6c18bd * lisp/emacs-lisp/pcase.el (pcase-compile-patterns): New function (bug#47261)
Extracted from `pcase--expand`.
(pcase--expand): Use it.
2021-03-19 17:42:22 -04:00
Andrea Corallo
6ca6c71cd0 Merge remote-tracking branch 'savannah/master' into native-comp 2021-03-19 15:28:00 +01:00