1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

138548 Commits

Author SHA1 Message Date
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
Lars Ingebrigtsen
a90c5684a3 Add a NEWS entry for message citation levels 2019-09-23 13:15:53 +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
Michael Albinus
a877e2217a ; Enable traces for shadowfile-tests on hydra 2019-09-23 13:08:02 +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
Paul Eggert
78669517dc Update from Gnulib
This incorporates:
2019-09-22 Update some URLs
2019-09-15 fcntl-h: fix compilation error of creat.c on MSVC
2019-09-15 creat: new module
2019-09-15 access: new module
2019-09-09 Add option to assume best, not worst, when cross-compiling.
* build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
* lib/careadlinkat.c, lib/careadlinkat.h, lib/count-leading-zeros.h:
* lib/count-trailing-zeros.h, lib/diffseq.h, lib/fcntl.in.h:
* lib/ftoastr.c, lib/get-permissions.c:
* lib/ieee754.in.h, lib/inttypes.in.h, lib/mktime.c, lib/open.c:
* lib/pathmax.h, lib/pipe2.c, lib/stddef.in.h, lib/stdint.in.h:
* lib/stdlib.in.h, lib/str-two-way.h, lib/string.in.h, lib/time.in.h:
* lib/timegm.c, lib/unistd.in.h, m4/canonicalize.m4:
* m4/extern-inline.m4, m4/fcntl_h.m4, m4/fdopendir.m4:
* m4/getgroups.m4, m4/getopt.m4, m4/gettimeofday.m4:
* m4/gnulib-common.m4, m4/largefile.m4:
* m4/lstat.m4, m4/memmem.m4, m4/mktime.m4, m4/nocrash.m4, m4/open.m4:
* m4/pselect.m4, m4/putenv.m4, m4/readlink.m4, m4/regex.m4:
* m4/symlink.m4, m4/unistd_h.m4, m4/utimens.m4, m4/utimes.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/open-slash.m4: New file, copied from Gnulib.
2019-09-22 23:51:44 -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
a5eae3d15f Remove Gnus posting style reference to message-reply-headers
* doc/misc/gnus.texi (Posting Styles): Remove bit about
message-reply-headers, because it has never worked.
2019-09-23 00:45:33 +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
9d96aa5ae3 message-reply-headers doc fix
* doc/misc/gnus.texi (Posting Styles): Update the type of the
message-reply-headers object.
2019-09-23 00:26:40 +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
942665d6d2 Fix warning about @xref in parenthesis
* doc/misc/gnus.texi (Window Layout): Use @pxref in parentheses.
2019-09-22 14:28:13 +02:00
Lars Ingebrigtsen
32d6e07e21 Note that image-mode automatically rotates 2019-09-22 14:23:40 +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
Andreas Schwab
2cc9c45e44 Fix compilation with CHECK_STRUCTS
* src/pdumper.c (dump_buffer): Update hash of struct buffer.
2019-09-22 14:02:15 +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
Stefan Kangas
14e7c01fee * src/fns.c (Fbuffer_hash): Improve doc string. 2019-09-22 01:30:01 +02: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
Paul Eggert
d49d6ea967 Revert too-picky file-access tests
Problem reported by Andreas Schwab (Bug#37475).
* doc/lispref/files.texi (Writing to Files)
(Testing Accessibility, Kinds of Files):
Document that accessibility and file-type predicates return nil
if there is trouble determining accessibility or type.
* etc/NEWS: Adjust, and list the affected primitives.
* src/callproc.c (init_callproc): Go back to Ffile_exists_p.
* src/fileio.c (PICKY_EACCES, file_test_errno):
Remove.  All uses removed.
(Ffile_name_case_insensitive_p, Ffile_exists_p, Ffile_symlink_p)
(Ffile_directory_p, Ffile_regular_p): Document that these
functions return nil if there is trouble.
(Ffile_name_case_insensitive_p, check_file_access)
(Ffile_writable_p, Ffile_symlink_p, Ffile_directory_p)
(Ffile_accessible_directory_p, Ffile_regular_p)
* src/lread.c (Fload):
Go back to treating trouble in determining the answer as if the
file were missing.
* src/fileio.c (Ffile_newer_than_file_p): Use file_attribute_errno
not file_test_errno, since returning nil is not appropriate when
there are two files to test; e.g., in the rare cases where both
file timestamps have overflowed then neither t nor nil is correct.
2019-09-21 11:38:36 -07:00
Eli Zaretskii
56213b15e6 ; * etc/NEWS: Tweak recently added entries. 2019-09-21 21:33:04 +03: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
e9724b559e Fix two ` characters in NEWS 2019-09-21 12:09:10 +02: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
Lars Ingebrigtsen
2c7224f894 Allow reveal.el to toggle `display' properties
* lisp/reveal.el (reveal-open-new-overlays): Allow also toggling
`displa' overlay properties (bug#28785).
2019-09-21 12:04:00 +02:00
Eli Zaretskii
8147d939ae ; * etc/TODO: Update. 2019-09-21 12:03:31 +03:00
Lars Ingebrigtsen
c61bfe0a3a Mention image caching in the `image-size' doc string
* src/image.c (Fimage_size): Mention that this function caches
images, and what to do about that (bug#33275).
2019-09-21 10:16:10 +02:00
Lars Ingebrigtsen
321175434a Mention how to listen to all interfaces in make-network-process
* src/process.c (Fmake_network_process): Mention how to listen to
all interfaces (bug#34617).
2019-09-21 09:58:13 +02:00
Michael Albinus
8f5da5587f * lisp/net/tramp.el (tramp-handle-file-modes): Check for nil file-attributes. 2019-09-21 09:53:18 +02:00