Lars Ingebrigtsen
34963d632d
Fix edebug--restore-breakpoints re-instrumentinging bug-out
...
* lisp/emacs-lisp/edebug.el (edebug--restore-breakpoints): Don't
bug out when instrumenting/de-instrumenting/re-instrumenting.
2019-10-20 14:27:38 +02:00
Lars Ingebrigtsen
34744278ba
Add a new edebug-breakpoint face
...
* doc/lispref/edebug.texi (Breakpoints): Mention it.
* lisp/emacs-lisp/edebug.el (edebug-breakpoint): New face.
2019-10-20 14:09:36 +02:00
Lars Ingebrigtsen
db1907233c
while-no-input-ignore-events manual clarification
...
* doc/lispref/commands.texi (Event Input Misc): Be slightly
clearer about what while-no-input-ignore-events is.
2019-10-20 13:52:03 +02:00
Lars Ingebrigtsen
23b3032702
New command to clear all breakpoints in a function
...
* doc/lispref/edebug.texi (Breakpoints): Mention it.
* lisp/emacs-lisp/edebug.el (edebug-unset-breakpoints): New
command and keystroke.
2019-10-20 13:40:03 +02:00
Lars Ingebrigtsen
a4e7c15484
Preserve breakpoints when Edebug-reinstrumenting functions
...
* lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints): New
function (bug#23470).
* lisp/emacs-lisp/seq.el (seq-position): Autoload.
2019-10-20 13:11:04 +02:00
Michael Albinus
0cbcd2869e
Fix docstrings in tramp.el
...
* lisp/net/tramp.el (tramp-antispoof-regexp)
(tramp-file-name-handler): Fix docstring.
2019-10-20 13:10:12 +02:00
Lars Ingebrigtsen
bee7beee8e
Change default to cancel all edebug-on-entry in cancel-edebug-on-entry
...
* lisp/emacs-lisp/edebug.el (cancel-edebug-on-entry): Make the
default to cancel all edebug-on-entry.
2019-10-20 12:37:37 +02:00
Lars Ingebrigtsen
665208ce59
Use user-error in cancel-edebug-on-entry
...
* lisp/emacs-lisp/edebug.el (cancel-edebug-on-entry): This is a
user-class error, so use user-error.
2019-10-20 12:28:36 +02:00
Lars Ingebrigtsen
0794354b24
Instrument function if it hasn't been already in edebug-set-breakpoint
...
* lisp/emacs-lisp/edebug.el (edebug-set-breakpoint): Instrument
form automatically when using this function (bug#23469).
2019-10-20 12:25:59 +02:00
Lars Ingebrigtsen
4503af6c9e
Fix up previous edebug breakpoint overlay change
...
* lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints): Only
make the overlays in edebug mode, so that we remove them when we
exit.
2019-10-20 12:17:28 +02:00
Lars Ingebrigtsen
e8b3a15cb6
Mark breakpoints in edebug with highlights
...
* lisp/emacs-lisp/edebug.el (edebug--overlay-breakpoints)
(edebug--overlay-breakpoints-remove): New functions (bug#23468).
(edebug-modify-breakpoint): Use them to highlight breakpoints.
(edebug--display-1): Restore breakpoint highlights.
(edebug--recursive-edit): Remove highlights on exit.
2019-10-20 12:17:28 +02:00
Juanma Barranquero
41ba8231ef
lisp/*.el: Fix typos and improve some docstrings
...
* lisp/auth-source.el (auth-source-backend-parse-parameters)
(auth-source-search-collection)
(auth-source-secrets-listify-pattern)
(auth-source--decode-octal-string, auth-source-plstore-search):
* lisp/registry.el (registry-lookup)
(registry-lookup-breaks-before-lexbind)
(registry-lookup-secondary, registry-lookup-secondary-value)
(registry-search, registry-delete, registry-size, registry-full)
(registry-insert, registry-reindex, registry-prune)
(registry-collect-prune-candidates):
* lisp/subr.el (nbutlast, process-live-p):
* lisp/tab-bar.el (tab-bar-list):
* lisp/cedet/ede/linux.el (ede-linux--get-archs)
(ede-linux--include-path, ede-linux-load):
* lisp/erc/erc-log.el (erc-log-all-but-server-buffers):
* lisp/erc/erc-pcomplete.el (pcomplete-erc-commands)
(pcomplete-erc-ops, pcomplete-erc-not-ops, pcomplete-erc-nicks)
(pcomplete-erc-all-nicks, pcomplete-erc-channels)
(pcomplete-erc-command-name, pcomplete-erc-parse-arguments):
* lisp/eshell/em-term.el (eshell-visual-command-p):
* lisp/gnus/gnus-cache.el (gnus-cache-fully-p):
* lisp/gnus/nnmail.el (nnmail-get-active)
(nnmail-fancy-expiry-target):
* lisp/mail/mail-utils.el (mail-string-delete):
* lisp/mail/supercite.el (sc-hdr, sc-valid-index-p):
* lisp/net/ange-ftp.el (ange-ftp-use-smart-gateway-p):
* lisp/net/nsm.el (nsm-save-fingerprint-maybe)
(nsm-network-same-subnet, nsm-should-check):
* lisp/net/rcirc.el (rcirc-looking-at-input):
* lisp/net/tramp-cache.el (tramp-get-hash-table):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p):
* lisp/net/tramp-smb.el (tramp-smb-get-share)
(tramp-smb-get-localname, tramp-smb-read-file-entry)
(tramp-smb-get-cifs-capabilities, tramp-smb-get-stat-capability):
* lisp/net/zeroconf.el (zeroconf-list-service-names)
(zeroconf-list-service-types, zeroconf-list-services)
(zeroconf-get-host, zeroconf-get-domain)
(zeroconf-get-host-domain):
* lisp/nxml/rng-xsd.el (rng-xsd-compile)
(rng-xsd-make-date-time-regexp, rng-xsd-convert-date-time):
* lisp/obsolete/erc-hecomplete.el (erc-hecomplete)
(erc-command-list, erc-complete-at-prompt):
* lisp/org/ob-scheme.el (org-babel-scheme-get-buffer-impl):
* lisp/org/ob-shell.el (org-babel--variable-assignments:sh-generic)
(org-babel--variable-assignments:bash_array)
(org-babel--variable-assignments:bash_assoc)
(org-babel--variable-assignments:bash):
* lisp/org/org-clock.el (org-day-of-week):
* lisp/progmodes/cperl-mode.el (cperl-char-ends-sub-keyword-p):
* lisp/progmodes/gud.el (gud-find-c-expr, gud-innermost-expr)
(gud-prev-expr, gud-next-expr):
* lisp/textmodes/table.el (table--at-cell-p, table--probe-cell)
(table--get-cell-justify-property)
(table--get-cell-valign-property)
(table--put-cell-justify-property)
(table--put-cell-valign-property): Fix typos.
* lisp/so-long.el (fboundp): Doc fix.
(so-long-mode-line-info, so-long-mode)
(so-long--check-header-modes): Fix typos.
* lisp/emulation/viper-mous.el (viper-surrounding-word)
(viper-mouse-click-get-word): Fix typos.
(viper-mouse-click-search-word): Doc fix.
* lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p)
(erc-bounds-of-word-at-point): Fix typos.
(erc-decode-string-from-target, define-erc-response-handler):
Refill docstring.
* lisp/erc/erc-dcc.el (pcomplete/erc-mode/DCC): Fix typo.
(erc-dcc-get-host, erc-dcc-auto-mask-p, erc-dcc-get-file):
Doc fixes.
* lisp/erc/erc-networks.el (erc-network-name): Fix typo.
(erc-determine-network): Refill docstring.
* lisp/net/dbus.el (dbus-list-hash-table)
(dbus-string-to-byte-array, dbus-byte-array-to-string)
(dbus-check-event): Fix typos.
(dbus-introspect-get-property): Doc fix.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
Rename ARGS to ARGUMENTS. Doc fix.
(tramp-adb-sh-fix-ls-output, tramp-adb-execute-adb-command)
(tramp-adb-find-test-command): Fix typos.
* lisp/net/tramp.el (tramp-set-completion-function)
(tramp-get-completion-function)
(tramp-completion-dissect-file-name)
(tramp-completion-dissect-file-name1)
(tramp-get-completion-methods, tramp-get-completion-user-host)
(tramp-get-inode, tramp-get-device, tramp-mode-string-to-int)
(tramp-call-process, tramp-call-process-region)
(tramp-process-lines): Fix typos.
(tramp-interrupt-process): Doc fix.
* lisp/org/ob-core.el (org-babel-named-src-block-regexp-for-name)
(org-babel-named-data-regexp-for-name): Doc fix.
(org-babel-src-block-names, org-babel-result-names): Fix typos.
* lisp/progmodes/inf-lisp.el (lisp-input-filter): Doc fix.
(lisp-fn-called-at-pt): Fix typo.
* lisp/progmodes/xref.el (xref-backend-identifier-at-point):
Doc fix.
(xref-backend-identifier-completion-table): Fix typo.
2019-10-20 12:12:27 +02:00
Lars Ingebrigtsen
e2acf4d29d
New command edebug-remove-instrumentation
...
* doc/lispref/edebug.texi (Instrumenting): Document it.
* lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): New
command (bug#15843).
2019-10-20 11:29:34 +02:00
Lars Ingebrigtsen
cfaecdb293
Fix doc string and interactive spec of cancel-edebug-on-entry
...
* lisp/emacs-lisp/edebug.el (cancel-edebug-on-entry): Add doc
string and make the interactive spec complete over functions that
have the spec (bug#10806).
(edebug-cancel-edebug-on-entry): Add alias for discoverability.
(edebug-on-entry): Clarify what this command does.
2019-10-20 10:51:08 +02:00
Lars Ingebrigtsen
27490cec4e
Revert "Add an edebug-cancel-debug-on-entry alias"
...
This reverts commit cea9577b7d .
cancel-edebug-on-entry and cancel-debug-on-entry are not the same functions.
2019-10-20 10:28:44 +02:00
Lars Ingebrigtsen
cea9577b7d
Add an edebug-cancel-debug-on-entry alias
...
* lisp/emacs-lisp/debug.el (edebug-cancel-debug-on-entry): Add an
alias for easier discoverability (bug#10806).
2019-10-20 09:48:28 +02:00
Lars Ingebrigtsen
19f72110fc
Protect against invalid punycode
...
* lisp/net/puny.el (puny-decode-string): Protect against invalid
punycode.
2019-10-20 09:40:11 +02:00
Juri Linkov
d9a3c8974f
* lisp/net/eww.el (eww-browse-url-new-window-is-tab): New defcustom.
...
(eww-open-in-new-buffer, eww-browse-url): Use new defcustom (bug#37592).
2019-10-20 01:40:05 +03:00
Juri Linkov
58d23f5f19
Use 'C-x t' for tab-prefix-map instead of 'C-x 6' still used by 2C-mode-map.
...
* doc/emacs/commands.texi (Keys): Add 'C-x t'.
* doc/emacs/frames.texi (Tab Bars): Replace 'C-x 6' with 'C-x t'.
* doc/lispref/keymaps.texi (Prefix Keys): Add 'C-x t' (tab-prefix-map).
* doc/lispref/maps.texi (Standard Keymaps): Add tab-prefix-map, tab-bar-map.
* lisp/dired.el: Rebind 'C-x 6 d' to 'C-x t d'. Use tab-prefix-map.
* lisp/subr.el (ctl-x-6-map, ctl-x-6-prefix, ctl-x-t-prefix): Remove.
(tab-prefix-map): New keymap bound to 'C-x t'.
* lisp/tab-bar.el: Use tab-prefix-map instead of ctl-x-6-map.
* lisp/textmodes/two-column.el: Restore autoload global setting of
"\C-x6" to 2C-command.
* lisp/ldefs-boot.el: Update to add setting "\C-x6" to 2C-command.
* doc/emacs/commands.texi (Keys):
* doc/emacs/text.texi (Two-Column):
* doc/lispref/keymaps.texi (Prefix Keys):
* doc/lispref/maps.texi (Standard Keymaps):
Restore 'C-x 6' bound to '2C-mode-map'.
2019-10-20 01:06:38 +03:00
Juri Linkov
7e238e7d50
Add ':extend t' face attribute to diff faces (bug#37774)
...
* lisp/vc/diff-mode.el (diff-header, diff-file-header)
(diff-removed, diff-added): Add ':extend t' face attribute.
* lisp/vc/ediff-init.el (ediff-current-diff-A)
(ediff-current-diff-B, ediff-current-diff-C)
(ediff-current-diff-Ancestor, ediff-even-diff-A)
(ediff-even-diff-B, ediff-even-diff-C, ediff-even-diff-Ancestor)
(ediff-odd-diff-A, ediff-odd-diff-B, ediff-odd-diff-C)
(ediff-odd-diff-Ancestor): Add ':extend t' face attribute.
* lisp/vc/smerge-mode.el (smerge-upper, smerge-lower)
(smerge-base, smerge-markers): Add ':extend t' face attribute.
* lisp/vc/log-view.el (log-view-file, log-view-message):
Add ':extend t' face attribute.
* lisp/faces.el (secondary-selection): Add ':extend t' face attribute.
(line-number-major-tick, line-number-minor-tick):
Change :foreground to :background.
2019-10-19 23:51:03 +03:00
Glenn Morris
ab7db2814f
* lisp/net/tramp.el (tramp-antispoof-regexp): Fix version.
2019-10-19 11:26:34 -07:00
Alan Mackenzie
278b7c1b52
Don't downcase the key binding in global-set-key.
...
This fixes bug #37769 .
* lisp/subr.el (global-set-key): Provide a non-nil DONT-DOWNCASE argument to
read-key-sequence.
* etc/NEWS: Add an entry for this change.
2019-10-19 18:21:25 +00:00
Eli Zaretskii
2385dddb33
Fix a recent change in Emacs FAQ
...
* doc/misc/efaq.texi (New in Emacs 23, Common requests):
Remove references to the removed section "Highlighting a
region".
2019-10-19 18:05:44 +03:00
Michael Albinus
5ea28ea4d1
* doc/emacs/emacs.texi (Intro): Mention remote file editing.
2019-10-19 15:25:45 +02:00
Stefan Kangas
981c309325
Don't explain FTP acronym in FAQ
...
* doc/misc/efaq.texi (Common acronyms): Remove explanation of the FTP
acronym. Emacs is no longer distributed over FTP, and the FAQ doesn't
refer to any other FTP URLs.
2019-10-19 15:06:13 +02:00
Stefan Kangas
11c3ec3df6
Remove FAQ section "Highlighting a region" (Bug#37818)
...
* doc/misc/efaq.texi (Highlighting a region): Remove section.
2019-10-19 14:32:11 +02:00
Michael Albinus
21f5bd6154
Support PuTTY's antispoof message in Tramp
...
* lisp/net/tramp-sh.el (tramp-actions-before-shell):
Add respective entry for PuTTY's antispoof message.
* lisp/net/tramp.el (tramp-antispoof-regexp): New defcustom.
(tramp-action-confirm-message): New defun.
2019-10-19 14:23:21 +02:00
Raimon Grau
ba8944bba8
Fix optional parameter passing in calc-fin-* functions
...
* lisp/calc/calc-fin.el (calc-fin-pv, calc-fin-fv, calc-fin-pmt)
(calc-fin-pner, calc-fin-rate): Add support for an optional
parameter standing for an initial lump. The functions already
support it but the extra parameter was not taken into account in
stack mode. This commit it takes into consideration when deciding
if a function takes 3 or 4 parameters (bug#37649).
2019-10-19 11:46:17 +02:00
Lars Ingebrigtsen
842cc05d5c
Remove some compat code from cperl-mode.el
...
* lisp/progmodes/cperl-mode.el: Remove old-Emacs compat code.
2019-10-19 11:32:04 +02:00
Eli Zaretskii
8dd18bbb6f
Fix display of Info files on TTY frames
...
* lisp/info.el (info-symbols-and-replacements): New variable.
(Info-mode): Use 'info-symbols-and-replacements' to set up a
buffer-display-table for non-ASCII symbols used by Info files
that cannot be displayed on TTY frames.
2019-10-19 12:12:31 +03:00
Lars Ingebrigtsen
a3726f057b
Remove some compat code from CEDET
...
* lisp/cedet/semantic.el (pp):
* lisp/cedet/semantic/complete.el (initialize-instance): Remove
old-Emacs compat code.
2019-10-19 11:00:21 +02:00
Lars Ingebrigtsen
53774c4532
Remove some compat code from mm-url.el
...
* lisp/gnus/mm-url.el (mm-url-use-external): Remove old-Emacs
compat code.
2019-10-19 10:58:40 +02:00
Lars Ingebrigtsen
480a03ba8f
Remove compat code from nnbabyl.el
...
* lisp/gnus/nnbabyl.el (rmail): Remove old-Emacs compat code.
2019-10-19 10:57:33 +02:00
Lars Ingebrigtsen
842518a0db
Remove some compat code in imap.el
...
* lisp/net/imap.el (imap-sasl-auth-p): Remove old-Emacs compat code.
2019-10-19 10:54:09 +02:00
Hong Xu
fc6de411a7
special-mode doc string clarification
...
* lisp/simple.el (special-mode): Make the doc string explain what
special modes are for (bug#37787).
2019-10-19 10:43:37 +02:00
Lars Ingebrigtsen
e4a4aa3057
Don't have shr bug out if svg support isn't available
...
* lisp/net/shr.el (shr-put-image): Don't bug out if SVG support
isn't available.
2019-10-19 10:23:19 +02:00
Cédric Chépied
c506e45c61
Fix typo in tree-widget-lookup-image
...
* lisp/tree-widget.el (tree-widget-lookup-image): Fix typo
introduced by previous cleanup (bug#37809).
2019-10-19 09:54:02 +02:00
Eli Zaretskii
2a3577ba11
A better fix for tab-line mouse highlight on TTY frames
...
* src/dispnew.c (mode_line_string):
* src/xdisp.c (note_mode_line_or_margin_highlight): Remove
recently-added workarounds for incorrect TTY mouse highlight:
they are no longer needed.
(mark_window_display_accurate_1): Set the header_line_p and
tab_line_p flags of the window's current_matrix if the window
displays these.
(display_mode_line): Set the header_line_p and tab_line_p
flags of the window's desired_matrix if the window displays
these. (Bug#37807)
2019-10-19 10:42:14 +03:00
Stefan Kangas
23520fe339
Remove XEmacs compat code from ezimage.el
...
* lisp/ezimage.el (top-level): Remove XEmacs compat code.
2019-10-19 01:13:42 +02:00
Paul Eggert
f9744a5f09
Pacify x86 GCC 9 in tab bar code
...
* src/xdisp.c (tty_get_tab_bar_item): Simplify a bit. This
pacifies --enable-gcc-warnings with x86 GCC 9.2.1 20190827
(Red Hat 9.2.1-1) when combined with -fsanitize=undefined.
2019-10-18 15:35:15 -07:00
Stefan Kangas
f60ed6e3e4
Remove XEmacs compat code from edt-mapper.el
...
* lisp/emulation/edt-mapper.el (edt-mapper, edt-xserver)
(edt-map-key): Remove XEmacs compat code.
(edt-window-system): Redefine as obsolete variable alias for
'window-system'.
2019-10-19 00:17:33 +02:00
Stefan Kangas
2afab0d9ce
Remove XEmacs compat code from esh-arg.el
...
* lisp/eshell/esh-arg.el (eshell-quote-backslash): Remove XEmacs
compat code.
2019-10-19 00:17:29 +02:00
Paul Eggert
f3aa05b1aa
Generalize list1i etc. to all signed integer types
...
* src/lisp.h (list1i, list2i, list3i, list4i):
Accept intmax_t instead of EMACS_INT, and use make_int instead
of make_fixnum. This should help avoid integer-overflow
problems akin to the Time bug (Bug#37795).
2019-10-18 13:23:11 -07:00
Paul Eggert
b72ff3667a
Fix integer-overflow bug in Time conversion
...
Problem reported by Stefan Monnier (Bug#37795).
* src/keyboard.c (make_lispy_position)
(make_scroll_bar_position, make_lispy_event):
* src/xterm.c (x_ewmh_activate_frame):
Use INT_TO_INTEGER to convert Time to a Lisp integer,
since the value might not be a fixnum.
2019-10-18 13:23:11 -07:00
Michael Albinus
36c75c2a41
* test/lisp/net/tramp-tests.el (remote-file-name-inhibit-cache): Set to nil.
2019-10-18 19:45:07 +02:00
Michael Albinus
7c58cca134
Support old Samba versions in Tramp
...
* doc/misc/tramp.texi (Relevant connection properties to override):
New subsection.
* lisp/net/tramp-smb.el (tramp-smb-get-cifs-capabilities): Check "posix"
connection property.
* lisp/net/tramp.el (with-tramp-progress-reporter): Fix docstring.
2019-10-18 19:44:49 +02:00
Eli Zaretskii
2c9128ce13
Fix mouse highlight with tab-line on TTY frames
...
* src/xdisp.c (note_mode_line_or_margin_highlight):
* src/dispnew.c (mode_line_string): Fix mouse highlight on TTY
frames when both header line and tab-line are displayed.
(Bug#37807)
2019-10-18 18:48:31 +03:00
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