Commit graph

70480 commits

Author SHA1 Message Date
Katsumi Yamaoka
df8649ac40 * lisp/gnus/message.el (message-remove-header): Don't remove things
not looking like header (bug#31651).
2018-05-30 23:30:11 +00:00
Eli Zaretskii
aa175a4058 Adapt hexl-mode to native line-number display
* lisp/hexl.el (hexl-mode-ruler): When display-line-numbers is in
effect, adjust offsets and columns to account for the line-number
display.  (Bug#31595)
2018-05-30 20:30:07 +03:00
Damien Cassou
24ba63314f Improve read-multiple-choice docstring (Bug#31628)
* lisp/emacs-lisp/rmc.el (read-multiple-choice): Improve docstring.
2018-05-29 08:17:32 -04:00
Michael Albinus
e8912d5be9 Sync with Tramp 2.3.4-pre
* doc/misc/trampver.texi: Change version to "2.3.4-pre

* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies, tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp, tramp-copy-failed-regexp)
(tramp-process-alive-regexp, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain, tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override, tramp-use-ssh-controlmaster-options)
(tramp-remote-path, tramp-remote-process-environment)
(tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch):
Dont't require 'tramp.  (Bug#31558)

* lisp/net/tramp.el (tramp-accept-process-output):
* lisp/net/tramp-adb.el (tramp-adb-handle-start-file-process):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-start-file-process):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
(tramp-smb-handle-set-file-acl)
(tramp-smb-handle-start-file-process): Suppress timers.

* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
Write proper message.

* lisp/net/tramp-cmds.el (tramp-change-syntax):
Use `customize-set-variable'.

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Ensure proper EOL handling for Darwin.
(tramp-find-inline-compress): Improve command quoting for w32.
Reported by Chris Zheng <chriszheng99@gmail.com>.
(tramp-open-connection-setup-interactive-shell): Wrap both echo
calls in parentheses, in order to avoid double prompt.

* lisp/net/tramp-smb.el (tramp-smb-errors):
Add "NT_STATUS_RESOURCE_NAME_NOT_FOUND".

* lisp/net/tramp.el (tramp-default-user-alist)
(tramp-default-host-alist): Fix docstring.
(tramp-dissect-file-name): Adapt docstring.  (Bug#30904)
(tramp-make-tramp-file-name): Check, that method is
not empty.  (Bug#30038)
(tramp-message-show-message): Change default.

* lisp/net/trampver.el: Change version to "2.3.4-pre".

* test/lisp/net/tramp-tests.el (ert-x): Require it.
(tramp-test10-write-region): Extend test.
(tramp--test-emacs27-p, tramp--test-windows-nt): New defuns.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links, tramp-test24-file-acl)
(tramp-test25-file-selinux, tramp--test-check-files): Use them.
(tramp-test21-file-links): Do not call `make-symbolic-link' on w32.
Fix file name quoting test.
(tramp-test32-environment-variables-and-port-numbers):
Adapt check for systems which do not support "echo -n".  (Bug#29712)
(tramp-test36-find-backup-file-name): Call also
`convert-standard-filename' due to w32.
(tramp-test41-asynchronous-requests):
Use $REMOTE_PARALLEL_PROCESSES.  Flush cache prior file operations.
(tramp-test42-auto-load, tramp-test42-delay-load)
(tramp-test42-recursive-load, tramp-test42-remote-load-path):
Quote command due to w32.
2018-05-29 09:57:48 +02:00
Thien-Thi Nguyen
567cb9046d Overhaul pcase documentation
Suggested by Drew Adams (Bug#31311).

* doc/lispref/control.texi (Control Structures):
Add "Pattern-Matching Conditional" to menu, before "Iteration".
(Conditionals): Delete menu.
(Pattern matching case statement): Delete node/subsection,
by actually moving, renaming, and overhauling it to...
(Pattern-Matching Conditional): ...new node/section.
(pcase Macro): New node/subsection.
(Extending pcase): Likewise.
(Backquote Patterns): Likewise.
* doc/lispref/elisp.texi (Top) In @detailmenu, add
"Pattern-Matching Conditional" under "Control Structures"
section and delete "Conditionals" section.
* lisp/emacs-lisp/pcase.el (pcase): Rewrite docstring.
(pcase-defmacro \` (qpat) ...): Likewise.
2018-05-27 17:14:27 +02:00
Thien-Thi Nguyen
4d7e54acff Use EXPVAL in docstrings of patterns defined using pcase-defmacro
Suggested by Drew Adams (Bug#31311).

* lisp/emacs-lisp/cl-macs.el (cl-struct): ...here.
* lisp/emacs-lisp/eieio.el (eieio): Likewise.
* lisp/emacs-lisp/radix-tree.el (radix-tree-leaf): Likewise.
* lisp/emacs-lisp/rx.el (rx): Likewise.
2018-05-27 10:36:35 +02:00
Thien-Thi Nguyen
7e8227ed68 Introduce EXPVAL for pcase, pcase-defmacro docstrings
Suggested by Drew Adams (Bug#31311).

* lisp/emacs-lisp/pcase.el (pcase): Use EXPVAL in
docstring to stand for the result of evaluating EXP.
(pcase-defmacro): Add (fn ...) form in docstring
that includes [DOC], and the EXPVAL convention.
2018-05-27 10:36:35 +02:00
Thien-Thi Nguyen
e6de5b3d51 Ensure pcase doc shows `QPAT first among extensions
* lisp/emacs-lisp/pcase.el (pcase--make-docstring):
Split extensions display into two phases, collection
and display, separated by a reordering step that
ensures backquote is the first.
2018-05-27 10:36:34 +02:00
Nicolas Petton
07f8f9bc5a
; * lisp/ldefs-boot.el: Update. 2018-05-25 18:38:07 +02:00
Roland Winkler
43a9c268c7 Move window-point in bibtex-search-entry
* lisp/textmodes/bibtex.el (bibtex-search-entry): Move window-point
to record found.
2018-05-24 13:38:48 -05:00
Eli Zaretskii
d5e0ceb8b0 * lisp/help.el (with-help-window): Doc fix. (Bug#31574) 2018-05-24 19:30:33 +03:00
Noam Postavsky
e3f00f5637 Clarify when to use advice-add vs add-function
* lisp/emacs-lisp/nadvice.el (add-function): Note in docstring that
advice-add should be used for named functions.
2018-05-22 20:08:01 -04:00
Eli Zaretskii
2981952b6c Another attempt to fix sql.el
* lisp/progmodes/sql.el (sql-product-interactive): Fix calculation
of the SQL buffer name.  (Bug#31446)
2018-05-21 18:43:03 +03:00
Eli Zaretskii
b239a096f1 Fix a typo in last change in sql.el
* lisp/progmodes/sql.el (sql-product-interactive): Use 'null',
not 'zerop'.  (Bug#31446)
2018-05-21 05:33:57 +03:00
Eli Zaretskii
845fe038e7 Fix buffer names in sql.el
* lisp/progmodes/sql.el (sql-product-interactive): Fix the way the
buffer name is determined by prefix arg.  (Bug#31446)
2018-05-20 10:25:26 +03:00
Lars Ingebrigtsen
152a5569c8 (gnus-blocked-images): Clarify privacy implications
* lisp/gnus/gnus-art.el (gnus-blocked-images): Clarify the privacy
implication of altering the value of this variable.

(cherry picked from commit f4d9fd3dd4)
2018-05-18 17:18:58 +03:00
Eli Zaretskii
73bc6f8693 Fix a typo in describing input methods
* lisp/help-mode.el (help-make-xrefs): Fix a typo.  (Bug#31448)
2018-05-18 10:58:11 +03:00
João Távora
934bb475b9 Fix filesystem littering by Flymake's legacy backend
The Flymake legacy "proc" backend, which is active by default will try
to syntax-check foo.c/foo.cpp and many other types of files, but on
failing to find a suitable Makefile target, will fail.  There's
nothing wrong with that except that it used to leave behind the
foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering
the filesystem.

* lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake):
Call init-function inside of the unwind-protect.
2018-05-12 11:37:48 +01:00
Eli Zaretskii
087681b859 Improve documentation of kmacro commands and variables.
* lisp/kmacro.el (kmacro-start-macro-or-insert-counter)
(kmacro-counter, kmacro-set-format, kmacro-set-counter)
(kmacro-add-counter, kmacro-counter-format)
(kmacro-insert-counter): Clarify and improve the doc strings.
(Bug#31243)
2018-05-11 12:11:14 +03:00
Xu Chunyang
1d732d699d Fix gud-statement for pdb
* lisp/progmodes/gud.el (pdb): Fix the gud-print implementation.
(Bug#31363)
2018-05-06 22:46:04 +03:00
Daniel Pittman
4590414265 Avoid errors in ispell.el when Enchant returns empty extra chars
* lisp/textmodes/ispell.el (ispell--get-extra-word-characters):
Handle the case of empty extra characters returned by the
Enchant '-lsmod' command. (Bug#31344)

Copyright-paperwork-exempt: yes
2018-05-04 17:37:10 +03:00
Eli Zaretskii
d0d75f9b4e Make 'ispell-initialize-spellchecker-hook' work again
* lisp/textmodes/ispell.el (ispell-base-dicts-override-alist):
Defvar it to allow dynamic binding.  (Bug#31341)
2018-05-04 17:25:33 +03:00
Eli Zaretskii
91de88bfeb Fix report-emacs-bug via mailclient on MS-Windows
* lisp/net/browse-url.el (browse-url-default-windows-browser):
On MS-Windows, call url-unhex-string only for file:// URLs.
(Bug#31351)
2018-05-03 21:04:17 +03:00
Basil L. Contovounesios
343d70b10e Improve kill-related documentation (bug#31209)
* doc/lispref/text.texi (Low-Level Kill Ring): Fix typo under
current-kill.  Mention interprogram-paste-function under kill-new
and kill-append.
* lisp/simple.el (save-interprogram-paste-before-kill, kill-new)
(kill-append-merge-undo, kill-append): Touch-up docstrings.
2018-04-24 20:58:15 -04:00
Stefan Monnier
0b432248d8 * lisp/simple.el (region-extract-function): Don't hide the 'nil' case. 2018-04-24 14:06:20 -04:00
Karl Otness
d6e2c59318 Fix pre- and post-command-hook errors in term.el
Before this patch, after the terminal process dies the command
hooks added in term-mode's char mode would produce errors.
This fix removes these hooks when the process dies.
* lisp/term.el (term-handle-exit): Remove pre-command-hook and
post-command-hook because the process is dead.  (Bug#31236)

Copyright-paperwork-exempt: yes
2018-04-22 20:06:50 +03:00
Noam Postavsky
b89ff0efdb Don't assume term-current-row cache is valid (Bug#31193)
* lisp/term.el (term-down): Call `term-current-row' instead of
directly accessing the variable `term-current-row.  Following a resize
of the terminal's window, `term-current-row' is reset to nil, so it is
not safe to assume it is a number.
2018-04-18 07:33:27 -04:00
Eli Zaretskii
3bdc9a1683 Fix flyspell-auto-correct-previous-word broken by recent change
* lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Keep
flyspell-auto-correct-region also when repeatedly invoking
flyspell-auto-correct-previous-word.  (Bug#31188)
2018-04-17 20:45:51 +03:00
Eli Zaretskii
274c979649 * lisp/select.el (gui-get-selection): Doc fix. 2018-04-14 10:53:34 +03:00
Robert Pluim
60e10c5031 Remove repetitions in documentation strings
* lisp/bindings.el (right-word): Remove repetition
(left-word): Likewise.

* lisp/image-mode.el (image-mode-as-hex): Likewise.

* lisp/cedet/semantic/tag-ls.el (semantic-tag-similar-p): Likewise.

* lisp/textmodes/reftex-vars.el (reftex-view-crossref-extra): Likewise
2018-04-13 12:10:37 +02:00
Eli Zaretskii
208e7520b6 * lisp/image.el (image-load-path): Doc fix. 2018-04-12 15:44:06 +03:00
Charles A. Roelli
c8ffca525c * lisp/files.el (kept-new-versions): Improve documentation string. 2018-04-09 20:26:50 +02:00
Eli Zaretskii
5659b2fe84 * lisp/files.el (find-file-literally): Doc fix. 2018-04-06 09:44:42 +03:00
Eli Zaretskii
9b24a7937a Fix typos in doc strings
* lisp/simple.el (undo-auto--boundary-timer)
(undo-auto--boundary-ensure-timer): Fix typos in doc strings.
2018-04-05 21:38:07 +03:00
Stefan Monnier
80d868ed1c * lisp/emacs-lisp/inline.el: Clarify apparent typos 2018-04-04 21:15:36 -04:00
Eli Zaretskii
9f54f285c9 ; * lisp/auth-source.el (auth-sources): Update the :version tag. 2018-04-04 22:16:09 +03:00
Ted Zlatanov
3573b4e2ae Allow sexp customization type in auth-sources
* lisp/auth-source.el (auth-sources): Allow sexp customization type.
Update the :version tag.

(cherry picked from commit 447da5b0d4)
2018-04-04 22:14:56 +03:00
Nicolas Petton
3109d2bb17
; * lisp/ldefs-boot.el: Update. 2018-04-03 22:50:00 +02:00
Michael Albinus
56794ac6c7 Fix Bug#31022
* lisp/cus-start.el (temporary-file-directory): Suppress file name
handlers when calling `shell-command-to-string'.  (Bug#31022)
2018-04-03 09:51:01 +02:00
Paul Eggert
a231c33eab Update "Calendrical Calculations" cites
* lisp/calendar/calendar.el: Update citations to the book
"Calendrical Calculations" and its predecessors.
2018-04-02 22:44:37 -07:00
Noam Postavsky
a64c11a3aa Fix term.el rendering following a window resize (Bug#30544)
* lisp/term.el (term-reset-size): Reset cached row and column values
before changing point.
2018-04-02 06:57:53 -04:00
Philipp Stephani
1e6f09aa72 * files.el (auto-save-visited-mode): Don't prompt for filenames. 2018-04-02 12:18:39 +02:00
Philipp Stephani
52501ec3f1 Quote a few backticks in docstrings.
* lisp/emacs-lisp/macroexp.el (macroexp-progn, macroexp-let*)
(macroexp-if): Quote backtick in docstrings.
2018-04-01 23:33:16 +02:00
Glenn Morris
b87bd584a2 ; Auto-commit of loaddefs files. 2018-04-01 06:25:39 -04:00
Eli Zaretskii
9fee1b8fb3 Minor copyedits of completion-at-point-functions documentation
* lisp/minibuffer.el (completion-at-point-functions):
* doc/lispref/minibuf.texi (Completion in Buffers): Fix wording
and filling.

(cherry picked from commit a8ddd05d7d)
2018-04-01 12:22:39 +03:00
Stefan Monnier
748f0fdd5a (completion-at-point-functions): Improve doc
(cherry picked from commit b56c56f203)
2018-04-01 12:21:29 +03:00
Eli Zaretskii
af1624f29b * lisp/net/shr.el (shr-browse-url): Doc fix. (Bug#30957) 2018-04-01 12:09:54 +03:00
Hong Xu
3bc1e2f0ac Mention key-description' as inverse of kbd' (Bug#30942)
* lisp/subr.el (kbd): Add `key-description' as inverse of `kbd' in the
doc.
2018-03-31 00:50:37 -04:00
Noam Postavsky
e50196e8a9 Document return value of pcase (Bug#30425)
* doc/lispref/control.texi (Pattern matching case statement):
* lisp/emacs-lisp/pcase.el (pcase): State that pcase returns nil if no
patterns match.
(pcase-exhaustive): State that an error is signaled if no patterns
match.
2018-03-31 00:50:37 -04:00
Rasmus
613c9a5c1f Update Org to v9.1.9
Please note this is a bugfix release. See etc/ORG-NEWS for details.
2018-03-27 23:34:41 +02:00