Basil L. Contovounesios [Fri, 13 Apr 2018 11:47:30 +0000 (12:47 +0100)]
Do not destructively modify interprogram paste
* simple.el (kill-new, current-kill): Non-destructively reverse list
returned by interprogram-paste-function. (bug#31097)
Lars Ingebrigtsen [Fri, 13 Apr 2018 22:17:36 +0000 (00:17 +0200)]
Don't bind image commands on eww non-image links
* lisp/net/eww.el (eww-link-keymap): Only inherit the normal shr
keymap.
(eww-image-link-keymap): New keymap with the image bindings.
(eww-tag-a): Use the appropriate one on links (bug#30148).
Lars Ingebrigtsen [Fri, 13 Apr 2018 22:15:15 +0000 (00:15 +0200)]
Move utility function to mm-util.el
* lisp/gnus/mm-util.el (mm-images-in-region-p): Move from
mm-decode.el and renamed, since it is generally useful.
Lars Ingebrigtsen [Fri, 13 Apr 2018 22:08:26 +0000 (00:08 +0200)]
Make the url file: handler be less clever
* doc/misc/url.texi (file/ftp): Remove mention of the
url-directory-index-file variable, which is no longer consulted.
* lisp/url/url-file.el (url-file-build-filename): Remove the DWIM
code from the file: handler (bug#30195): It would look for
index.html in a directory if we asked it to fetch the directory.
Determining what to do in a directory should be left up to the
programs that use this low-level library. If the library decides
to load a different file than we specified, then things start
falling apart, as demonstrated by this bug report.
Lars Ingebrigtsen [Fri, 13 Apr 2018 21:49:58 +0000 (23:49 +0200)]
Don't bind image commands on non-image links in Gnus
* lisp/gnus/mm-decode.el (mm--images-in-region-p): New utility
function.
(mm-convert-shr-links): Only use the shr image map on links that
contain images. This avoids binding commands like `r' on links
that don't need it.
Lars Ingebrigtsen [Fri, 13 Apr 2018 20:52:16 +0000 (22:52 +0200)]
Revert "Add colors to faces that lack them."
This reverts commit
16748a5f6bd57ec0967ecb5e14ffe8af5f43d888.
From the discussion on the ding mailing list, I said:
I think the colours should be reverted back to what they were before the
change. Normal text should be white on black (if you have a dark
background), and colours should be used to emphasise or de-emphasise
certain text. Following that principle, normal Gnus groups should be
white, not ... er... what are they now? Teal?
Lars Ingebrigtsen [Fri, 13 Apr 2018 20:27:21 +0000 (22:27 +0200)]
Tweak the fonts applied to shr indentation
* lisp/net/shr.el (shr-fill-line): Don't use fonts (especially
link fonts) over indentation, because that's ugly..
Lars Ingebrigtsen [Fri, 13 Apr 2018 19:58:25 +0000 (21:58 +0200)]
Further tweak point placement on gnus-summary-select-article-buffer
* lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer):
Place point in the empty space between headers and body.
Lars Ingebrigtsen [Fri, 13 Apr 2018 19:33:37 +0000 (21:33 +0200)]
Tweak point placement in *Group* on `Q' exit
* lisp/gnus/gnus-sum.el (gnus-summary-exit-no-update): When
exiting the summary buffer with `Q', move point to the next unread
group (which is the same thing that happens on `q' exit.)
Lars Ingebrigtsen [Fri, 13 Apr 2018 19:18:51 +0000 (21:18 +0200)]
Tweak point placement in gnus-summary-select-article-buffer
* lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer):
Tweak where point is placed because when the user selects the
article buffer, it's probably to cite something or click on
something, and not do anything with the headers.
Lars Ingebrigtsen [Fri, 13 Apr 2018 18:24:04 +0000 (20:24 +0200)]
Compute erc line lengths correctly for utf-8 (etc.)
* lisp/erc/erc-backend.el (erc-split-line): Fold the lines
according to octet length, not the number of characters (bug#23047).
Lars Ingebrigtsen [Fri, 13 Apr 2018 17:54:22 +0000 (19:54 +0200)]
Clean up some defvoo doc strings
* lisp/gnus/nndiary.el: Remove "*" from doc strings from defvoo
elements (bug#23392).
* lisp/gnus/nndir.el: Ditto
* lisp/gnus/nndoc.el: Ditto.
* lisp/gnus/nnrss.el: Ditto.
* lisp/gnus/nnspool.el: Ditto.
* lisp/gnus/nntp.el: Ditto.
Eric Abrahamsen [Sun, 8 Apr 2018 23:49:20 +0000 (16:49 -0700)]
Further fix to eieio-persistent
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
Make handling of hash tables and vectors recursive. This is
necessary because the write process, in `eieio-override-prin1' is
also recursive. With any luck, this will be the last fix of its
kind. If that's true, cherry-pick to Emacs 26.2 later on.
Lars Ingebrigtsen [Fri, 13 Apr 2018 17:28:17 +0000 (19:28 +0200)]
Make nnimap parse pathological spam headers better
* lisp/gnus/nnimap.el (nnimap-transform-headers): Unfold certain
pathological IMAP headers more correctly (bug#25502). Perhaps
this function should be re-implemented.
Lars Ingebrigtsen [Fri, 13 Apr 2018 17:09:03 +0000 (19:09 +0200)]
Fix syntax error in emacs-mime.texi in last check-in
Lars Ingebrigtsen [Fri, 13 Apr 2018 17:08:16 +0000 (19:08 +0200)]
Prefer settings from ~/.mailcap over system and Emacs settings
* doc/misc/emacs-mime.texi (mailcap): Document the variable and
how mailcap chooses which viewer to use.
* lisp/net/mailcap.el (mailcap-prefer-mailcap-viewers): New variable.
(mailcap-mime-info): Use it.
Lars Ingebrigtsen [Fri, 13 Apr 2018 16:35:07 +0000 (18:35 +0200)]
Fix bug in shr-urlify introduced in previous patch
* lisp/net/shr.el (shr-urlify): Not all URLs have domains, so
check for that before doing IDNA.
Lars Ingebrigtsen [Fri, 13 Apr 2018 15:30:59 +0000 (17:30 +0200)]
Make shr support inline <div>s
* lisp/net/shr.el (shr-tag-div): Support display: inline; for
<div>, since that's a very common thing (bug#25588).
Lars Ingebrigtsen [Fri, 13 Apr 2018 15:11:07 +0000 (17:11 +0200)]
Notify the user a bit more before clicking IDNA links
* lisp/net/shr.el (shr-urlify): Show the puny-encoded domain name
in the mouseover string (bug#25600).
Lars Ingebrigtsen [Fri, 13 Apr 2018 14:50:45 +0000 (16:50 +0200)]
(nnimap-sequence): Add comment
* lisp/gnus/nnimap.el (nnimap-sequence): Add comment.
Lars Ingebrigtsen [Fri, 13 Apr 2018 14:41:13 +0000 (16:41 +0200)]
(url-http): Ensure that the referrer is all-ASCII
* lisp/url/url-http.el (url-http): Ensure that the referrer is all-ASCII.
Lars Ingebrigtsen [Fri, 13 Apr 2018 14:39:17 +0000 (16:39 +0200)]
gnutls.el now needs punycode
* lisp/net/gnutls.el (puny): Require punycode.
Lars Ingebrigtsen [Fri, 13 Apr 2018 14:38:10 +0000 (16:38 +0200)]
Make Unicode domain names work again in URL after recent changes
* lisp/net/gnutls.el (open-gnutls-stream): IDNA-encode hostnames
before passing them on to gnutls for verification.
* lisp/net/network-stream.el (network-stream-open-starttls): Ditto.
* lisp/url/url-http.el (url-http--get-referer): Be IDNA-aware.
(url-http-create-request): Don't de-Unicodify host names, because
they may be IDNA names (that are later encoded).
* lisp/url/url-util.el (url-domain): Be IDNA-aware when doing
domain name computations.
Lars Ingebrigtsen [Fri, 13 Apr 2018 13:41:35 +0000 (15:41 +0200)]
Update defcustom version for last patch to url-vars.el
* lisp/url/url-vars.el (url-lastloc-privacy-level): Update
defcustom version.
Lars Ingebrigtsen [Fri, 13 Apr 2018 13:22:30 +0000 (15:22 +0200)]
Use a separate history for the eww prompt
* lisp/net/eww.el (eww-prompt-history): A separate history
variable for the interactive eww prompt.
(eww): Use it.
Michael Albinus [Fri, 13 Apr 2018 13:21:24 +0000 (15:21 +0200)]
Fix Bug#30246
* lisp/auth-source.el (auth-source-secrets-search): Do not
suppress creation.
(auth-source-secrets-create): Implement it. (Bug#30246)
* lisp/net/secrets.el (secrets-debug): Set default to nil.
* test/lisp/auth-source-tests.el (secrets): Require it.
(auth-source-test-secrets-create-secret): New test.
Peder O. Klingenberg [Fri, 13 Apr 2018 13:08:18 +0000 (15:08 +0200)]
Change gnutls-verify-error to be first-match
* doc/misc/url.texi (Customization): Describe the new user
option url-lastloc-privacy-level.
* lisp/net/eww.el (eww-render): Set url-current-lastloc to the
url we are rendering, to get the referer header right on
subsequent requests.
* lisp/url/url-http.el (url-http--get-referer): New function
to determine which referer to send, if any, considering the
users privacy settings and the target url we are visiting.
(url-http-referer): New variable keeping track of the referer
computed by url-http--get-referer
(url-http-create-request): Use url-http-referer instead of the
optional argument to set up the referer header. Leave
checking of privacy settings to url-http--get-referer.
(url-http): Set up url-http-referer by using
url-http--get-referer.
* lisp/url/url-queue.el (url-queue): New struct member
context-buffer for keeping track of the context a queued job
started from.
(url-queue-retrieve): Store the current buffer in the queue
object.
(url-queue-start-retrieve): Make sure url-retrieve is called
in the context of the original buffer, if available.
* lisp/url/url-util.el (url-domain): New function to determine
the domain of a given URL.
* lisp/url/url-vars.el (url-current-lastloc): New variable to
keep track of the desired "last location" (referer header).
(url-lastloc-privacy-level): New custom setting for more
fine-grained control over how lastloc (referer) is sent to
servers (Bug#27012).
Lars Ingebrigtsen [Fri, 13 Apr 2018 12:55:55 +0000 (14:55 +0200)]
Make #anchors work again in eww
* lisp/net/eww.el (eww-render): When we have a #link link, then
url.el will say that we have a redirect to a non-#link link, so
get the anchor before url.el mangles the URL (bug#28441).
(eww-display-html): ... and don't get it here, because it's gone
by now.
Test URL: http://www.gnu.org/s/hyperbole/#summary
Robert Pluim [Fri, 13 Apr 2018 12:44:41 +0000 (14:44 +0200)]
Doc fix after previous gnutls patch
* lisp/net/gnutls.el (gnutls-verify-error): Mention that the
matching is first-match (bug#29977).
Robert Pluim [Fri, 13 Apr 2018 12:24:11 +0000 (14:24 +0200)]
Change gnutls-verify-error to be first-match
* lisp/net/gnutls.el (gnutls-boot-parameters): Convert to
first-match for gnutls-verify-error rather than any-match
(bug#29977).
Lars Ingebrigtsen [Fri, 13 Apr 2018 12:21:31 +0000 (14:21 +0200)]
Mention the new `shr-selected-link' face
Lars Ingebrigtsen [Fri, 13 Apr 2018 12:19:47 +0000 (14:19 +0200)]
Clean up the double Gnus section
Lars Ingebrigtsen [Fri, 13 Apr 2018 12:17:51 +0000 (14:17 +0200)]
When opening external links in eww, blink the link
* lisp/net/eww.el (eww-follow-link): Ditto.
* lisp/net/shr.el (shr-selected-link): New face (bug#25096).
(shr--blink-link): New function to blink links.
(shr--current-link-region): New utility function.
(shr-browse-url): Use it to blink external links.
Blinking the link allows the user to get immediate feedback that the
action has been performed. Opening the external browser may take a
while, and may not be obvious that is going on.
Lars Ingebrigtsen [Fri, 13 Apr 2018 11:40:29 +0000 (13:40 +0200)]
Tweak nnimap sequence numbers to avoid reuse
* lisp/gnus/nnimap.el (nnimap-sequence): Start the sequence at a
higher number to avoid reusing the sequence number used by
`open-network-stream' (bug#30022).
martin rudalics [Fri, 13 Apr 2018 07:42:19 +0000 (07:42 +0000)]
* lisp/gnus/gnus-art.el (gnus-article-prepare): Fix previous commit,
in which selecting the article window is not necessary (bug#25526).
Lars Ingebrigtsen [Fri, 13 Apr 2018 00:23:49 +0000 (02:23 +0200)]
Remove unused local variable
Lars Ingebrigtsen [Fri, 13 Apr 2018 00:21:30 +0000 (02:21 +0200)]
Treat 302 redirects as if they were 303 redirects
* lisp/url/url-http.el (url-http-parse-headers): Treat 302 as 303,
since this is what the standards recommend these days (bug#25703).
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
Lars Ingebrigtsen [Fri, 13 Apr 2018 00:08:40 +0000 (02:08 +0200)]
Make eww render <select> elements again
* lisp/net/eww.el (eww-tag-select): Actually render <select>
elements (bug#25703).
Lars Ingebrigtsen [Thu, 12 Apr 2018 23:51:56 +0000 (01:51 +0200)]
<label> shouldn't introduce a line break
* lisp/net/shr.el (shr-tag-label): Remove so that labels don't
break lines (because they shouldn't: They're usually part of a
selection interface) (bug#30557).
Katsumi Yamaoka [Thu, 12 Apr 2018 23:19:17 +0000 (23:19 +0000)]
* lisp/gnus/gnus-art.el (gnus-article-prepare): Make sure the article
begins with the top of the header (bug#25526).
Lars Ingebrigtsen [Thu, 12 Apr 2018 22:13:17 +0000 (00:13 +0200)]
Tweak the eww readability function
* lisp/net/eww.el (eww-highest-readability): Require that the
readable bit is at least 100 words (bug#30445).
Lars Ingebrigtsen [Thu, 12 Apr 2018 22:11:47 +0000 (00:11 +0200)]
(dom-texts): Don't return contents of <script> as text
From: Lars Ingebrigtsen <larsi@gnus.org>
* lisp/dom.el (dom-texts): Don't return contents of <script> as
text, because it isn't and makes reasoning about textual parts
more difficult.
Basil L. Contovounesios [Thu, 12 Apr 2018 20:36:45 +0000 (23:36 +0300)]
Support list of default values in completing-read-multiple
* lisp/emacs-lisp/crm.el (completing-read-multiple):
Consider head of DEF argument when specified as a list,
as per completing-read-default. (bug#30072)
Jonathan Marten [Thu, 12 Apr 2018 20:23:31 +0000 (22:23 +0200)]
From: Lars Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/nnimap.el (nnimap-login): Allow anonymous logins
(bug#24704).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Thu, 12 Apr 2018 20:04:09 +0000 (22:04 +0200)]
Default message-forward-as-mime to nil
* doc/misc/gnus.texi (Summary Mail Commands): Ditto.
* doc/misc/message.texi (Forwarding): Note the new default.
* lisp/gnus/message.el (message-forward-as-mime): Default to nil
since it's been reported that many recipients can't read MIME
digest forwards (bug#24878).
Lars Ingebrigtsen [Thu, 12 Apr 2018 19:34:37 +0000 (21:34 +0200)]
Load w3m in Gnus if required
* lisp/gnus/gnus-art.el (gnus-article-show-images): Ensure that
w3m is loaded if the user requests that we use it.
Tim Landscheidt [Thu, 12 Apr 2018 19:31:49 +0000 (21:31 +0200)]
Don't autoload function from w3m
* lisp/gnus/gnus-art.el (w3m-toggle-inline-images): Don't use
autoload for packages that may not be installed (bug#25604).
Oleg Pykhalov [Thu, 12 Apr 2018 19:19:23 +0000 (21:19 +0200)]
From: Lars Ingebrigtseb <larsi@gnus.org>
* lisp/gnus/gnus-sum.el (gnus-summary-limit-to-score): Allow limit
to articles that have a score below the stated number, too
(bug#30356).
Lars Ingebrigtsen [Thu, 12 Apr 2018 19:13:47 +0000 (21:13 +0200)]
message-forward-as-mime doc clarification
* lisp/gnus/message.el (message-forward-as-mime): Doc
clarification (bug#27714).
Lars Ingebrigtsen [Thu, 12 Apr 2018 19:11:12 +0000 (21:11 +0200)]
message-forward-ignored-headers doc clarification
* lisp/gnus/message.el (message-forward-ignored-headers): Doc
clarification (bug#27715).
Lars Ingebrigtsen [Thu, 12 Apr 2018 17:36:28 +0000 (19:36 +0200)]
Restore point in summary buffer after sorting
* lisp/gnus/gnus-sum.el (gnus-summary-sort): Keep point on the
current article when sorting (bug#30615).
Lars Ingebrigtsen [Thu, 12 Apr 2018 17:18:26 +0000 (19:18 +0200)]
nil is no longer an allowed value for mm-inline-text-html
* doc/misc/emacs-mime.texi (Display Customization): Remove the doc
for the nil case of mm-inline-text-html.
* doc/misc/mh-e.texi (HTML): Ditto.
* lisp/gnus/mm-view.el (mm-inline-text-html): If no
mm-text-html-renderer is specified, just insert the raw text
instead of erroring out (bug#30870).
Lars Ingebrigtsen [Thu, 12 Apr 2018 16:12:03 +0000 (18:12 +0200)]
Ensure that non-QRESYNC nnimap can proceed after a QRESYNC fail
* lisp/gnus/nnimap.el (nnimap-update-info): If we don't have a
start-article in the non-QRESYNC case, then the start has to be 1
(bug#23241).
Lars Ingebrigtsen [Thu, 12 Apr 2018 15:50:14 +0000 (17:50 +0200)]
Make it possible to exit Gnus without saving .newsrc.eld
* lisp/gnus/gnus-start.el (gnus-save-newsrc-file): Don't error out
here so that we can proceed with shutting down Gnus without saving
the .newsrc.eld file when it has been updated externally (bug#23761).
Lars Ingebrigtsen [Thu, 12 Apr 2018 14:53:07 +0000 (16:53 +0200)]
Make nnml save the .overview file when used as an expiry target
* lisp/gnus/nnmail.el (nnmail-expiry-target-group): Always pass in
the `last' parameter to the acceptance function so that backends
like nnml save the .overview file (bug#24499). This may slow down
some use cases.
Lars Ingebrigtsen [Thu, 12 Apr 2018 14:33:36 +0000 (16:33 +0200)]
Clarify Gnus doc string
* lisp/gnus/gnus-cite.el (gnus-article-fill-cited-article):
Clarify doc string (bug#24578).
Lars Ingebrigtsen [Thu, 12 Apr 2018 14:32:00 +0000 (16:32 +0200)]
Elide XEmacs-relevant comment
* lisp/gnus/gnus-cite.el (gnus-article-fill-cited-article): Remove
mention of XEmacs, since we no longer support XEmacs.
Lars Ingebrigtsen [Thu, 12 Apr 2018 13:17:40 +0000 (15:17 +0200)]
Make message-simplify-recipients obsolete
* lisp/gnus/message.el (message-simplify-recipients)
(message-recipients-without-full-name): Made obsolete since
Message now simplifies all addresses by default.
Lars Ingebrigtsen [Thu, 12 Apr 2018 12:57:51 +0000 (14:57 +0200)]
Remove repetitions from recipient addresses in Message
* lisp/gnus/message.el (message--alter-repeat-address): New function.
(message-get-reply-headers): Use it to remove repetitions on the
form "foo@bar.com" <foo@bar.com>.
Damien Cassou [Wed, 11 Apr 2018 13:28:11 +0000 (15:28 +0200)]
* etc/NEWS: Fix entry regarding automatic encryption of (Bug#31124) messages
Noam Postavsky [Thu, 12 Apr 2018 01:00:57 +0000 (21:00 -0400)]
; doc/misc/gnus.texi (Fancy Mail Splitting): Fix misplaced @item.
Shanavas M [Thu, 22 Mar 2018 09:20:22 +0000 (12:20 +0300)]
Add tests for buffer-base-buffer function (Bug#30905)
* test/src/buffer-tests.el (test-buffer-base-buffer-indirect)
(test-buffer-base-buffer-non-indirect): New tests for
`buffer-base-buffer'.
Paul Eggert [Thu, 12 Apr 2018 00:03:43 +0000 (17:03 -0700)]
make-dist: fix bug with top-level ChangeLog
Problem reported by Glenn Morris in:
https://lists.gnu.org/r/emacs-devel/2018-04/msg00307.html
* make-dist (top_level_ChangeLog): New var. Use it to link
top-level ChangeLog only when desired.
Alain Schneble [Wed, 11 Apr 2018 22:51:19 +0000 (00:51 +0200)]
Support port number in Gnus X-Message-SMTP-Method header
* lisp/gnus/message.el (message-multi-smtp-send-mail): Try to parse
service as port number. If it succeeds, use parsed number, else use
supplied service name as before (bug#24653). (This only matters
on some operating systems.)
Daniel Dehennin [Wed, 11 Apr 2018 22:40:13 +0000 (00:40 +0200)]
Gnus Group Mail Spliting on mailing-list headers
* texi/gnus.texi: Document the new `list' split abbreviation and
`match-list' group parameter (bug#25346).
* lisp/gnus-mlspl.el: Use the `list' abbreviation when the new
`match-list' group parameter is set to `t'.
The split regexp is modified to match either `@` or `.` as domain
separator to comply with RFC2919 IDs too.
* lisp/nnmail.el: Add new `list' split abbreviation matching common
mailing-list headers.
Lars Ingebrigtsen [Wed, 11 Apr 2018 22:27:10 +0000 (00:27 +0200)]
Tweak previous patch to respect quiet next group selection again
* lisp/gnus/gnus-sum.el (gnus-summary-next-article): Tweak
previous patch to be quieter if the user has requested `quietly'
next group selection.
Lars Ingebrigtsen [Wed, 11 Apr 2018 22:16:30 +0000 (00:16 +0200)]
Display "No more ... articles" on `n' in Gnus
* lisp/gnus/gnus-sum.el (gnus-summary-next-article): Display the
"No more"... messages if gnus-auto-select-next is nil and the user
has default messaging levels (bug#25582).
Łukasz Stelmach [Wed, 11 Apr 2018 22:09:41 +0000 (00:09 +0200)]
Rung new-news-hook from `M-g' in the Gnus summary buffer
* lisp/gnus/gnus-group.el (gnus-group-get-new-news-this-group):
Run `gnus-after-getting-new-news-hook' when doing `M-g' in the
summary buffer, too (bug#25892). This makes `M-g' in both group
and summary buffers work more similar.
Copyright-paperwork-exempt: yes
Noam Postavsky [Wed, 11 Apr 2018 22:05:27 +0000 (00:05 +0200)]
Give better errors in signing failures in Gnus
* lisp/gnus/mml1991.el (mml1991-epg-sign): Give better error
messages when signing fails (bug#26298).
* lisp/gnus/mml2015.el (mml2015-epg-sign): Ditto.
Lars Ingebrigtsen [Wed, 11 Apr 2018 21:52:53 +0000 (23:52 +0200)]
Remove the Gmane backend from nnir
* lisp/gnus/nnir.el (nnir-engines): Remove Gmane backend, which no
longer exists.
(nnir-method-default-engines): Ditto.
(nnir-run-gmane): Removed function (bug#28234).
Basil L. Contovounesios [Wed, 11 Apr 2018 21:21:59 +0000 (23:21 +0200)]
Heed switch-function argument in gnus-user-agent
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Heed switch-action argument
when falling back to message-user-agent because Gnus is not
running (bug#28992).
Lars Ingebrigtsen [Wed, 11 Apr 2018 17:31:37 +0000 (19:31 +0200)]
Always rescale images in gnus-rescale-image
* lisp/gnus/gnus-util.el (gnus-rescale-image): Rescale images even
if we don't have a visible article buffer. Reported and fix
suggested by Kevin Brubeck Unhammer.
Michael Albinus [Wed, 11 Apr 2018 14:56:57 +0000 (16:56 +0200)]
Some minor Tramp changes
* lisp/net/tramp-sh.el (tramp-get-ls-command-with):
New defun, replacing ...
(tramp-get-ls-command-with-dired)
(tramp-get-ls-command-with-quoting-style)
(tramp-get-ls-command-with-w-option): Removed.
(tramp-do-file-attributes-with-ls)
(tramp-do-directory-files-and-attributes-with-stat)
(tramp-sh-handle-insert-directory): Adapt callees.
* lisp/net/tramp-smb.el (tramp-smb-errors):
Add "NT_STATUS_CONNECTION_RESET".
Lars Ingebrigtsen [Wed, 11 Apr 2018 11:46:48 +0000 (13:46 +0200)]
Don't kill off LibreOffice when selecting the next article in Gnus
* lisp/gnus/mm-decode.el (mm-keep-viewer-alive-types): Add the
media types that LibreOffice uses to the list, since we don't want
to kill off LibreOffice willy-nilly.
Lars Ingebrigtsen [Wed, 11 Apr 2018 11:44:15 +0000 (13:44 +0200)]
Doc fix for mm-keep-viewer-alive-types
* lisp/gnus/mm-decode.el (mm-keep-viewer-alive-types): Clarify doc
string.
Glenn Morris [Tue, 10 Apr 2018 14:50:48 +0000 (07:50 -0700)]
Merge from origin/emacs-26
c267421 (tag: emacs-26.1-rc1, origin/emacs-26) ; * ChangeLog.3: Update.
aa77415 * etc/AUTHORS: Regenerate.
c8ffca5 * lisp/files.el (kept-new-versions): Improve documentation st...
3a798f6 Fix a minor mistake in the ELisp manual
6afa868 ; * src/dispextern.h (struct it): Fix a typo in a comment.
5659b2f * lisp/files.el (find-file-literally): Doc fix.
9b24a79 Fix typos in doc strings
Glenn Morris [Tue, 10 Apr 2018 14:50:48 +0000 (07:50 -0700)]
; Merge from origin/emacs-26
The following commit was skipped:
8dffaea Bump Emacs version to 26.1
Glenn Morris [Tue, 10 Apr 2018 14:50:48 +0000 (07:50 -0700)]
Merge from origin/emacs-26
f674c89 ; * ChangeLog.3: Update.
80d868e * lisp/emacs-lisp/inline.el: Clarify apparent typos
9f54f28 ; * lisp/auth-source.el (auth-sources): Update the :version tag.
Glenn Morris [Tue, 10 Apr 2018 14:50:48 +0000 (07:50 -0700)]
; Merge from origin/emacs-26
The following commit was skipped:
3573b4e Allow sexp customization type in auth-sources
Paul Eggert [Mon, 9 Apr 2018 20:34:44 +0000 (13:34 -0700)]
make-dist: check exit statuses more carefully
* make-dist: Do a better job checking for subprocess failure.
Nicolas Petton [Mon, 9 Apr 2018 19:00:56 +0000 (21:00 +0200)]
; * ChangeLog.3: Update.
Nicolas Petton [Mon, 9 Apr 2018 19:00:47 +0000 (21:00 +0200)]
* etc/AUTHORS: Regenerate.
Charles A. Roelli [Mon, 9 Apr 2018 18:26:50 +0000 (20:26 +0200)]
* lisp/files.el (kept-new-versions): Improve documentation string.
Eli Zaretskii [Mon, 9 Apr 2018 14:53:37 +0000 (17:53 +0300)]
Fix a minor mistake in the ELisp manual
* doc/lispref/files.texi (Reading from Files): Fix copy/paste
mistake. (Bug#31107)
Tino Calancha [Mon, 9 Apr 2018 02:47:47 +0000 (11:47 +0900)]
Preserve case in query-replace undo
If the user query and replaces 'foo' with 'BAR', then
undo must comeback to 'foo', not to 'FOO' (Bug#31073).
* lisp/replace.el (perform-replace): Bind nocasify to non-nil
value during undo/undo-all actions.
* test/lisp/replace-tests.el (query-replace-undo-bug31073): Add test.
Michael Albinus [Sun, 8 Apr 2018 17:22:45 +0000 (19:22 +0200)]
* lisp/auth-source.el (auth-source-secrets-search): Fix docstring.
nitishch [Sat, 7 Apr 2018 03:15:03 +0000 (08:45 +0530)]
Fix python-shell-send-defun at start of buffer (Bug#30822)
* lisp/progmodes/python.el (python-shell-send-defun): Handle the case
when we hit the beginning of buffer.
Copyright-paperwork-exempt: yes
Philipp Stephani [Wed, 4 Apr 2018 10:14:56 +0000 (12:14 +0200)]
Document that 'make-process' mixes the output streams
* doc/lispref/processes.texi (Asynchronous Processes):
* src/process.c (Fmake_process): Document that standard error is mixed
with standard output if STDERR is nil.
* test/src/process-tests.el (make-process/mix-stderr): New unit test.
Stefan Monnier [Sat, 7 Apr 2018 15:21:52 +0000 (11:21 -0400)]
* lisp/simple.el (undo-auto--undoable-change): Avoid leak
Eli Zaretskii [Sat, 7 Apr 2018 14:24:01 +0000 (17:24 +0300)]
; * src/dispextern.h (struct it): Fix a typo in a comment.
Marco Wahl [Wed, 28 Mar 2018 09:04:08 +0000 (11:04 +0200)]
Fix goto page from page directory (Bug#28909)
* lisp/textmodes/page-ext.el (pages-directory-goto): Use the
interactive spec as in `occur-mode-goto-occurrence'.
Michal Nazarewicz [Sat, 31 Mar 2018 13:16:54 +0000 (14:16 +0100)]
Handle quotation marks and apostrophes in ‘sgml-quote’
To be able to use text in an HTML argument, quotation marks need
to be replaced with an appropriate character reference. Make
‘sgml-quote’ do that.
While at it, fix entiteis not being unquoted if they lack closing
semicolon (e.g. ‘&’) occuring at the very end of a region.
Even though unlikely, make ‘sgml-quote’ handle this scenario.
* lisp/textmodes/sgml-mode.el (sgml-quote): Handle quotation marks and
apostrophes. Match entities lacking semicolon at the end of regions.
* test/lisp/textmodes/sgml-mode-tests.el (sgml-quote-works): New test
case for ‘sgml-quote’ function.
Michael Albinus [Fri, 6 Apr 2018 09:49:21 +0000 (11:49 +0200)]
Make dbus.el fitter for Emacs configured --without-dbus
* lisp/net/dbus.el (dbus-error, dbus-debug): Define if not exist.
* test/lisp/net/secrets-tests.el: Revert
51c8369fa2 and
79a3ad9592.
Eli Zaretskii [Fri, 6 Apr 2018 06:44:42 +0000 (09:44 +0300)]
* lisp/files.el (find-file-literally): Doc fix.
Paul Eggert [Fri, 6 Apr 2018 04:38:49 +0000 (21:38 -0700)]
; Spelling fix
Tino Calancha [Fri, 6 Apr 2018 01:05:43 +0000 (10:05 +0900)]
Require secrets.el iif Emacs has dbusbind support
* test/lisp/net/secrets-tests.el: Require secrets.el if
and only if, Emacs has been compiled with dbusbind support.
Tino Calancha [Thu, 5 Apr 2018 23:55:39 +0000 (08:55 +0900)]
Run secrets suite test when Emacs has dbus support
* test/lisp/net/secrets-tests.el (secrets-test00-availability)
(secrets-test01-sessions, secrets-test02-collections)
(secrets-test03-items, secrets-test04-search): Skip test
unless Emacs is compiled with dbus support.
Eli Zaretskii [Thu, 5 Apr 2018 18:38:07 +0000 (21:38 +0300)]
Fix typos in doc strings
* lisp/simple.el (undo-auto--boundary-timer)
(undo-auto--boundary-ensure-timer): Fix typos in doc strings.
Michael Albinus [Thu, 5 Apr 2018 15:40:57 +0000 (17:40 +0200)]
Add tests for secrets.el
* lisp/net/secrets.el (secrets-lock-collection): New defun.
(secrets-search-items, secrets-create-item): Fix structure of :dict-entry.
* test/lisp/net/secrets-tests.el: New package.
Glenn Morris [Thu, 5 Apr 2018 12:58:20 +0000 (08:58 -0400)]
* test/lisp/gnus/message-tests.el (message-all-epg-keys-available-p):
Add skip condition.