Commit graph

70480 commits

Author SHA1 Message Date
Glenn Morris
5f3926053e * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to message. 2018-11-27 08:24:33 -08:00
Eli Zaretskii
f0531b8e64 Improve documentation of Ediff wordwise commands
* lisp/vc/ediff.el (ediff-windows-wordwise)
(ediff-windows-linewise, ediff-regions-wordwise): Update and
clarify the doc strings.

* doc/misc/ediff.texi (Major Entry Points): Update and clarify
the documentation of 'ediff-windows-wordwise' and
'ediff-regions-wordwise'.  See the discussion starting at
https://lists.gnu.org/archive/html/help-gnu-emacs/2018-11/msg00197.html
for the details.
2018-11-27 10:09:55 +02:00
Eli Zaretskii
2925ce5a7e Support Hunspell 1.7.0 in ispell.el
* lisp/textmodes/ispell.el
(ispell-find-hunspell-dictionaries): Invoke Hunspell with an
additional command-line argument, to work around a misfeature
in Hunspell 1.7.0 that prevents it from reporting the loaded
dictionary.  (Bug#33493)
2018-11-26 19:31:24 +02:00
Eli Zaretskii
03bb7a8da9 Avoid clearing echo-area message by auto-save-visited-file-name
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Record the
previous echo-area message, if any, and restore it before
exiting.  (Bug#33490)
2018-11-26 19:27:45 +02:00
Alan Mackenzie
9877c03293 Fix bug #33416, where typing a ) in a comment at EOB caused a loop (CC Mode).
* lisp/progmodes/cc-mode.el (c-fl-decl-start): A c-forward-syntactic-ws leaves
point inside whitespace when moving over a comment at EOB which has no
terminating LF.  Check this possibility and correct for it.
2018-11-24 10:31:53 +00:00
Ulrich Müller
25a4205271 Update the calc units table
On 2018-11-16, the 26th meeting of the General Conference on Weights
and Measures (CGPM) has redefined the International System of Units by
adopting fixed values for the Planck constant, the elementary charge,
the Boltzmann constant, and the Avogadro constant:
https://www.bipm.org/utils/en/pdf/CGPM/Draft-Resolution-A-EN.pdf

* lisp/calc/calc-units.el (math-standard-units): Update according
to redefinition of the SI in 2018.  (Bug#33412)
2018-11-24 10:08:47 +02:00
Eli Zaretskii
7a4992a0d3 More Symbola-related extensions for default fontset
* lisp/international/fontset.el (setup-default-fontset): Add
few more blocks of symbols and punctuation supported by	latest
Symbola.
2018-11-23 23:33:31 +02:00
Eli Zaretskii
4ae0a75435 Better support for display of U+1F900..U+1F9FF block
* lisp/international/fontset.el (setup-default-fontset): Add
the [#x1F900..#x1F9FF] block to those supported by Symbola.
2018-11-23 22:59:54 +02:00
Eli Zaretskii
8f0c7887ef Improve documentation of 'edit-abbrevs-mode'
* lisp/abbrev.el (edit-abbrevs-mode): Refer to 'edit-abbrevs'
for more detailed usage information.  (Bug#33443)
(edit-abbrevs): Doc fix.
2018-11-23 12:16:48 +02:00
Eli Zaretskii
477414ac38 Improve documentation of 'dired-do-compress'
* lisp/dired-aux.el (dired-do-compress): Describe in the doc
string the effect on directories and on compressed archive.
(Bug#33450)
2018-11-22 21:05:14 +02:00
Eli Zaretskii
52715e36de Improve doc string and display of 'describe-character'
* lisp/descr-text.el (describe-char): Explain how does the
function obtain the various data about the character.  Don't
display "preferred" before "charset": it tends to confuse
people.
2018-11-22 17:28:51 +02:00
Stephen Berman
d667318a7f Fix two Edebug defcustoms (bug#33428)
* lisp/emacs-lisp/edebug.el (edebug-print-length)
(edebug-print-level): Fix customization type to allow setting
the documented valid value nil via the Customize interface.
2018-11-19 23:12:52 +01:00
Michael Albinus
b8b42c2315 Fix Bug#33141
* lisp/net/tramp.el (tramp-make-tramp-file-name): Avoid check for
empty method with simplified `tramp-syntax'.  (Bug#33141)
2018-11-19 21:48:59 +01:00
Eli Zaretskii
df7ed10e4f Fix decoding XML files encoded in ISO-8859
* lisp/international/mule.el (sgml-xml-auto-coding-function):
Avoid signaling an error from coding-system-equal when the XML
encoding tag specifies an encoding whose type is 'charset'.
(Bug#33429)
2018-11-19 18:36:42 +02:00
Martin Rudalics
7252507699 Fix description of some window hooks
* doc/lispref/windows.texi (Window Hooks): Remove text that
warns against using 'save-window-excursion' while running
'window-size-change-functions', it's no more relevant.
Clarify description of 'window-configuration-change-hook'.
2018-11-18 09:24:10 +01:00
Gary Fredericks
88762b4063 Run 'window--adjust-process-windows' when frame size changes (Bug#32720)
* lisp/window.el (window-size-change-functions): Run
'window--adjust-process-windows' from
'window-size-change-functions' too (Bug#32720, "another issue"
in Bug#33230).

Copyright-paperwork-exempt: yes
2018-11-18 09:15:00 +01:00
Eli Zaretskii
d6542ea0f0 Avoid errors in zone.el when there's overlay at EOB
* lisp/play/zone.el (zone): Make sure the window-end position
is calculated accurately, to avoid errors from
buffer-substring.  (Bug#33384)
2018-11-16 21:52:34 +02:00
Paul Eggert
a306d03974 Fix tempfile creation when byte compiling
This improves on the recent fix for master failing to build
on FreeBSD.  Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.

(cherry picked from commit 64c8467386)
2018-11-15 16:45:36 +02:00
Michael Albinus
3287a7c048 Fix Bug#33364
* lisp/net/tramp.el (tramp-parse-sconfig-group): Support also
"Host host1 host2 ..." syntax.  (Bug#33364)
2018-11-14 16:19:39 +01:00
Eli Zaretskii
913c001f43 * lisp/files.el (write-file): Clarify the doc string. (Bug#33339) 2018-11-11 18:17:51 +02:00
Simen Heggestøyl
d614b84fa4 Fix typos in midnight.el
* lisp/midnight.el (clean-buffer-list-delay-general)
(clean-buffer-list-kill-regexps)
(clean-buffer-list-kill-buffer-names): Fix docstring typos.
2018-11-11 10:31:51 +01:00
Noam Postavsky
39e85a0c6c Note that lex bound lambda forms are not self-quoting (Bug#33199)
* doc/lispref/functions.texi (Anonymous Functions):
* lisp/subr.el (lambda): Note that under lexical binding a lambda form
yields a closure object (Bug#33199).
2018-11-08 20:13:56 -05:00
Martin Rudalics
fa605f242e Rewrite buffer display related doc-strings and doc
* lisp/window.el (display-buffer-overriding-action)
(display-buffer-alist, display-buffer-base-action)
(display-buffer-fallback-action, display-buffer-assq-regexp)
(display-buffer): Rewrite doc-strings using suggestions by
Alan Mackenzie <acm@muc.de>.
(display-buffer-use-some-frame): Adjust doc-string and
reformat code.
* doc/lispref/windows.texi (Buffer Display Action Alists):
Make docs on 'window-height', 'window-width' and
'preserve-size' entries more accurate.
2018-11-08 20:20:13 +01:00
Eli Zaretskii
e824c914da Improve documentation of destructuring-binding macros
* lisp/emacs-lisp/pcase.el (pcase-dolist, pcase-let)
(pcase-let*): Improve the doc strings.

* doc/lispref/sequences.texi (Sequence Functions): Improve
wording and rename arguments of seq-let to be more
descriptive.  Add a cross-reference to "Destructuring with
pcase Patterns".
* doc/lispref/control.texi (Pattern-Matching Conditional):
Improve wording and the menu.
(pcase Macro): Incorporate patch suggested by Paul Eggert
<eggert@cs.ucla.edu>.  Reformat text.
(Destructuring with pcase Patterns): Rename from
"Destructuring patterns", and improve wording and indexing.
2018-11-03 15:11:33 +02:00
Eli Zaretskii
74bc0e16b7 Avoid byte compilation warning in rcirc.el
* lisp/net/rcirc.el (rcirc-prompt-start-marker): Move
definition before 1st use to avoild byte-compiler warning.
2018-11-03 10:49:51 +02:00
Basil L. Contovounesios
bd1d61753d Avoid race in rcirc process filter (bug#33145)
* lisp/net/rcirc.el (rcirc-filter): Clear rcirc-process-output
before processing its constituent lines.  Otherwise, if rcirc-filter
runs again before the last rcirc-process-server-response is
finished, the contents of rcirc-process-output could be duplicated.
2018-11-03 10:46:01 +02:00
Jordan Wilson
88ef31abd4 Avoid file-name errors when viewing PDF from Gnus
* lisp/doc-view.el (doc-view-mode): Run the output file name
through 'convert-standard-filename', to avoid problems with
characters that are not allowed in file names on some
systems.  (Bug#32989)

Copyright-paperwork-exempt: yes
2018-11-03 10:30:33 +02:00
Eric Abrahamsen
97660fa9d6 Doc fix for checkdoc-continue
* lisp/emacs-lisp/checkdoc.el (checkdoc-continue): There is no second
  optional argument, and the function always starts from point.
2018-11-01 13:21:27 -07:00
Eli Zaretskii
96f055bb4b Fix a typo in autoload.el
* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Remove stray backslashes.  (Bug#33231)
2018-11-01 20:56:31 +02:00
Glenn Morris
d53a2b65db ; Auto-commit of loaddefs files. 2018-11-01 06:24:27 -04:00
Stefan Monnier
eb903d8f20 * lisp/emacs-lisp/pcase.el: Improve docstrings. 2018-10-30 14:24:31 -04:00
Eli Zaretskii
86abbb3cb8 * lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#33205) 2018-10-30 19:25:14 +02:00
Charles A. Roelli
5aeddfac2a * lisp/mail/rmailsum.el (rmail-summary-output): Add lost word to doc. 2018-10-28 20:29:45 +01:00
Noam Postavsky
de2818432a * lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#33179). 2018-10-27 17:56:28 -04:00
Eli Zaretskii
df64da8eb8 * lisp/simple.el (region-extract-function): Doc fix. (Bug#33167) 2018-10-27 14:08:40 +03:00
Eli Zaretskii
520c486d8b * lisp/simple.el (region-bounds): Doc fix. (Bug#33168) 2018-10-27 13:50:34 +03:00
Pierre Téchoueyres
106b9e138f Unify prompt for gnupg passphrase between GNU/Linux and MS-Windows.
* lisp/epg.el (epg--start): Use 'raw-text' for coding system instead
of 'binary', in order to avoid spurious carriage return on Microsoft
Windows and MS-DOS when prompting for a password.  (Bug#33040)
2018-10-27 12:36:00 +03:00
Eli Zaretskii
2a416161b2 Doc fix of 'gnus-fetch-old-headers'
* lisp/gnus/gnus-sum.el (gnus-fetch-old-headers): Avoid
treating 'some' and 'invisible' as symbols that need to be
hyperlinked.  Reported by Robert Pluim <rpluim@gmail.com>.
(Bug#33090)
2018-10-27 12:14:35 +03:00
Eric Abrahamsen
29a76443c9 Deactivate incorrect hyperlinking in gnus-build-sparse-threads doc
* lisp/gnus/gnus-sum.el (gnus-build-sparse-threads): Add the word
"symbol" so it doesn't link to the `some' function.  (Bug#33090)
2018-10-27 12:10:42 +03:00
Michael Albinus
13132b3993 * lisp/net/tramp-sh.el (tramp-inline-compress-commands):
Suppress warnings about obsolete environment variable GZIP.
2018-10-27 09:22:18 +02:00
Noam Postavsky
92de44fa1f Don't error when indenting malformed Lisp (Bug#30891)
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-calc-next): If we run out
of indent stack, reset the parse state.
2018-10-25 17:55:49 -04:00
Charles A. Roelli
c3adbc88a0 Improve 'isearch-delete-char' documentation (Bug#32990)
* doc/emacs/search.texi (Basic Isearch): Index
'isearch-delete-char', its keybinding and the isearch "input
item" concept, and define the latter.
(Error in Isearch): Clarify the different uses of DEL and
C-M-w during isearch.

* lisp/isearch.el (isearch-delete-char): Correct its
documentation and link to the Info node '(emacs)Basic Isearch'
which explains less technically how this function works in
everyday usage.
2018-10-25 21:01:53 +02:00
Charles A. Roelli
6ca71ceb68 ; * lisp/help.el (with-help-window): Remove extra space in doc. 2018-10-25 20:40:49 +02:00
Eli Zaretskii
f3d01d4653 Avoid infloop in CPerl mode fontification
* lisp/progmodes/cperl-mode.el
(cperl-font-lock-fontify-region-function): Stop the loop at
EOB, to avoid inflooping there.  (Bug#33114)
2018-10-25 17:57:34 +03:00
Andreas Schwab
71a2d509f9 Fix minibuffer-help-form for lexical binding
* lisp/simple.el (set-variable): Substitute var into
minibuffer-help-form.
* lisp/cus-edit.el (custom-prompt-variable): Likewise.
2018-10-25 11:04:34 +02:00
Katsumi Yamaoka
d72975a654 * lisp/gnus/mm-util.el (mm-decompress-buffer): Fix split-string args. 2018-10-24 10:09:51 +00:00
Michael Heerdegen
1531bca523 Fix help-form binding in dired-create-files
This fixes Bug#32630: since "dired-aux" moved to lexical binding mode,
the free variable TO in the constructed HELP-FORM got out of scope of
the surrounding 'let'.

* lisp/dired-aux.el (dired-create-files): Make the binding of
HELP-FORM a string.
2018-10-20 18:51:38 +02:00
Eli Zaretskii
cf7932712a Fix a pasto in a Gnus doc string
* lisp/gnus/gnus-art.el (gnus-article-treat-fold-newsgroups):
Doc string fix.  (Bug#33081)
2018-10-20 11:26:33 +03:00
Juri Linkov
eb6768977e * lisp/mail/smtpmail.el (smtpmail-send-queued-mail): Load file with .el suffix.
For the case when load-prefer-newer is t, ensure loading the right file
by explicitly adding the .el suffix.  Use the same variable names
as in the function smtpmail-send-it.  (Bug#33055)
2018-10-18 01:24:43 +03:00
Charles A. Roelli
b20c51d62f * lisp/isearch.el (isearch-cmds): Recall absent isearch--state slot. 2018-10-15 19:51:47 +02:00