Commit graph

70480 commits

Author SHA1 Message Date
Glenn Morris
0ae7b2b88f ; Auto-commit of loaddefs files. 2019-05-01 09:20:05 -07:00
Noam Postavsky
93912baefd Be more careful about indent-sexp going over eol (Bug#35286)
* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Only go over multiple
sexps if the end of line is within a sexp.
* test/lisp/emacs-lisp/lisp-mode-tests.el
(indent-sexp-stop-before-eol-comment)
(indent-sexp-stop-before-eol-non-lisp): New tests.
2019-04-22 12:49:36 -04:00
Basil L. Contovounesios
7565d2d2fb Backport: Avoid using obsolete indent-relative-maybe
* lisp/electric.el (electric-indent-functions-without-reindent):
* lisp/indent.el (indent-according-to-mode): Check for
indent-relative-first-indent-point in addition to its obsolete alias
indent-relative-maybe.
* lisp/obsolete/vi.el (vi-com-map): Use
indent-relative-first-indent-point in place of its obsolete alias
indent-relative-maybe.

(cherry picked from commit 0e468a6204)
2019-04-22 16:13:46 +01:00
Mauro Aranda
9d7e08dd8f Avoid false positives and false negatives of Info-quoted face
* lisp/info.el (Info-mode-font-lock-keywords): Modify the regexp, for
matching single quotes of opening single quote and closing single
quote, and avoid matching text followed by a curly quote when it is
not quoting. (Bug#35202)
2019-04-21 14:58:56 +03:00
Glenn Morris
cd2204f0ee Add a package: line to c-submit-bug-report.
* lisp/progmodes/cc-mode.el (c-submit-bug-report):
Add a Package: line for mail clients that do not support X- headers.
2019-04-20 11:38:47 -07:00
Noam Postavsky
037970f1af Document insert-image-file's return value (Bug#32978)
* lisp/image-file.el (insert-image-file): Document return value.
2019-04-19 15:19:45 -04:00
Braun Gábor
598b45adbd Autoload cua-toggle-rectangle-mark (Bug#34947)
* lisp/emulation/cua-base.el (cua-toggle-rectangle-mark): Autoload it.
Library cua-base.el binds cua-toggle-rectangle-mark to a key in the
:set function in (defcustom cua-rectangle-mark-key ...), so it should
ensure that the command is defined.

Copyright-paperwork-exempt: yes
2019-04-19 15:19:45 -04:00
Noam Postavsky
95bd56df88 Tell xclip not to expect job-control under eshell (Bug#35257)
* lisp/eshell/esh-proc.el (eshell-needs-pipe): Add "xclip" and other
programs that xclip.el (in GNU ELPA) calls with
`process-connection-type' bound to nil.
2019-04-19 15:19:10 -04:00
Basil L. Contovounesios
a4ad7bed18 Fix off-by-one-link error in image--set-property
* lisp/image.el (image--set-property): Ensure new value is set even
in the unlikely case that the plist is empty.  Fix off-by-one-link
error when deleting a property. (bug#35285)
* test/lisp/image-tests.el: New file.
(image--set-property): New test.
2019-04-18 16:07:55 +01:00
Stefan Monnier
7a608fc6f3 * lisp/progmodes/python.el: Be more careful about temp file removal
(python-shell-prompt-detect): Use unwind-protect to try and not leave
file behind in case of error.
2019-04-14 18:45:35 -04:00
Alexander Gramiak
e40f39bec3 Backport: * lisp/frame.el (frame--size-history): Fix infloop. (Bug#35272) 2019-04-14 15:52:07 -06:00
Robert Pluim
266c62290f Downcase charset
RFC 2046 specifies that the charset parameter is case-insensitive.

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-with-decoded-handle):
Downcase charset.  Suggested by Christophe TROESTLER
<Christophe.TROESTLER@umons.ac.be>.  (Bug#35265).
2019-04-14 19:39:17 +02:00
Basil L. Contovounesios
71be83ef8b Backport: Fix comment-empty-lines docstring (bug#35152)
* lisp/newcomment.el (comment-empty-lines): Consistently use US
commas in docstring.  Fix indentation of and typo in custom :type.

(cherry picked from commit 690c678fb6)
2019-04-11 11:41:45 +01:00
Alex Branham
559f64a0b6 Backport: Update documentation for indent-relative functions
* lisp/indent.el (indent-relative): Document what happens when there
  is no previous nonblank line.
* doc/lispref/text.texi (Relative Indent): Document
  indent-relative-first-indent-point instead of obsolete
  indent-relative-maybe. Fix documentation of which argument from
  'indent-relative' is used.

Bug#34858

(cherry picked from commit 10cd65878c)
2019-04-11 11:41:06 +01:00
Eric Abrahamsen
59994015f1 Note that choose-completion-string-functions funcs take four args
* lisp/simple.el (choose-completion-string-functions): Functions in
  this list actually need to accept four arguments, though the fourth
  should be ignored.
2019-04-09 20:13:47 -07:00
Mattias Engdegård
00a2d57adf Clarify the TESTFN argument to `alist-get'
* lisp/subr.el (alist-get):
Rephrase the initial text to clarify the meaning of the TESTFN argument.
It's an equality predicate, not a look-up function (Bug#35206).

(cherry picked from commit c81465580f)
2019-04-09 19:10:47 +03:00
Eli Zaretskii
646d33dbbc Fix doc strings of 'vc-version-diff' and 'vc-version-ediff'
* lisp/vc/vc.el (vc-version-diff, vc-version-ediff): Describe
arguments in the doc strings.  (Bug#35019)
2019-04-06 11:48:36 +03:00
Eli Zaretskii
6dc42c562c Improve commentary in frame.el
* lisp/frame.el: Improve commentary for display-* functions.
(Bug#35058)
2019-04-06 10:16:16 +03:00
Mauro Aranda
a8cffcf27f Fix typo in a doc string
* lisp/autorevert.el (global-auto-revert-mode): Fix a typo.
(Bug#35165)
2019-04-06 09:53:39 +03:00
Nicolas Petton
297a141ca3
; * lisp/ldefs-boot.el: Update. 2019-03-20 22:08:46 +01:00
Basil L. Contovounesios
bd5795e0d1 Fix url-copy-file arglist
* lisp/url/url-handlers.el: Silence byte-compiler.
(url-copy-file): Add 6th argument following change to copy-file in
2012-12-16T19:22:27+01:00!romain@orebokech.com. (bug#4410)
2019-03-19 16:31:23 +00:00
Eli Zaretskii
5ed05fbf62 Fix downloading updates for packages with non-ASCII descriptions
* lisp/emacs-lisp/package.el (package--download-one-archive):
Make sure archive contents are written using UTF-8 encoding.
(Bug#34909)
(list-packages): Set buffer's encoding to UTF-8.
2019-03-19 13:16:50 +02:00
Eli Zaretskii
0f325d193e Don't clobber 'comint-input-autoexpand' in 'read-shell-command'
* lisp/shell.el (shell-completion-vars): Set only the
buffer-local value of 'comint-input-autoexpand'.  (Bug#34815)
2019-03-15 11:15:06 +02:00
Alan Mackenzie
d026d9ad99 * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for Emacs 26.2 2019-03-10 14:27:38 +00:00
Eli Zaretskii
82d4b9872f Avoid errors in Auto Revert mode
* lisp/autorevert.el (auto-revert-buffers): Cancel
auto-revert-timer only if it is non-nil.  This avoids errors
on first invocation of Auto-Revert mode.
2019-03-09 12:51:33 +02:00
Martin Rudalics
60b5c1090d Provide more details in doc-string of 'delete-windows-on' (Bug#34749)
* lisp/window.el (delete-windows-on): Provide more details in
doc-string (Bug#34749).
2019-03-08 19:04:35 +01:00
Eli Zaretskii
f0be0f1bed Improve documentation of 'delete-windows-on'
* doc/emacs/windows.texi (Change Window): Document
'delete-windows-on'.

* lisp/window.el (delete-windows-on): Doc fix.  (Bug#34749)
2019-03-08 12:21:29 +02:00
Eli Zaretskii
f1bddc7823 * lisp/frame.el (make-frame-command): Doc fix. (Bug#34715) 2019-03-08 11:45:55 +02:00
Eli Zaretskii
2848623420 Avoid undefined behavior in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-send): Don't call match-string
if this is not a control command.  (Bug#34769)
2019-03-07 17:16:43 +02:00
Martin Rudalics
dbf1837940 * lisp/window.el (fit-frame-to-buffer): Make doc-string more accurate. 2019-03-06 14:45:05 +01:00
Basil L. Contovounesios
099ef446c2
Minor spelling and grammar fixes (bug#34756)
doc/misc/cc-mode.texi (Style Variables, Customizing Indentation):
doc/misc/ede.texi (Extending EDE, ede-project-placeholder)
(ede-target, ede-proj-target, ede-compilation-program, ede-compiler)
(ede-linker): Remove apostrophe from possessive "it's".
doc/lispintro/emacs-lisp-intro.texi (Find a File):
doc/misc/gnus-faq.texi (FAQ 2-2): Write "an other" as a single word.
doc/misc/gnus.texi (Article Buttons):
lisp/gnus/gnus-art.el (gnus-button-mid-or-mail-heuristic-alist)
(gnus-button-mid-or-mail-heuristic): Write singular number of
Message-IDs, rather than plural.
lisp/gnus/message.el (message-user-fqdn): Capitalize initialism.
2019-03-05 20:24:41 +00:00
Eli Zaretskii
f872b65b2f Improve documentation of 'auto-coding-functions'
* doc/lispref/nonascii.texi (Default Coding Systems): Clarify
that the functions in 'auto-coding-functions' are called both
for decoding and for encoding.

* lisp/international/mule.el (auto-coding-functions): Doc fix.
2019-03-02 10:42:29 +02:00
Eli Zaretskii
04cad5e8ea Fix visiting XML files with non-Unix EOL format
* lisp/international/mule.el (sgml-xml-auto-coding-function)
(sgml-html-meta-auto-coding-function): Don't use
'buffer-file-coding-system' if the buffer is unibyte.
(Bug#34704)
2019-03-02 10:32:06 +02:00
Glenn Morris
5ec7ca14d9 ; Auto-commit of loaddefs files. 2019-03-01 06:23:38 -05:00
Tobias Bading
560c84b62b Fix last change on 'compilation-parse-errors'
* lisp/progmodes/compile.el (compilation-parse-errors): Fix
previous change in this function.  (Bug#34479)

Copyright-paperwork-exempt: yes
2019-03-01 12:06:06 +02:00
Dmitry Gutov
1dff097393 Backport: js--re-search-backward-inner: Fix infloop
Fix JS indentation infloop reported in
https://github.com/mooz/js2-mode/issues/513.

* lisp/progmodes/js.el (js--re-search-backward-inner): Account for
multiline string literals.
* test/manual/indent/js.js: New test example.

(cherry picked from commit b01a4295c2)
2019-02-25 19:14:20 +03:00
Eli Zaretskii
3707ea434f Fix a typo in the doc string of 'regex-opt'
* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix example in
the doc string.  (Bug#34596)
2019-02-22 10:12:14 +02:00
Nicolas Petton
ff9c962079
; * lisp/ldefs-boot.el: Update. 2019-02-20 17:52:24 +01:00
Glenn Morris
a19bfb7a5e Remove .art from the default list of ImageMagick extensions
It seems that .art files can be non-image files that
ImageMagick mistakenly treats as extremely large images.
Real .art images seem rare.
* lisp/image.el (imagemagick-enabled-types): Remove ART.  (Bug#22289)
2019-02-19 22:04:19 -08:00
Stefan Monnier
d49cdd92fc * lisp/minibuffer.el (completion-table-dynamic): Improve docstring 2019-02-18 13:00:44 -05:00
David Pathakjee
5dc4e51e51 * lisp/emacs-lisp/debug.el (debug-on-variable-change): Doc fix. (Bug#34518)
Copyright-paperwork-exempt: yes
2019-02-18 19:13:04 +02:00
Paul Eggert
b5e66f46a6 Update citations of Internet RFCs
For example, RFC 822 has been obsoleted by RFC 2822, which in
turn has been obsoleted by RFC 5322.
* doc/emacs/ack.texi, doc/lispref/os.texi:
* doc/misc/emacs-mime.texi, doc/misc/gnus-coding.texi:
* doc/misc/gnus.texi, doc/misc/sc.texi:
* lisp/calendar/parse-time.el, lisp/gnus/gnus-cite.el:
* lisp/gnus/gnus-util.el, lisp/gnus/message.el:
* lisp/gnus/mm-bodies.el, lisp/gnus/nnrss.el:
* lisp/mail/feedmail.el, lisp/mail/ietf-drums.el:
* lisp/mail/mail-extr.el, lisp/mail/mail-utils.el:
* lisp/mail/mailclient.el, lisp/mail/mailheader.el:
* lisp/mail/rfc2047.el, lisp/mail/rfc822.el, lisp/mail/rmail.el:
* lisp/mail/sendmail.el, lisp/mail/smtpmail.el:
* lisp/mail/supercite.el, lisp/mh-e/mh-e.el:
* lisp/mh-e/mh-utils.el, lisp/net/imap.el:
* lisp/net/newst-backend.el, lisp/org/org-id.el:
* lisp/ps-samp.el, lisp/simple.el, lisp/url/url-util.el:
Update RFC citations.
2019-02-16 12:00:02 -08:00
Eli Zaretskii
57ece2a052 Fix handling of manpage references divided by hyphenation
* lisp/man.el (Man-reference-regexp): Accept a newline as part
of a manpage name only if it's preceded by a hyphen.  (Bug#34286)
(Man-translate-references): Adapt to change in
'Man-reference-regexp'.
(Man-default-man-entry): Support references divided between
two lines by an ASCII hyphen.  This is a left-over from fixing
bug#6289.
2019-02-16 11:51:25 +02:00
Victor J. Orlikowski
f721084f78 Avoid errors in erc-dcc.el when erc-dcc-verbose is non-nil
* lisp/erc/erc-dcc.el (erc-dcc-get-filter): Don't assume STR
is always a string.  Use 'buffer-name' to get the DCC file
name, as buffer-file-name is not set in the process buffer.

Copyright-paperwork-exempt: yes
2019-02-15 10:13:00 +02:00
Daniel Lopez
3cba92d42e Fix faces in compilation messages
* lisp/progmodes/compile.el (compilation-parse-errors): Don't
clobber the value of TYPE inside the loop.  (Bug#34479)

Copyright-paperwork-exempt: yes
2019-02-15 09:59:16 +02:00
Katsumi Yamaoka
25d9fe24a6 Work for empty MIME attachments (related to bug#34387)
* mm-view.el (mm-inline-text):
Make undisplayer do nothing if the part is empty.

* mm-decode.el (mm-copy-to-buffer): Work for empty MIME part.
* mml.el (mime-to-mml): Ditto.
2019-02-14 02:16:05 +00:00
Jackson Ray Hamilton
58e0e929af Backport: js-indent-align-list-continuation: Make variable safe
* lisp/progmodes/js.el (js-indent-align-list-continuation): Indicate
variable is safe as a file-local variable.  This fixes the
js-indent-align-list-continuation-nil test when run with make.

(cherry picked from commit dd319f2711)
2019-02-14 04:18:43 +03:00
Eli Zaretskii
3aaa2d2058 Fix Hunspell invocation for discovering its dictionaries
* lisp/textmodes/ispell.el
(ispell-find-hunspell-dictionaries): Invoke Hunspell with the
-a switch, to prevent it from initializing its curses UI.
(Bug#34272)
2019-02-11 18:07:35 +02:00
Eli Zaretskii
b8c70172f3 Improve documentation of 'date-to-time' and 'parse-time-string'
* doc/lispref/os.texi (Time Parsing): Document
'parse-time-string', and refer to it for the description of
the argument of 'date-to-time'.

* lisp/calendar/time-date.el (date-to-time): Refer in the doc
string to 'parse-time-string' for more information about the
format of the DATE argument.  (Bug#34303)
2019-02-08 10:33:13 +02:00
Nick Drozd
46095a7dcb Fix downloading of URLs that end in a slash
* lisp/net/eww.el (eww-download-callback): Fix download URL
file name.  Previously this wasn't handling download URLs
correctly, resulting in all downloaded pages being named
"!", "!(1)", etc.  (Bug#34291)
2019-02-08 09:40:31 +02:00