1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

139267 Commits

Author SHA1 Message Date
Eli Zaretskii
5fd1c086e7 Fix handling of mouse events on header line with tab-line
* src/window.c (coordinates_in_window): Fix conditions for
coordinates being on the window's header line when that
window also displays a tab-line.  (Bug#37807)
2019-10-18 17:55:21 +03:00
Mattias Engdegård
6331d23de3 Use [^z-a] for matching any character (anychar/anything) in rx
* lisp/emacs-lisp/rx.el (rx--translate-symbol):
* test/lisp/emacs-lisp/rx-tests.el (rx-any, rx-atoms):
Use [^z-a] instead of ".\\|\n" for anychar.

The new expression is faster (about 2×) and does not allocate regexp
stack space.  For example, (0+ anychar) now matches strings of any
size (bug#37659).
2019-10-18 14:46:12 +02:00
Mattias Engdegård
ae5407b857 Add `unmatchable' as alias for (or) in rx (bug#37659)
* lisp/emacs-lisp/rx.el (rx--translate-symbol, rx--builtin-symbols, rx):
* test/lisp/emacs-lisp/rx-tests.el (rx-atoms):
* doc/lispref/searching.texi (Rx Constructs):
* etc/NEWS:
Add `unmatchable', more descriptive than (or), and corresponding to
the variable `regexp-unmatchable'.
2019-10-18 14:46:06 +02:00
Mattias Engdegård
e5a446b0a7 Add anychar' as alias to anything' in rx (bug#37659)
* lisp/emacs-lisp/rx.el (rx--translate-symbol, rx--builtin-symbols, rx):
* test/lisp/emacs-lisp/rx-tests.el (rx-atoms):
* doc/lispref/searching.texi (Rx Constructs):
* etc/NEWS:
Add `anychar', an alias for `anything'.  Since `anychar' is more
descriptive (and slightly shorter), treat it as the preferred name.
2019-10-18 14:45:47 +02:00
Michael Heerdegen
2d13a3f68d Extend debug spec of cl-flet (Bug#34481)
* lisp/emacs-lisp/cl-macs.el (cl-flet): Extend debug spec to cover
definitions of the form (FUNC EXP).
2019-10-17 20:13:40 +02:00
Stefan Kangas
0a70727c40 Port snake menu to Emacs
* lisp/play/snake.el (snake--menu-def): New constant.
(snake-mode-menu, snake-null-menu): Add a menu.
(snake-mode): Remove XEmacs compat code.
(snake-mode-map, snake-null-map): Add docstring.
2019-10-17 19:39:29 +02:00
Martin Rudalics
34923412b5 In 'bury-buffer' don't try to remove current buffer from minibuffer window
* lisp/window.el (bury-buffer): Don't try to remove current buffer
from minibuffer window.
2019-10-17 19:35:29 +02:00
Eli Zaretskii
9e44d3373b * lisp/recentf.el (recentf-mode): Doc fix. (Bug#37772) 2019-10-17 20:10:35 +03:00
Eli Zaretskii
046ac48381 * lisp/dired.el (dired-auto-revert-buffer): Doc fix. (Bug#37771) 2019-10-17 20:07:16 +03:00
Stefan Kangas
dc0a218f62 Port tetris menu to Emacs
* lisp/play/tetris.el (tetris--menu-def): New constant.
(tetris-mode-menu, tetris-null-menu): Add a menu.
(tetris-mode): Remove XEmacs compat code.
(tetris-null-map, tetris-mode-map): Add docstring.
2019-10-17 18:49:33 +02:00
Michael Albinus
96f9595219 * lisp/shell.el (shell): Make shell buffer the current buffer. (Bug#37745) 2019-10-17 18:46:53 +02:00
Stefan Kangas
d1aafe02c3 Remove XEmacs compat code from ffap.el
* lisp/ffap.el (ffap-what-domain): Remove XEmacs compat code.
2019-10-17 15:25:07 +02:00
Stefan Kangas
dc05cf1206 Remove XEmacs compat code from imap.el
* lisp/net/imap.el (imap-disable-multibyte): Declare obsolete.
(imap-log, imap-open): Remove XEmacs compat code.
2019-10-17 14:06:24 +02:00
Stefan Kangas
4531d2bc63 Remove obsolete XEmacs references from manuals
* doc/misc/erc.texi:
* doc/misc/eshell.texi:
* doc/misc/htmlfontify.texi:
* doc/misc/remember.texi:
* doc/misc/sieve.texi:
* doc/misc/viper.texi: Remove obsolete XEmacs references.
2019-10-17 13:56:42 +02:00
Stefan Kangas
913a14d3d1 Remove XEmacs reference from viper refcard
* etc/refcards/viperCard.tex: Remove reference to XEmacs.
2019-10-17 13:19:18 +02:00
Stefan Kangas
96fe257e73 Remove XEmacs compat code from tcl.el
* lisp/progmodes/tcl.el (tcl-mode): Remove XEmacs compat code.
(tcl-popup-menu): Declare obsolete.
2019-10-17 13:13:05 +02:00
Stefan Kangas
bf5a72ac94 Remove XEmacs reference from erc-button.el todo
* lisp/erc/erc-button.el: Remove reference to XEmacs from a todo item.
2019-10-17 13:05:18 +02:00
Stefan Kangas
70eeae8f93 Remove commented out XEmacs compat code from po.el
* lisp/textmodes/po.el: Remove commented out XEmacs compat code.
2019-10-17 13:05:18 +02:00
Stefan Kangas
3cf92da6fa Improve documentation of shell-command-prompt-show-cwd
* doc/emacs/misc.texi (Single Shell):
* lisp/simple.el (shell-command): Document
'shell-command-prompt-show-cwd'.  (Bug#4987)
2019-10-17 12:55:25 +02:00
Peter Oliver
f75f90a5dd Allow vc-sccs-diff to work with TRAMP
* lisp/vc/vc-sccs.el (vc-sccs-diff): If the diff command is to be
run remotely, then the temporary files it's acting on must be
remote too (bug#37777).

Copyright-paperwork-exempt: yes
2019-10-17 04:43:38 +02:00
Andrii Kolomoiets
1610d67051 Add ui.report_untrusted=0 to vc-hg log commands
* lisp/vc/vc-hg.el (vc-hg-state-slow, vc-hg-merge-branch)
(vc-hg-command): Add "--config" "ui.report_untrusted=0" to the
log commands to avoid "Hg-not trusting file " messages in the mode
line (bug#31497).

Copyright-paperwork-exempt: yes
2019-10-17 04:25:31 +02:00
Juanma Barranquero
3ad407005b lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nil
* lisp/progmodes/flymake-proc.el (flymake-proc--find-buffer-for-file):
Doc fix; return value is a buffer, not t.

* lisp/progmodes/ebrowse.el (ebrowse-member-display-p):
Doc fix; return value is the MEMBER argument, not nil.

* lisp/files.el (hack-one-local-variable-eval-safep):
* lisp/play/doctor.el (doctor-nounp, doctor-pronounp):
* lisp/progmodes/flymake-proc.el (flymake-proc--check-include):
* lisp/progmodes/js.el (js--broken-arrow-terminates-line-p):
Doc fix; a non-nil return value is not always t.

* lisp/image.el (image-type-available-p):
* lisp/simple.el (region-active-p):
* lisp/window.el (frame-root-window-p):
* src/buffer.c (Fbuffer_live_p):
* src/image.c (Finit_image_library):
* src/window.c (Fwindow_minibuffer_p):
Doc fix; a non-nil return value is always t.

* doc/lispref/minibuf.texi (Minibuffer Windows): Doc fix.
2019-10-17 02:45:06 +02:00
Juanma Barranquero
2bb0703e24 lisp/*.el: Force non-nil result to t, to match docstring
* lisp/emacs-lock.el (emacs-lock-live-process-p):
* lisp/shadowfile.el (shadow-file-match):
* lisp/emacs-lisp/edebug.el (edebug-basic-spec):
* lisp/mail/rmail.el (rmail-expunge-confirmed):
* lisp/net/soap-client.el (soap-should-encode-value-for-xs-element):
* lisp/progmodes/idlwave.el (idlwave-quoted):
* lisp/progmodes/idlw-shell.el (idlwave-shell-filename-string):
* lisp/textmodes/refbib.el (r2b-isa-proceedings):
* lisp/textmodes/texnfo-upd.el (texinfo-find-lower-level-node):
Normalize boolean result.
2019-10-17 02:08:43 +02:00
Juanma Barranquero
d502f0c4b5 * lisp/wid-edit.el (widget-default-active): Normalize boolean result. 2019-10-16 15:42:41 +02:00
Juanma Barranquero
4d65821bf0 Add/fix documentation for widget-apply
* doc/misc/widget.texi (Widget Properties): Document `widget-apply'.

* src/fns.c (Fwidget_apply): Document return value (used in many
places).
2019-10-16 15:39:42 +02:00
Michael Albinus
b70f885d58 Adapt Tramp's sudo method for non-default shells (Bug#31924)
* lisp/net/tramp-sh.el (tramp-methods) <sudo>: Change template.
(tramp-maybe-open-connection): Remove `tramp-login-env'.  (Bug#31924)

* lisp/net/tramp.el (tramp-methods): Remove docstring for `tramp-login-env'.
2019-10-16 15:09:46 +02:00
Juanma Barranquero
b6babe9b44 lisp/speedbar.el: Fix computation of boolean return values
* lisp/speedbar.el (speedbar-check-vc-this-line):
Normalize boolean result.
(speedbar-this-file-in-vc): Use `run-hook-with-args-until-success'
to check for files under versin control.  Doc fix.
2019-10-16 14:37:06 +02:00
Michael Albinus
287f5f1fa4 * etc/NEWS: Apply "user option" when possible. Fix other oddities. 2019-10-16 12:15:29 +02:00
Martin Rudalics
d68e8495e0 Handle top margin change in adjust_frame_size
* src/frame.c (adjust_frame_size): Handle case where only
pseudo windows changed height so the top margin has to be
adjusted.
* src/window.c (Fset_window_configuration): Call
adjust_frame_size with inhibit 4.
2019-10-16 11:02:56 +02:00
Lars Ingebrigtsen
068b4fce52 Expand <<- heredocs in sh
* lisp/progmodes/sh-script.el (sh--maybe-here-document): Make <<-
expansion work, too.
2019-10-16 09:20:15 +02:00
Robert Pluim
265061d4c2 Allow event description to be empty
The previous fix for this was incomplete.

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry):
Allow description to be nil.
2019-10-16 08:14:49 +02:00
Lars Ingebrigtsen
a1dbb81f18 Fix some &rest body edebug specs
* lisp/ses.el (ses--letref):

* lisp/emacs-lisp/crm.el (crm--completion-command): Fix edebug
&rest body spec (bug#28747).

* lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):

* lisp/emacs-lisp/inline.el (inline--leteval)
(inline--letlisteval, inline-letevals):
2019-10-16 04:44:22 +02:00
Lars Ingebrigtsen
7fd1093d28 Tweak heredoc expansion in shell-script-mode
* lisp/progmodes/sh-script.el (sh--maybe-here-document): Allow
expanding <<E, too.
2019-10-16 03:47:12 +02:00
Juri Linkov
2912de1e10 Declare tab-bar-tabs the single source of truth in regard to current tab name
* lisp/tab-bar.el: Replace all calls of tab-bar-tabs
with '(funcall tab-bar-tabs-function)'.
(tab-bar-tabs): Update the current tab name here
instead of tab-bar-make-keymap-1.
(tab-bar-make-keymap-1): Move the current tab name updating
to tab-bar-tabs.
2019-10-16 00:42:31 +03:00
Robert Cochran
bf112e23ef Allow tabs to have consistent given names
* lisp/tab-bar.el (tab-bar--tab): Pull automatic name information from
current tab
(tab-bar--current-tab): Pull automatic name information from current
tab, or from new optional template argument
(tab-bar-select-tab): Pass the target tab as a template when setting
it as current tab
(tab-bar-rename-tab, tab-bar-rename-tab-by-name): New functions
* doc/emacs/frames.texi (Tab Bars): Document new tab rename functionality.
2019-10-16 00:04:40 +03:00
Juri Linkov
56a7c60872 * lisp/tab-bar.el (tab-bar-select-tab-modifiers): New defcustom.
(tab-bar-mode): Use tab-bar-select-tab-modifiers to bind
tab-bar-select-tab.
Don't override user customized key bindings of C-TAB, C-S-TAB.
On disabling tab-bar-mode, unset only keys bound by tab-bar.
2019-10-15 23:38:18 +03:00
Juri Linkov
ffa9054698 Don't use expand-file-name to find images for tabs.
* lisp/tab-bar.el (tab-bar-mode):
* lisp/tab-line.el (tab-line-new-button, tab-line-close-button):
Remove expand-file-name with data-directory.
2019-10-15 22:44:10 +03:00
Juri Linkov
4509aaa5b0 New variable tab-bar-position
* lisp/cus-start.el: Add customization for tab-bar-position.
* src/dispnew.c (syms_of_display): New variable Vtab_bar_position.
(adjust_frame_glyphs_for_window_redisplay): Use it.
2019-10-15 22:41:40 +03:00
Stefan Monnier
6ac99ebb3f * lisp/rect.el (string-rectangle): Inherit input method in minibuffer 2019-10-15 11:08:18 -04:00
Eric Ludlam
06114b79a5 Fix test data broken by removing trailing whitespace. 2019-10-15 11:08:18 -04:00
Eric Ludlam
26f5edf0c8 Adapt the CEDET SRecoder getset tests to use ERT
These tests were copied from CEDET from SourceForge.
Author: Eric Ludlam <zappo@gnu.org>
2019-10-15 11:08:18 -04:00
Eric Ludlam
57a786db5a Adapt the CEDET SRecoder template test to use ERT
These tests were copied from CEDET from SourceForge.
Author: Eric Ludlam <zappo@gnu.org>
2019-10-15 11:08:18 -04:00
Eric Ludlam
3f8915a019 Copy CEDET/Semantic's tag formatter test suite to be an
automated test.
These tests were copied from CEDET on Sourceforge and adapted to use ERT.
Author: Eric Ludlam <zappo@gnu.org>
2019-10-15 11:08:18 -04:00
Eric Ludlam
128f803197 Update CEDET manual tests so that they run.
To run visit test/manual/cedet/cedet-utests.el
M-x eval-buffer
M-x cedet-utest
Author: Eric Ludlam <zappo@gnu.org>
2019-10-15 11:08:18 -04:00
Eric Ludlam
a99812ee0f Convert manual CEDET tests from test/manual/cedet to be
automated tests in test/lisp/cedet.
Author: Eric Ludlam <zappo@gnu.org>
2019-10-15 11:08:18 -04:00
Robert Pluim
68df7d7069 Fix duplicated words in lispref
* doc/lispref/text.texi (Base 64):
* doc/lispref/internals.texi (Window Internals): Remove duplicated
words.
2019-10-15 14:41:43 +02:00
Robert Pluim
eda385266e Fix duplicated words in comments
* src/coding.c (encode_string_utf_8):
* src/keyboard.c (syms_of_keyboard):
* src/mini-gmp.c (gmp_lucas_mod, mpz_export):
* src/pdumper.c (dump_set_referrer, dump_queue_compute_score):
* src/timefns.c (Ftime_convert): Remove duplicated words.
2019-10-15 14:28:59 +02:00
Eli Zaretskii
c76b968374 Fix recording keyboard macros in Calc
* lisp/calc/calc.el (calc-unread-command): Prevent recording
key twice when defining a keyboard macro.  Patch by Christoph
Arenz <tiga.arenz@web.de>.

Copyright-paperwork-exempt: yes
2019-10-15 15:09:55 +03:00
Daiki Ueno
fcb89237d9 auth-source: Fix wrong-type-argument when searching plstore
`auth-source-search' can be called with an integer port number from
`network-stream-certificate`, while the backend implementation doesn't
allow non-string attributes.

* lisp/auth-source.el (auth-source-plstore-search): Ensure attributes
are string.
2019-10-15 12:49:45 +02:00
Lars Ingebrigtsen
42df8cd686 Revert "Remove XEmacs code from tetris.el"
This reverts commit 68b91333d5.

This should be ported to Emacs instead.
2019-10-15 11:07:04 +02:00