Commit graph

73995 commits

Author SHA1 Message Date
Alan Mackenzie
ef0fc0bed1 New edebug-spec, nested-backquote-form. This fixes bug #31090
* lisp/emacs-lisp/edebug.el: (nested-backquote-form): a new edebug-spec which
handles nested backquote structures without a , or ,@ "between" the outer and
inner backquotes.
(backquote-form): Use nested-backquote-form.
2019-09-24 17:06:20 +00:00
Michael Albinus
38517651d0 * lisp/net/tramp-sh.el (tramp-get-remote-stat): Ban "stat" on Solaris. 2019-09-24 17:56:55 +02:00
Noah Swainland
88ca4dc45b (calc): Fix link in doc string
* lisp/calc/calc.el (calc): Fix link in doc string (bug#37500).

Copyright-paperwork-exempt: yes
2019-09-24 17:52:47 +02:00
Lars Ingebrigtsen
ea5c79f657 Allow controlling when to send cookies when retrieving images in shr
* lisp/net/shr.el (shr--use-cookies-p): New function.
(shr-tag-img): Use it.
(shr-cookie-policy): New variable.
(shr-save-contents): Use cookies.

* doc/misc/eww.texi (Advanced): Document it.
2019-09-24 17:48:41 +02:00
Lars Ingebrigtsen
f9f8dcae70 Allow url-insert-file-contents to work on 304 responses
* lisp/url/url-http.el (url-http--insert-file-helper): If the
server answers 304 Not modified, then that's not an error
(bug#26063).
2019-09-24 10:43:32 +02:00
Lars Ingebrigtsen
881f620930 Clean up url-parse-args slightly
* lisp/url/url-util.el (url-parse-args): Don't leave temporary
buffer behind.  Clean up slightly.
2019-09-24 10:43:32 +02:00
Lars Ingebrigtsen
1f137133ed Fix old problem with HTTPS HTTP 0.9 sentinels
* lisp/url/url-http.el (url-http-end-of-document-sentinel): Pass
on the tls parameter if we have HTTPS (bug#14983).
2019-09-24 10:01:34 +02:00
Lars Ingebrigtsen
61a2b3ca7d Allow scrolling the NSM window
* lisp/net/nsm.el (nsm-query-user): Allow moving
backwards/forwards in the NSM buffer if the window is too small to
show all the details (bug#28069).
2019-09-24 08:33:45 +02:00
Wilson Snyder
d3f8279422 Verilog-Mode collected updates.
* lisp/progmodes/verilog-mode.el (verilog-auto-inst-param): Add regexp
paramter to AUTOINSTPARAM to select which parameters to export.  Reported
by Vish S.
(verilog-build-defun-re): Fix `verilog-goto-defun' to find automatic
function/tasks, bug1492.  Reported by Enze Chi.
(verilog-preprocessor): Update default.
2019-09-23 18:49:25 -04:00
Lars Ingebrigtsen
fc64a0c0e2 Rename "dumbquotes" to "smartquotes" in Gnus
* doc/misc/gnus.texi (Article Washing): Adjust documentation.

* etc/refcards/gnus-refcard.tex (subsection*{Notes}): Ditto

* lisp/gnus/gnus-art.el (gnus-article-smartquotes-map): Rename
from gnus-article-dumbquotes-map and add obsolete alias.
(article-treat-smartquotes): Ditto.

* lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Adjust menus.
2019-09-24 00:42:47 +02:00
Jan Beich
ac1507a8b6 mml-smime-openssl-sign): Use all the keys
* lisp/gnus/mml-smime.el (mml-smime-openssl-sign): Use all the
keys in `smime-keys' for this identifier (bug#17780).
2019-09-23 22:11:33 +02:00
Lars Ingebrigtsen
131b91c7b9 Fix regression in mm-possibly-verify-or-decrypt by previous patch
* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Remove debugging
2019-09-23 21:56:10 +02:00
Lars Ingebrigtsen
825fd4d341 Fix regression in mm-possibly-verify-or-decrypt by previous patch
* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Be less
strict about what's considered a success.
2019-09-23 21:55:27 +02:00
Lars Ingebrigtsen
8b8942da0b Fix S/MIME continuation header when sending
* lisp/gnus/mml-smime.el (mml-smime-epg-sign): Fix continuation
header.
2019-09-23 21:51:28 +02:00
Lars Ingebrigtsen
83864ac7af Fix cedet compilation warning
* lisp/cedet/semantic/db.el (semanticdb-dirty-p): Fix compilation
warning by moving to after definition.
2019-09-23 19:20:54 +02:00
Lars Ingebrigtsen
4ce81556b7 Make mm-possibly-verify-or-decrypt pass decryption error
* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): If
there's an error, report the error back in a new part (bug#25649).
2019-09-23 18:23:22 +02:00
Lars Ingebrigtsen
babc595909 * lisp/dired-aux.el (dired-copy-file-recursive): Make prompt clearer. 2019-09-23 17:35:03 +02:00
Lars Ingebrigtsen
3f45c14035 Don't bug out on invalid addresses in mml-secure-check-user-id
* lisp/gnus/mml-sec.el (mml-secure-check-user-id): Don't bug out
on invalid addresses (bug#33613).
2019-09-23 17:34:41 +02:00
Lars Ingebrigtsen
bdc222b268 Tweak how much <sup>/<sub> raises/lowers text in shr
* lisp/net/shr.el (shr-tag-sup, shr-tag-sub): Raising by 0.5 gives
very ugly displays.  0.2 seems sufficient for legibility.
2019-09-23 16:05:16 +02:00
Lars Ingebrigtsen
ce49efd4c6 Signal errors if EPA can't verify data
* lisp/epa.el (epa-verify-region): Signal an error if the region
couldn't be verified (bug#14720).
(epa-verify-file): Say that the file couldn't be verified instead
of just "...done".
2019-09-23 14:09:48 +02:00
Lars Ingebrigtsen
abdc82c08f Make "Show Hidden Headers" in Message buffers more obvious
* lisp/gnus/message.el (message-widen-and-recenter): New command
to ensure that we show most of the headers (bug#23252).
(message-mode-field-menu): Use it.
2019-09-23 13:24:44 +02:00
Hong Xu
4c1edb0228 Add different faces for different citation levels in Message mode
* message.el (message-font-lock-keywords)
(message-font-lock-make-cited-text-matcher): Add support for
different faces for different citation levels.  The faces are
defined in the faces named `message-cited-text-N': N of the
Mth citation level will be M mod 4.
(message-cited-text-1, message-cited-text-2)
(message-cited-text-3, message-cited-text-4): Add customization
for the faces of 4 different citation level.  In the future, the
number of faces may increase, as the code is flexible enough to
automatically deal with that.
(message-cite-level-function): Add a function to customize the
determination of cite levels given the prefix of the cited text
(bug#25022).
2019-09-23 13:09:48 +02:00
Lars Ingebrigtsen
87b685f436 Add an `authinfo-hidden' variable
* lisp/auth-source.el (authinfo-hidden): New variable.
(authinfo--hide-passwords): Use it to allow users to decide what
to hide.
2019-09-23 12:27:42 +02:00
nitishch
0f45f383b9 "]" is not a standard citation prefix character
* lisp/mail/sendmail.el (mail-citation-prefix-regexp): Don't
regard "]" as a citation prefix character (bug#25150).  This
allows some motion commands (like forward-sexp) to behave more as
expected in Message mode buffers.

Copyright-paperwork-exempt: yes
2019-09-23 12:02:08 +02:00
Lars Ingebrigtsen
72b2b4a5db Keep a cache of encoded Message contents to avoid re-GPG-in data
* lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Use it to avoid
re-encoding.

* lisp/gnus/message.el (message-encoded-mail-cache): New variable.

* lisp/gnus/message.el (message-send-mail): Store encoded.
(message--cache-encoded): New function.
(message-do-fcc): Store encoded (bug#25155).
2019-09-23 11:46:11 +02:00
Lars Ingebrigtsen
65ee105d80 * lisp/gnus/message.el (message-send-mail): Remove misleading comment. 2019-09-23 11:27:26 +02:00
Juanma Barranquero
5e86db05fc Fix arg name of `text-property-search-{forward|backward}' (bug#37488)
* lisp/emacs-lisp/text-property-search.el
(text-property-search-forward, text-property-search-backward):
Rename arg NOT-IMMEDIATE to NOT-CURRENT.  Also fix docstring.
2019-09-23 09:20:03 +02:00
Paul Eggert
946a56a10f Update some URLs
This mostly changes http: to https: in URLs.  It also updates
some URLs that have moved, removes some URLs that no longer
work, recommends against using procmail (procmail.org no
longer works), and removes some mentions of the
no-longer-existing Gmane, LPF and VTW.
It doesn't update all URLs, just the ones I had time for.
* GNUmakefile (help):
* admin/admin.el (manual-doctype-string):
* admin/charsets/Makefile.in (${charsetdir}/ALTERNATIVNYJ.map):
* admin/charsets/mapconv:
* lisp/net/soap-client.el (soap-create-envelope):
* lisp/org/org.el (org-doi-server-url):
* lisp/textmodes/bibtex.el (bibtex-generate-url-list):
Prefer https: to http: un URLs.
2019-09-23 00:12:52 -07:00
Stephen Gildea
a33cda168e Expand time-stamp unit tests to cover all formatting options
* time-stamp-tests.el: Expand unit tests to cover all formatting options.
These tests validate time-stamp-pattern formatting that has existed
since at least Emacs 22 (released in 2007).  The tests cover both
documented behavior and behavior implemented to support future migrations.

* time-stamp.el (time-stamp-string): Add a second argument (TIME) to
open a testing seam.  Have the unit tests call this public function.

* time-stamp.el (time-stamp-string, time-stamp-string-preprocess):
Remove the second pass through time-string--format.  (Previously both
functions called it.)  It was used only to handle "%", but this is now
handled by having time-stamp-string-preprocess not double it.
Not doubling the "%" in time-stamp-string-preprocess fixes the padding
of "%2%", which was discovered by the new unit tests to be wrong.
2019-09-22 20:31:59 -07:00
Lars Ingebrigtsen
4eac64fcf2 Clarify `debug' doc string
* lisp/emacs-lisp/debug.el (debug): Mention that inhibit-redisplay
will inhibit the function.
2019-09-23 02:13:26 +02:00
Lars Ingebrigtsen
ff7560b6ff Make Message warn about invalid addresses
* lisp/gnus/message.el (message-check-recipients): Warn about
invalid email addresses (bug#32639).
2019-09-23 01:06:15 +02:00
Lars Ingebrigtsen
1f89fedc18 gnus-use-atomic-windows should default to nil
* lisp/gnus/gnus-win.el (gnus-use-atomic-windows): Default to nil.
2019-09-23 00:29:42 +02:00
Lars Ingebrigtsen
e3bd6c406d mailclient can't send attachments
* lisp/mail/mailclient.el (mailclient-send-it): Warn about trying
to send attachments (bug#34992).
2019-09-23 00:07:07 +02:00
Jackson Ray Hamilton
9aacc443d9
Ignore comments and strings when recognizing JSX
* lisp/progmodes/js.el (js-syntax-propertize): Ignore comments and
strings.
* test/manual/indent/jsx-comment-string.jsx: New test.
2019-09-22 12:55:44 -07:00
Jackson Ray Hamilton
ee89c1cdb5
Make js-jsx-regexps case-sensitive
The regexp in this list used a capitalized “React” because it actually
should be capitalized like that.  Otherwise, the following code would
produce a false positive match: import Thing from './react/Thing'

* lisp/progmodes/js.el (js-jsx-regexps): Update docstring.
(js-jsx--detect-and-enable): Match case-sensitively when determining
whether JSX should be enabled.
2019-09-22 12:03:03 -07:00
Paul Eggert
2f600e97e7 Avoid crashes when casifying noncontiguous regions
This is a followon fix for Bug#37477.
* lisp/simple.el (region-extract-function):
Use setq here, since the var is now defined in C code.
* src/casefiddle.c (casify_pnc_region): New function.
(Fupcase_region, Fdowncase_region, Fcapitalize_region)
(Fupcase_initials_region): Use it.
(Fupcase_initials_region): Add region-noncontiguous-p flag
for consistency with the others.  All uses changed.
(syms_of_casefiddle): Define Qbounds, Vregion_extract_function.
* src/insdel.c (prepare_to_modify_buffer_1):
* src/keyboard.c (command_loop_1):
Use Vregion_extraction_function.
* src/insdel.c (syms_of_insdel): No need to define
Qregion_extract_function.
* test/src/casefiddle-tests.el (casefiddle-oldfunc): New var.
(casefiddle-loopfunc, casefiddle-badfunc): New functions.
(casefiddle-invalid-region-extract-function): New test.
2019-09-22 10:45:14 -07:00
Stefan Monnier
dddff96a58 * lisp/help-fns.el: Fix missing dependency 2019-09-22 12:54:48 -04:00
Lars Ingebrigtsen
902e9297aa Remove references to domain that no longer exists
* doc/misc/gnus-faq.texi (FAQ 7-1):
* doc/misc/gnus.texi (Maildir):
* lisp/gnus/nnmaildir.el: qmail.org no longer exists.
2019-09-22 14:49:57 +02:00
Lars Ingebrigtsen
d8157a1133 Fix "password" detection in authinfo mode
* lisp/auth-source.el (authinfo--hide-passwords): Ensure that we
only hit actual "password" entries and not "foo-password" and the
like.
2019-09-22 14:35:09 +02:00
Lars Ingebrigtsen
8542f66602 Automatically rotate images in image-mode based on Exif data
* lisp/image-mode.el (image-toggle-display-image): Get the
orientation from the Exif data, if any.
2019-09-22 14:21:47 +02:00
Lars Ingebrigtsen
0c9a9d4219 Adjust the exif.el interface functions
* lisp/image/exif.el (exif-parse-buffer): New function.
(exif-orientation): Ditto.
(exif-error): New error symbol, and adjust all error signalling to
only use that signal.
2019-09-22 14:21:47 +02:00
Eric Abrahamsen
e1a45c26c4 New option for making Gnus window layouts atomic
* lisp/gnus/gnus-win.el (gnus-use-atomic-windows): New boolean
  customization option.
  (gnus-configure-windows): When removing old window layouts, check
  for and remove atomicity.
  (gnus-configure-windows): When gnus-use-atomic-windows is non-nil,
  make Gnus window layouts atomic.
* doc/misc/gnus.texi (Window Layout): Document.
2019-09-21 18:41:22 -07:00
Juri Linkov
2879c3ec1b Support rectangular regions in capitalize-region and capitalize-dwim.
* lisp/simple.el (capitalize-dwim): Add arg region-noncontiguous-p
in capitalize-region call.

* src/casefiddle.c (Fcapitalize_region): Add arg region-noncontiguous-p.
If non-nil, operate on multiple chunks.  (Bug#37477)
(Fdowncase_region): Use builtin symbol Qregion_extract_function
rather than calling intern.
2019-09-22 02:00:01 +03:00
Eric Abrahamsen
a34216351f Use eieio-object-p, not obsolete object-p
Continued fixes for a81223aeaa

* lisp/gnus/gnus-registry.el (gnus-registry-article-marks-to-names,
  gnus-registry-article-marks-to-chars): object-p is obsolete.
2019-09-21 14:39:43 -07:00
Stefan Kangas
b86bc62ca5 Several doc fixes in package.el
* lisp/emacs-lisp/package.el (top-level)
(package-check-signature, package--from-builtin)
(package-desc-full-name, package-desc-suffix)
(package-desc--keywords, package--bi-desc)
(package-process-define-package, package-archive-base)
(package-install-from-archive, package-install-from-buffer)
(package-install-file, package-autoremove, describe-package-1)
(package-install-button-action, package-delete-button-action)
(package-keyword-button-action, package-make-button)
(package--print-email-button, package-list-unversioned)
(package--emacs-version-list, package-menu-toggle-hiding)
(package-hidden-regexps, package-menu-hide-package)
(package-menu-get-status, package-menu--find-upgrades)
(package-menu--post-refresh): Doc fixes.  (Bug#37410)
2019-09-21 23:09:14 +02:00
Noam Postavsky
2f3544362c Remove lisp/erc/ file-local indent-tabs-mode settings
* lisp/erc/erc-autoaway.el:
* lisp/erc/erc-backend.el:
* lisp/erc/erc-button.el:
* lisp/erc/erc-compat.el:
* lisp/erc/erc-dcc.el:
* lisp/erc/erc-fill.el:
* lisp/erc/erc-ibuffer.el:
* lisp/erc/erc-identd.el:
* lisp/erc/erc-imenu.el:
* lisp/erc/erc-join.el:
* lisp/erc/erc-list.el:
* lisp/erc/erc-log.el:
* lisp/erc/erc-match.el:
* lisp/erc/erc-menu.el:
* lisp/erc/erc-netsplit.el:
* lisp/erc/erc-networks.el:
* lisp/erc/erc-notify.el:
* lisp/erc/erc-page.el:
* lisp/erc/erc-pcomplete.el:
* lisp/erc/erc-replace.el:
* lisp/erc/erc-ring.el:
* lisp/erc/erc-services.el:
* lisp/erc/erc-sound.el:
* lisp/erc/erc-speedbar.el:
* lisp/erc/erc-stamp.el:
* lisp/erc/erc-track.el:
* lisp/erc/erc-truncate.el:
* lisp/erc/erc-xdcc.el:
* lisp/erc/erc.el: Remove indent-tabs-mode setting, so that we follow
Emacs' global indent-tabs-mode=nil setting (and much of the
indentation in these fails is already spaces anyway).  Also remove
tab-width=8 settings, since those are redundant with the setting in
the top-level .dir-locals.el.
2019-09-21 14:09:30 -04:00
Lars Ingebrigtsen
b5afd295cc Fix some commentary typos in exif.el
* lisp/image/exif.el (exif--parse-exif-chunk)
(exif--parse-directory): Commentary typo fixes.
2019-09-21 18:27:53 +02:00
Lars Ingebrigtsen
535b65875e Add an Exif parsing library
* lisp/image/exif.el: New file (bug#23070).

* test/lisp/image/exif-tests.el: Add some basic tests.
2019-09-21 18:13:11 +02:00
Alan Mackenzie
56985dd8a6 CC Mode: Fix wrong fontification of FOO in ASSERT (FOO && !BAR)
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't recognize the
construct in CASE 18, unless additionally at-decl-end is set.
2019-09-21 12:35:34 +00:00
Lars Ingebrigtsen
893111f48a Hide passwords in .authinfo and .netrc files
* lisp/auth-source.el (authinfo-mode): New mode (bug#28785).
(authinfo--hide-passwords, authinfo--toggle-display): New functions.

* lisp/files.el (auto-mode-alist): Use authinfo-mode for .authinfo
and .netrc files.
2019-09-21 12:04:00 +02:00