]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoFix problem with changing to correct NNTP server
Lars Ingebrigtsen [Fri, 27 Sep 2019 00:17:14 +0000 (02:17 +0200)]
Fix problem with changing to correct NNTP server

* lisp/gnus/nntp.el (nntp-close-server):
* lisp/gnus/nnimap.el (nnimap-close-server):
* lisp/gnus/gnus-int.el (gnus-close-server): Take an optional DEFS
parameter to enable switching to the correct nnoo server (bug#20319)
when there's two servers with the same address.

5 years agonnimap.el: support additional expunge options
Nikolaus Rath [Thu, 26 Sep 2019 23:39:13 +0000 (01:39 +0200)]
nnimap.el: support additional expunge options

* lisp/gnus/nnimap.el (nnimap-close-group)
(nnimap-request-expire-articles, nnimap-delete-article)
(nnimap-request-scan): Add new 'never, 'immediate, and 'on-exit
settings for nnimap-expunge (bug#20670).

5 years agoTweak updating of readedness marks on the IMAP server
Lars Ingebrigtsen [Thu, 26 Sep 2019 23:14:01 +0000 (01:14 +0200)]
Tweak updating of readedness marks on the IMAP server

* lisp/gnus/nnimap.el (nnimap-request-set-mark): Ensure that
ticking/unticking also toggles readedness on the IMAP server
(bug#22590).

5 years ago* src/w32fns.c (Fw32_register_hot_key): Fix typo in docstring
Juanma Barranquero [Thu, 26 Sep 2019 23:08:09 +0000 (01:08 +0200)]
* src/w32fns.c (Fw32_register_hot_key): Fix typo in docstring

5 years agoFix nnir searching on nested Gnus topics
Lars Ingebrigtsen [Thu, 26 Sep 2019 22:43:43 +0000 (00:43 +0200)]
Fix nnir searching on nested Gnus topics

* lisp/gnus/nnir.el (gnus-group-make-nnir-group): On a topic line,
search all the groups, even in sub-topics (bug#28090).

5 years agoDon't hard-code the RSS structure so much in nnrss
Lars Ingebrigtsen [Thu, 26 Sep 2019 22:33:40 +0000 (00:33 +0200)]
Don't hard-code the RSS structure so much in nnrss

* lisp/gnus/nnrss.el (nnrss-get-namespace-prefix): Find the URL in
any section in the RSS (bug#34685).

5 years agoAdd a new `dom-search' function
Lars Ingebrigtsen [Thu, 26 Sep 2019 22:32:37 +0000 (00:32 +0200)]
Add a new `dom-search' function

* doc/lispref/text.texi (Document Object Model): Document it.

* lisp/dom.el (dom-search): New function.

5 years agoMake forward-button support help-echo function (bug#37515)
Katsumi Yamaoka [Thu, 26 Sep 2019 21:43:48 +0000 (21:43 +0000)]
Make forward-button support help-echo function (bug#37515)

* lisp/button.el (forward-button): Support help-echo function.

5 years agoInclude ImageMagick file name regexps in image-file-name-regexp
Juri Linkov [Thu, 26 Sep 2019 19:26:27 +0000 (21:26 +0200)]
Include ImageMagick file name regexps in image-file-name-regexp

* lisp/image-file.el (image-file-name-regexp): If compiled with
ImageMagick, include file name extensions it can handle (bug#9516).

5 years ago; Add traces to shadowfile-tests.el
Michael Albinus [Thu, 26 Sep 2019 18:55:49 +0000 (20:55 +0200)]
; Add traces to shadowfile-tests.el

5 years agomm-possibly-verify-or-decrypt should only issue errors when decrypting
Lars Ingebrigtsen [Thu, 26 Sep 2019 17:51:23 +0000 (19:51 +0200)]
mm-possibly-verify-or-decrypt should only issue errors when decrypting

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Only do
the warning about failed decryption when we're handing encrypted
parts, not when doing verification.

5 years agoAdd key bindings for ibuffer filter commands
Stefan Kangas [Sun, 4 Aug 2019 17:34:01 +0000 (19:34 +0200)]
Add key bindings for ibuffer filter commands

* lisp/ibuffer.el (ibuffer--filter-map): Add keybinding for
'ibuffer-filter-chosen-by-completion' and
'ibuffer-filter-by-directory'.  (Bug#6847)

5 years agoRemove support for destructive splicing in elisp
Stefan Kangas [Fri, 13 Sep 2019 23:49:23 +0000 (01:49 +0200)]
Remove support for destructive splicing in elisp

* src/lread.c (read1): Don't handle destructive splicing in
backquote expressions (e.g. ",.<identifier>").  (Bug#19790)
(syms_of_lread): Remove Qcomma_dot.
* src/print.c (print_object): Don't check for Qcomma_dot.
* test/src/eval-tests.el
(eval-tests-19790-backquote-comma-dot-substitution): New test.
* etc/NEWS: Announce it.

5 years agoFix error in display-startup-screen
Lars Ingebrigtsen [Thu, 26 Sep 2019 16:27:03 +0000 (18:27 +0200)]
Fix error in display-startup-screen

* lisp/startup.el (use-fancy-splash-screens-p): Fix error in
display-startup-screen if create-image fails (bug#22072).

5 years agoAdd new function to clear tags in tabulated list
Stefan Kangas [Mon, 16 Sep 2019 01:48:47 +0000 (03:48 +0200)]
Add new function to clear tags in tabulated list

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-clear-all-tags):
New function to clear all tags from padding area in current buffer.
* doc/lispref/modes.texi (Tabulated List Mode): Document it.
* etc/NEWS: Announce it.

5 years agoDon't indent unrelated widgets following widget of type 'other
Mauro Aranda [Thu, 26 Sep 2019 15:16:28 +0000 (17:16 +0200)]
Don't indent unrelated widgets following widget of type 'other

* lisp/wid-edit.el (widget 'other): Use \n instead of the %n escape in the
:format property of this widget.  If %n is used at the end of the
format string, unrelated widgets get indented.  (Bug#12533)

* test/wid-edit-tests.el (widget-test-indentation-after-%n)
(widget-test-indentation-after-newline)
(widget-test-newline-and-indent-same-widget): New tests.

5 years agoMake mm-view-pkcs7-verify use epg if requested
Lars Ingebrigtsen [Thu, 26 Sep 2019 14:32:13 +0000 (16:32 +0200)]
Make mm-view-pkcs7-verify use epg if requested

* lisp/gnus/mm-view.el (mm-view-pkcs7-verify): Respect
mml-smime-use (bug#18393).

5 years agoMake it possible to view S/MIME verified emails
Lars Ingebrigtsen [Thu, 26 Sep 2019 14:24:29 +0000 (16:24 +0200)]
Make it possible to view S/MIME verified emails

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): When
dissecting the result, we need a header (bug#18393).

* lisp/gnus/mm-view.el (mm-view-pkcs7-verify): Insert the verified
string.

* lisp/gnus/smime.el (smime-verify-region): Return the verified
string.

5 years agoFix recent gnus-rescale-image change
Lars Ingebrigtsen [Thu, 26 Sep 2019 13:47:06 +0000 (15:47 +0200)]
Fix recent gnus-rescale-image change

* lisp/gnus/gnus-util.el (gnus-rescale-image): Don't bug out on
non-graphical Emacs versions.

5 years ago; Fix typo and improve phrasing of last commit
Mattias Engdegård [Thu, 26 Sep 2019 12:40:48 +0000 (14:40 +0200)]
; Fix typo and improve phrasing of last commit

5 years ago* etc/NEWS: Note removal of internal rx symbols (bug#37517)
Mattias Engdegård [Thu, 26 Sep 2019 11:15:03 +0000 (13:15 +0200)]
* etc/NEWS: Note removal of internal rx symbols (bug#37517)

5 years ago* lisp/desktop.el (desktop-read): With argument, ask the user for DIRNAME.
Juanma Barranquero [Thu, 26 Sep 2019 10:15:36 +0000 (12:15 +0200)]
* lisp/desktop.el (desktop-read): With argument, ask the user for DIRNAME.

* etc/NEWS: Document it.

5 years agoAvoid errors in tramp-tests with a remote ksh shell
Michael Albinus [Thu, 26 Sep 2019 07:33:47 +0000 (09:33 +0200)]
Avoid errors in tramp-tests with a remote ksh shell

* test/lisp/net/tramp-tests.el (tramp--test-ksh-p): New defun.
(tramp-test41-utf8, tramp-test41-utf8-with-stat)
(tramp-test41-utf8-with-perl, tramp-test41-utf8-with-ls):
Skip, when remote shell is ksh.

5 years agoAdd rx extension mechanism
Mattias Engdegård [Wed, 25 Sep 2019 21:29:50 +0000 (14:29 -0700)]
Add rx extension mechanism

Add a built-in set of extension macros: `rx-define', `rx-let' and
`rx-let-eval'.

* lisp/emacs-lisp/rx.el (rx-constituents, rx-to-string): Doc updates.
(rx--builtin-symbols, rx--builtin-names, rx--local-definitions)
(rx--lookup-def, rx--substitute, rx--expand-template)
(rx--make-binding, rx--make-named-binding, rx--extend-local-defs)
(rx-let-eval, rx-let, rx-define): New.
(rx--translate-symbol, rx--translate-form): Use extensions if any.
(rx): Use local definitions.
* test/lisp/emacs-lisp/rx-tests.el (rx-let, rx-define)
(rx-to-string-define, rx-let-define, rx-let-eval): New.
* etc/NEWS (Changes in Specialized Modes and Packages):
* doc/lispref/searching.texi (Rx Notation, Rx Functions, Extending Rx):
Add node about rx extensions.

5 years agoNew rx implementation
Mattias Engdegård [Wed, 25 Sep 2019 21:29:50 +0000 (14:29 -0700)]
New rx implementation

* lisp/emacs-lisp/rx.el:
* test/lisp/emacs-lisp/rx-tests.el:
* doc/lispref/searching.texi (Rx Constructs):
Rewrite rx for correctness, clarity, and performance.  The new
implementation retains full compatibility and has more comprehensive
tests.

* lisp/emacs-lisp/re-builder.el (reb-rx-font-lock-keywords):
Adapt to changes in internal variables in rx.el.

5 years agoAllow regexp-quote to return its argument
Mattias Engdegård [Mon, 23 Sep 2019 16:56:30 +0000 (18:56 +0200)]
Allow regexp-quote to return its argument

* src/search.c (Fregexp_quote): Only allocate a new string if needed.
* doc/lispref/searching.texi (Regexp Functions):
* etc/NEWS (Incompatible Lisp Changes): Document.

5 years agoFix indentation of widgets (Bug#7851)
Mauro Aranda [Wed, 25 Sep 2019 12:51:18 +0000 (14:51 +0200)]
Fix indentation of widgets (Bug#7851)

* lisp/wid-edit.el (widget--should-indent-p): New function, to decide
whether to indent or not.
(widget-checklist-value-add-item, widget-radio-add-item)
(widget-editable-list-format-handler)
(widget-editable-list-entry-create)
(widget-group-value-create): Use it (bug#7851).

5 years agoMake gnus-rescale-image work on modern Emacs versions
Lars Ingebrigtsen [Wed, 25 Sep 2019 12:47:52 +0000 (14:47 +0200)]
Make gnus-rescale-image work on modern Emacs versions

* lisp/gnus/gnus-util.el (gnus-rescale-image): Make this work with
native image transforms.

5 years agoImprove documentation of 'text-property-search-forward'
Eli Zaretskii [Wed, 25 Sep 2019 08:42:35 +0000 (11:42 +0300)]
Improve documentation of 'text-property-search-forward'

* lisp/emacs-lisp/text-property-search.el (text-property-search-forward)
(text-property-search-backward): Improve doc strings.  (Bug#37488)

5 years ago; * lisp/emacs-lisp/debug.el (debugger-mode): Doc fix. (Bug#37352)
Eli Zaretskii [Wed, 25 Sep 2019 08:09:09 +0000 (11:09 +0300)]
; * lisp/emacs-lisp/debug.el (debugger-mode): Doc fix.  (Bug#37352)

5 years agoMake ImageMagick multi-image size calculations work for .ico files
Lars Ingebrigtsen [Tue, 24 Sep 2019 17:47:20 +0000 (19:47 +0200)]
Make ImageMagick multi-image size calculations work for .ico files

* src/image.c (imagemagick_load_image): Compute image sizes
correctly in multi-image .ico files and the like (bug#18333).

5 years agoSlight shr-put-image clean up
Lars Ingebrigtsen [Tue, 24 Sep 2019 17:38:16 +0000 (19:38 +0200)]
Slight shr-put-image clean up

* lisp/net/shr.el (shr-put-image): Use image-multi-frame-p
directly, and remove outdated comments (image-multi-frame-p
returns the delay).

5 years agoNew edebug-spec, nested-backquote-form. This fixes bug #31090
Alan Mackenzie [Tue, 24 Sep 2019 17:04:12 +0000 (17:04 +0000)]
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.

5 years agoMake --with-imagemagick bug out if there's no support for it
Lars Ingebrigtsen [Tue, 24 Sep 2019 17:01:51 +0000 (19:01 +0200)]
Make --with-imagemagick bug out if there's no support for it

* configure.ac (HAVE_IMAGEMAGICK): Stop configuration if the user
has said --with-imagemagick, but there's no support for it
(bug#24455).

5 years agoAllow a :stride argument so XBM boolvecs are in the right format.
Pip Cet [Tue, 24 Sep 2019 16:35:15 +0000 (18:35 +0200)]
Allow a :stride argument so XBM boolvecs are in the right format.

* src/image.c (xbm_image_p): Explicitly specify the right stride if a
bool vector is used as argument.
* doc/lispref/display.texi (XBM Images): Describe bool vectors
accurately.
* etc/NEWS: Document the change (bug#36337).

5 years ago* lisp/net/tramp-sh.el (tramp-get-remote-stat): Ban "stat" on Solaris.
Michael Albinus [Tue, 24 Sep 2019 15:56:55 +0000 (17:56 +0200)]
* lisp/net/tramp-sh.el (tramp-get-remote-stat): Ban "stat" on Solaris.

5 years ago(calc): Fix link in doc string
Noah Swainland [Tue, 24 Sep 2019 15:52:10 +0000 (17:52 +0200)]
(calc): Fix link in doc string

* lisp/calc/calc.el (calc): Fix link in doc string (bug#37500).

Copyright-paperwork-exempt: yes

5 years agoAllow controlling when to send cookies when retrieving images in shr
Lars Ingebrigtsen [Tue, 24 Sep 2019 15:48:35 +0000 (17:48 +0200)]
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.

5 years agoDocument how to listen on all interfaces in the Elisp manual
Robert Pluim [Tue, 24 Sep 2019 11:52:48 +0000 (13:52 +0200)]
Document how to listen on all interfaces in the Elisp manual

* doc/lispref/processes.texi (Network Processes): Explain how to
listen on all interfaces.

5 years ago; Fix typo in recently fixed doc string
Eli Zaretskii [Tue, 24 Sep 2019 08:49:12 +0000 (11:49 +0300)]
; Fix typo in recently fixed doc string

* src/process.c (Fmake_network_process): Fix capitalization in
doc string.

5 years agoAllow url-insert-file-contents to work on 304 responses
Lars Ingebrigtsen [Tue, 24 Sep 2019 08:43:28 +0000 (10:43 +0200)]
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).

5 years agoClean up url-parse-args slightly
Lars Ingebrigtsen [Tue, 24 Sep 2019 08:07:26 +0000 (10:07 +0200)]
Clean up url-parse-args slightly

* lisp/url/url-util.el (url-parse-args): Don't leave temporary
buffer behind.  Clean up slightly.

5 years ago; Fix previous make-network-process doc change
Robert Pluim [Tue, 24 Sep 2019 08:23:05 +0000 (10:23 +0200)]
; Fix previous make-network-process doc change

* src/process.c (Fmake_network_process): Correct typo.

5 years agoFix old problem with HTTPS HTTP 0.9 sentinels
Lars Ingebrigtsen [Tue, 24 Sep 2019 07:57:57 +0000 (09:57 +0200)]
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).

5 years agoResurrect support for negative frame geometry parameters on MS-Windows
Eli Zaretskii [Tue, 24 Sep 2019 07:28:44 +0000 (10:28 +0300)]
Resurrect support for negative frame geometry parameters on MS-Windows

* src/w32fns.c (my_create_window): Avoid assertion violations
in XFIXNUM when the 'top' or 'left' frame parameters are
neither fixnums nor 'unbound', in which case
f->size_hint_flags are set by gui_figure_window_size.
(Bug#37415)

5 years agoAllow scrolling the NSM window
Lars Ingebrigtsen [Tue, 24 Sep 2019 06:33:39 +0000 (08:33 +0200)]
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).

5 years agoVerilog-Mode collected updates.
Wilson Snyder [Mon, 23 Sep 2019 22:49:25 +0000 (18:49 -0400)]
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.

5 years agoRename "dumbquotes" to "smartquotes" in Gnus
Lars Ingebrigtsen [Mon, 23 Sep 2019 22:42:47 +0000 (00:42 +0200)]
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.

5 years agomml-smime-openssl-sign): Use all the keys
Jan Beich [Mon, 23 Sep 2019 20:11:33 +0000 (22:11 +0200)]
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).

5 years agoAdjust exif-tests.el to new interface
Lars Ingebrigtsen [Mon, 23 Sep 2019 20:02:58 +0000 (22:02 +0200)]
Adjust exif-tests.el to new interface

5 years agoFix regression in mm-possibly-verify-or-decrypt by previous patch
Lars Ingebrigtsen [Mon, 23 Sep 2019 19:56:10 +0000 (21:56 +0200)]
Fix regression in mm-possibly-verify-or-decrypt by previous patch

* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Remove debugging

5 years agoFix regression in mm-possibly-verify-or-decrypt by previous patch
Lars Ingebrigtsen [Mon, 23 Sep 2019 19:55:27 +0000 (21:55 +0200)]
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.

5 years agoFix S/MIME continuation header when sending
Lars Ingebrigtsen [Mon, 23 Sep 2019 19:51:28 +0000 (21:51 +0200)]
Fix S/MIME continuation header when sending

* lisp/gnus/mml-smime.el (mml-smime-epg-sign): Fix continuation
header.

5 years agomake-network-process doc clarification
Lars Ingebrigtsen [Mon, 23 Sep 2019 18:06:03 +0000 (20:06 +0200)]
make-network-process doc clarification

* src/process.c (Fmake_network_process): Further doc clarification
for listening on "::".

5 years agoBring back mention of NNTP gmane
Paul Eggert [Mon, 23 Sep 2019 18:40:51 +0000 (11:40 -0700)]
Bring back mention of NNTP gmane

Problem reported by Michael Albinus at:
https://lists.gnu.org/r/emacs-devel/2019-09/msg00519.html
* admin/notes/emba: Reintroduce mention of nttp+news.gmane.org,
since that still works.

5 years agoFix GNUstep build
Alan Third [Mon, 23 Sep 2019 18:17:38 +0000 (19:17 +0100)]
Fix GNUstep build

* src/nsfont.m (nsfont_draw): Change type to match.

Co-authored-by: martin rudalics <rudalics@gmx.at>
5 years agoFix cedet compilation warning
Lars Ingebrigtsen [Mon, 23 Sep 2019 17:20:54 +0000 (19:20 +0200)]
Fix cedet compilation warning

* lisp/cedet/semantic/db.el (semanticdb-dirty-p): Fix compilation
warning by moving to after definition.

5 years agoUpdate example in the Mail Aliases node of lispintro
Lars Ingebrigtsen [Mon, 23 Sep 2019 16:37:31 +0000 (18:37 +0200)]
Update example in the Mail Aliases node of lispintro

* doc/lispintro/emacs-lisp-intro.texi (Mail Aliases): Change
example to use Message mode, since that's the default for `C-x m'
now (bug#13855).

5 years agoMake mm-possibly-verify-or-decrypt pass decryption error
Lars Ingebrigtsen [Mon, 23 Sep 2019 16:23:22 +0000 (18:23 +0200)]
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).

5 years ago* lisp/dired-aux.el (dired-copy-file-recursive): Make prompt clearer.
Lars Ingebrigtsen [Mon, 23 Sep 2019 15:35:03 +0000 (17:35 +0200)]
* lisp/dired-aux.el (dired-copy-file-recursive): Make prompt clearer.

5 years agoDon't bug out on invalid addresses in mml-secure-check-user-id
Lars Ingebrigtsen [Mon, 23 Sep 2019 15:34:41 +0000 (17:34 +0200)]
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).

5 years agoTweak how much <sup>/<sub> raises/lowers text in shr
Lars Ingebrigtsen [Mon, 23 Sep 2019 14:05:16 +0000 (16:05 +0200)]
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.

5 years agoSignal errors if EPA can't verify data
Lars Ingebrigtsen [Mon, 23 Sep 2019 12:09:48 +0000 (14:09 +0200)]
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".

5 years agoMake "Show Hidden Headers" in Message buffers more obvious
Lars Ingebrigtsen [Mon, 23 Sep 2019 11:24:44 +0000 (13:24 +0200)]
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.

5 years agoAdd a NEWS entry for message citation levels
Lars Ingebrigtsen [Mon, 23 Sep 2019 11:15:53 +0000 (13:15 +0200)]
Add a NEWS entry for message citation levels

5 years agoAdd different faces for different citation levels in Message mode
Hong Xu [Mon, 23 Sep 2019 11:09:36 +0000 (13:09 +0200)]
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).

5 years ago; Enable traces for shadowfile-tests on hydra
Michael Albinus [Mon, 23 Sep 2019 11:08:02 +0000 (13:08 +0200)]
; Enable traces for shadowfile-tests on hydra

5 years agoAdd an `authinfo-hidden' variable
Lars Ingebrigtsen [Mon, 23 Sep 2019 10:27:42 +0000 (12:27 +0200)]
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.

5 years ago"]" is not a standard citation prefix character
nitishch [Mon, 23 Sep 2019 10:02:08 +0000 (12:02 +0200)]
"]" 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

5 years agoKeep a cache of encoded Message contents to avoid re-GPG-in data
Lars Ingebrigtsen [Mon, 23 Sep 2019 09:46:11 +0000 (11:46 +0200)]
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).

5 years ago* lisp/gnus/message.el (message-send-mail): Remove misleading comment.
Lars Ingebrigtsen [Mon, 23 Sep 2019 09:27:26 +0000 (11:27 +0200)]
* lisp/gnus/message.el (message-send-mail): Remove misleading comment.

5 years agoFix arg name of `text-property-search-{forward|backward}' (bug#37488)
Juanma Barranquero [Mon, 23 Sep 2019 07:15:01 +0000 (09:15 +0200)]
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.

5 years agoUpdate some URLs
Paul Eggert [Mon, 23 Sep 2019 06:53:39 +0000 (23:53 -0700)]
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.

5 years agoUpdate from Gnulib
Paul Eggert [Mon, 23 Sep 2019 06:50:59 +0000 (23:50 -0700)]
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.

5 years agoExpand time-stamp unit tests to cover all formatting options
Stephen Gildea [Mon, 23 Sep 2019 03:27:53 +0000 (20:27 -0700)]
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.

5 years agoClarify `debug' doc string
Lars Ingebrigtsen [Mon, 23 Sep 2019 00:13:26 +0000 (02:13 +0200)]
Clarify `debug' doc string

* lisp/emacs-lisp/debug.el (debug): Mention that inhibit-redisplay
will inhibit the function.

5 years agoMake Message warn about invalid addresses
Lars Ingebrigtsen [Sun, 22 Sep 2019 23:06:15 +0000 (01:06 +0200)]
Make Message warn about invalid addresses

* lisp/gnus/message.el (message-check-recipients): Warn about
invalid email addresses (bug#32639).

5 years agoRemove Gnus posting style reference to message-reply-headers
Lars Ingebrigtsen [Sun, 22 Sep 2019 22:45:33 +0000 (00:45 +0200)]
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.

5 years agognus-use-atomic-windows should default to nil
Lars Ingebrigtsen [Sun, 22 Sep 2019 22:29:42 +0000 (00:29 +0200)]
gnus-use-atomic-windows should default to nil

* lisp/gnus/gnus-win.el (gnus-use-atomic-windows): Default to nil.

5 years agomessage-reply-headers doc fix
Lars Ingebrigtsen [Sun, 22 Sep 2019 22:26:40 +0000 (00:26 +0200)]
message-reply-headers doc fix

* doc/misc/gnus.texi (Posting Styles): Update the type of the
message-reply-headers object.

5 years agomailclient can't send attachments
Lars Ingebrigtsen [Sun, 22 Sep 2019 22:06:25 +0000 (00:06 +0200)]
mailclient can't send attachments

* lisp/mail/mailclient.el (mailclient-send-it): Warn about trying
to send attachments (bug#34992).

5 years agoIgnore comments and strings when recognizing JSX
Jackson Ray Hamilton [Sun, 22 Sep 2019 19:55:44 +0000 (12:55 -0700)]
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.

5 years agoMake js-jsx-regexps case-sensitive
Jackson Ray Hamilton [Sun, 22 Sep 2019 18:57:57 +0000 (11:57 -0700)]
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.

5 years agoAvoid crashes when casifying noncontiguous regions
Paul Eggert [Sun, 22 Sep 2019 17:43:21 +0000 (10:43 -0700)]
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.

5 years ago* lisp/help-fns.el: Fix missing dependency
Stefan Monnier [Sun, 22 Sep 2019 16:54:48 +0000 (12:54 -0400)]
* lisp/help-fns.el: Fix missing dependency

5 years agoRemove references to domain that no longer exists
Lars Ingebrigtsen [Sun, 22 Sep 2019 12:49:57 +0000 (14:49 +0200)]
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.

5 years agoFix "password" detection in authinfo mode
Lars Ingebrigtsen [Sun, 22 Sep 2019 12:35:09 +0000 (14:35 +0200)]
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.

5 years agoFix warning about @xref in parenthesis
Lars Ingebrigtsen [Sun, 22 Sep 2019 12:28:13 +0000 (14:28 +0200)]
Fix warning about @xref in parenthesis

* doc/misc/gnus.texi (Window Layout): Use @pxref in parentheses.

5 years agoNote that image-mode automatically rotates
Lars Ingebrigtsen [Sun, 22 Sep 2019 12:23:40 +0000 (14:23 +0200)]
Note that image-mode automatically rotates

5 years agoAutomatically rotate images in image-mode based on Exif data
Lars Ingebrigtsen [Sun, 22 Sep 2019 12:21:39 +0000 (14:21 +0200)]
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.

5 years agoAdjust the exif.el interface functions
Lars Ingebrigtsen [Sun, 22 Sep 2019 12:18:57 +0000 (14:18 +0200)]
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.

5 years agoFix compilation with CHECK_STRUCTS
Andreas Schwab [Sat, 21 Sep 2019 11:54:40 +0000 (13:54 +0200)]
Fix compilation with CHECK_STRUCTS

* src/pdumper.c (dump_buffer): Update hash of struct buffer.

5 years agoNew option for making Gnus window layouts atomic
Eric Abrahamsen [Sun, 21 Apr 2019 18:04:20 +0000 (11:04 -0700)]
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.

5 years ago* src/fns.c (Fbuffer_hash): Improve doc string.
Stefan Kangas [Sat, 21 Sep 2019 15:04:58 +0000 (17:04 +0200)]
* src/fns.c (Fbuffer_hash): Improve doc string.

5 years agoSupport rectangular regions in capitalize-region and capitalize-dwim.
Juri Linkov [Sat, 21 Sep 2019 23:00:01 +0000 (02:00 +0300)]
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.

5 years agoUse eieio-object-p, not obsolete object-p
Eric Abrahamsen [Sat, 21 Sep 2019 21:39:43 +0000 (14:39 -0700)]
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.

5 years agoSeveral doc fixes in package.el
Stefan Kangas [Sun, 15 Sep 2019 15:41:27 +0000 (17:41 +0200)]
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)

5 years agoRevert too-picky file-access tests
Paul Eggert [Sat, 21 Sep 2019 18:27:46 +0000 (11:27 -0700)]
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.

5 years ago; * etc/NEWS: Tweak recently added entries.
Eli Zaretskii [Sat, 21 Sep 2019 18:33:04 +0000 (21:33 +0300)]
; * etc/NEWS: Tweak recently added entries.

5 years agoRemove lisp/erc/ file-local indent-tabs-mode settings
Noam Postavsky [Fri, 20 Sep 2019 13:06:05 +0000 (09:06 -0400)]
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.