1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
Commit graph

146147 commits

Author SHA1 Message Date
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
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
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
Eli Zaretskii
3af2cee64b Improve the docs of a recent change in mb-depth.el
* lisp/mb-depth.el (minibuffer-depth-indicator-function): Improve
the wording of the doc string and of the label used for the
default value.  (Bug#47252)
2021-03-19 14:46:15 +02:00
Mauro Aranda
1971a3185f Fix :type of recently introduced defcustom
* lisp/mb-depth.el (minibuffer-depth-indicator-function): The option
can be nil, so add nil as a choice.  (Bug#47252)
2021-03-19 05:50:55 -03:00
Gabriel do Nascimento Ribeiro
2407080875 Make minibuffer-depth-indicator-function a defcustom
* lisp/mb-depth.el (minibuffer-depth-indicator-function): Make
into a user option (bug#47252).
2021-03-19 09:37:55 +01:00
Lars Ingebrigtsen
2c3340909a Warn the user if we can't find pkg-config
* configure.ac (WITH_IFAVAILABLE): Warn the user if we can't find
a usable pkg-config (bug#47159).
2021-03-19 08:58:32 +01:00
Lars Ingebrigtsen
04a90d7695 Add a note to NEWS as to how to restore the facemenu 2021-03-19 08:44:19 +01:00
Eli Zaretskii
deef5efafb ; * ChangeLog.3: Update with the log of the last change. 2021-03-19 03:16:54 -04:00
Stefan Monnier
b815445cea Fix copyright lines mistakenly treated as outline headers
* lisp/emacs-lisp/generator.el:
* test/lisp/cedet/semantic-utest.el:
* test/lisp/cedet/semantic/format-tests.el:
* test/lisp/cedet/semantic/fw-tests.el:
* test/lisp/cedet/semantic/bovine/gcc-tests.el:
* test/lisp/cedet/semantic/format-resources/test-fmt.el:
* test/manual/cedet/semantic-tests.el:
* lisp/obsolete/inversion.el: Use only 2 semi-colons before "Copyright".
2021-03-18 23:32:57 -04:00
Stefan Monnier
f463633f00 lisp/erc: Use lexical-binding
Also remove various redundant `:group` arguments.

* lisp/erc/erc-backend.el (define-erc-response-handler): Move `declare`
after the docstring.

* lisp/erc/erc-capab.el: Use lexical-binding.
(erc-capab-identify-activate): Simplify with `member`.

* lisp/erc/erc-dcc.el (erc-dcc): Move before erc-dcc-mode definition,
which refers to it.
(erc-dcc-chat-accept): Remove unused vars `nick` and `buffer`.

* lisp/erc/erc-imenu.el: Use lexical-binding.
(erc-create-imenu-index): Remove unused var `prev-pos`.

* lisp/erc/erc-match.el: Use lexical-binding.
(erc-match-message): Remove unused var `old-pt`.
(erc-match-message): Strength-reduce `eval` to `symbol-value`.

* lisp/erc/erc-page.el: Use lexical-binding.
(erc-page): Move Custom group before `erg-page-mode` which refers to it.

* lisp/erc/erc-replace.el: Use lexical-binding.
(erc-replace-insert): Use `functionp`.

* lisp/erc/erc-status-sidebar.el: Use lexical-binding.
(erc-status-sidebar-open): Remove unused var `sidebar-window`.

* lisp/erc/erc.el: Fix header to use the customary 3 semi-colons.
(erc-fill-column): Declare variable.

* lisp/erc/erc-autoaway.el: Use lexical-binding.
* lisp/erc/erc-ezbounce.el: Use lexical-binding.
* lisp/erc/erc-fill.el: Use lexical-binding.
* lisp/erc/erc-goodies.el: Use lexical-binding.
* lisp/erc/erc-ibuffer.el: Use lexical-binding.
* lisp/erc/erc-identd.el: Use lexical-binding.
* lisp/erc/erc-join.el: Use lexical-binding.
* lisp/erc/erc-lang.el: Use lexical-binding.
* lisp/erc/erc-log.el: Use lexical-binding.
* lisp/erc/erc-menu.el: Use lexical-binding.
* lisp/erc/erc-netsplit.el: Use lexical-binding.
* lisp/erc/erc-networks.el: Use lexical-binding.
* lisp/erc/erc-pcomplete.el: Use lexical-binding.
* lisp/erc/erc-ring.el: Use lexical-binding.
* lisp/erc/erc-speedbar.el: Use lexical-binding.
* lisp/erc/erc-spelling.el: Use lexical-binding.
* lisp/erc/erc-truncate.el: Use lexical-binding.
* lisp/erc/erc-xdcc.el: Use lexical-binding.
2021-03-18 23:14:33 -04:00
Stefan Kangas
050b830b69 Do interactive mode tagging for finder.el 2021-03-19 02:22:25 +01:00
Stefan Kangas
6f20f56304 Use lexical-binding in finder.el
* lisp/finder.el: Use lexical-binding.
(finder-mode-map, finder-compile-keywords): Remove unused lexical
variables.
2021-03-19 02:18:49 +01:00
Stefan Kangas
0a305dffb8 Fix a warning due to not preloading facemenu.el
* test/src/undo-tests.el (facemenu): Require.
2021-03-19 02:12:01 +01:00
Stefan Kangas
47e85dae33 * lisp/faces.el (help-key-binding): Tweak background. 2021-03-18 23:36:26 +01:00
Basil L. Contovounesios
bd991e3c9b Fix frame-inner-height in non-GUI builds
Include tab bar in frame's inner height in non-GUI builds that don't
define tab-bar-height.  This is consistent with the inclusion of the
menu bar in the calculated height.  It is also consistent with TTY
frames of GUI builds, for which tab-bar-height is always zero
anyway (bug#47234).  Fix suggested by Eli Zaretskii <eliz@gnu.org>.

* lisp/frame.el (frame-inner-height): Don't assume tab-bar-height is
defined in builds --without-x.
2021-03-18 22:13:05 +00:00
Stefan Monnier
236aad4f8c * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Optimize the "return nil" case 2021-03-18 17:54:43 -04:00
Stefan Monnier
a9a4af6ff1 * test/lisp/progmodes/cperl-mode-tests.el: Silence warnings
(cperl-test-bug-47112): Actually obey the major-mode for the test.
2021-03-18 14:32:36 -04:00
Juri Linkov
5c93063129 * lisp/newcomment.el: Allow 'comment-continue' with whitespace (bug#47167)
* lisp/newcomment.el (comment-region-default-1): Still use 'comment-continue'
as a string with whitespace even when 'comment-padright' returns nil.
2021-03-18 20:01:26 +02:00
Juri Linkov
b0902d926d * lisp/simple.el (next-error-quit-window): New function (bug#44611).
(next-error-found-function): Add it as a choice.
2021-03-18 19:56:45 +02:00
Glenn Morris
d3dbf017c8 ; ChangeLog.3 fix
admin/make-tarball.txt:
"It's best not to commit these files until the release is actually made"
2021-03-18 09:16:10 -07:00
Glenn Morris
c0be4754d7 * admin/make-tarball.txt: Be kind to people merging branches. 2021-03-18 09:03:03 -07:00
Glenn Morris
b72ddbdfff Merge from origin/emacs-27
d5b160d7cc (tag: emacs-27.2-rc1, origin/emacs-27) Prepare the Emacs 2...
216bd67a4f ; * admin/make-tarball.txt: Advise to remove stale subdire...

# Conflicts:
#	ChangeLog.3
#	README
#	configure.ac
#	etc/AUTHORS
#	etc/NEWS
#	lisp/ldefs-boot.el
#	msdos/sed2v2.inp
#	nt/README.W32
2021-03-18 08:52:48 -07:00
Glenn Morris
94821a1249 ; Merge from origin/emacs-27
The following commit was skipped:

7ae4588bb4 Document that `buffer-string' retains text properties
2021-03-18 08:50:32 -07:00
Glenn Morris
29ca91f3d9 Merge from origin/emacs-27
a7f95d5244 Remove duplicate @table item from ELisp manual
be1b3512f7 Fix reference to 'diff-font-lock-syntax' in diff-mode docu...
2021-03-18 08:50:32 -07:00
Glenn Morris
88ab1d1cc4 ; Merge from origin/emacs-27
The following commit was skipped:

b9ec6111e2 Fix buffer overflow in xbm_scan (bug#47094)
2021-03-18 08:50:32 -07:00
Glenn Morris
d92b725ffc Merge from origin/emacs-27
f60eb988f6 Fix typos and omissions for (elisp)Button Buffer Commands
876b95bf90 Teach Rmail about NBSP in "Re:"

# Conflicts:
#	lisp/mail/rmail.el
2021-03-18 08:50:32 -07:00
Glenn Morris
843eb21573 ; Merge from origin/emacs-27
The following commit was skipped:

a2960025e8 Revert "* lisp/mouse.el: Fix mouse-1-clock-follows-mouse =...
2021-03-18 08:44:16 -07:00
Eli Zaretskii
d5b160d7cc Prepare the Emacs 27.2 release.
* etc/HISTORY: Update for Emacs 27.2.

* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp: Set version to 27.2
2021-03-18 08:43:54 -04:00
Mattias Engdegård
52270aa0dc Optimise tail calls in and and or forms in cl-labels functions
* lisp/emacs-lisp/cl-macs.el (cl--self-tco): Handle `and` and `or`.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels):
Add test cases.
2021-03-18 13:35:55 +01:00
Michael Albinus
ce1b4acd71 Extend handled events in 'while-no-input-ignore-events' (Bug#47205)
* etc/NEWS: Mention changes to 'while-no-input-ignore-events'.

* src/keyboard.c (kbd_buffer_store_buffered_event): Handle also
Qfile_notify and Qdbus_event as ignore_event.  (Bug#47205)
2021-03-18 12:43:35 +01:00