1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00
Commit Graph

133013 Commits

Author SHA1 Message Date
Lars Ingebrigtsen
bea6ae4e3e Add new command `gnus-summary-attach-article'
* doc/misc/gnus.texi (Summary Message Commands): Document it.

* lisp/gnus/gnus-msg.el (gnus-summary-attach-article): New command
and keystroke (bug#19788).

* lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Menu bar
entry for it.
2018-04-15 18:02:50 +02:00
Daiki Ueno
c3ca885f49 Divert to call `gnus-activate-group' with the SCAN argument set
* lisp/gnus/gnus-group.el (gnus-group-get-new-news-this-group):
Divert to call `gnus-activate-group' with the SCAN argument set,
if request-group-scan is not defined for the backend.  Ensure that
the server is open when calling `gnus-request-group-scan'
(bug#22649).
2018-04-15 16:11:46 +02:00
Lars Ingebrigtsen
eceb047cdb Abort Gnus exit if we have unsaved Message buffers
* lisp/gnus/gnus-group.el
(gnus--abort-on-unsaved-message-buffers): New function (bug#28843).
(gnus-group-exit): Use it to abort exit if we have unsaved Message
buffers.
2018-04-15 15:48:44 +02:00
Lars Ingebrigtsen
a5f2403cc2 Avoid an infloop in shr filling when not using fonts
* lisp/net/shr.el (shr-fill-line): If we have an indentation
that's wider than the width of what we're trying to fill, just
give up.  This avoids an infloop when `shr-use-fonts' in nil.
2018-04-15 15:17:15 +02:00
Lars Ingebrigtsen
ef599f6cac Remove calls from string-to-multibyte in nnheader/nntp
* lisp/gnus/nntp.el (nntp-copy-to-buffer): Apparently `insert' now
behaves more like string-make-multibyte, but it now behaves more
like string-to-multibyte, so remove that call here.  I'm not quite
sure I follow that logic, but apparently there are no ill effects.

* lisp/gnus/nnheader.el (nnheader-insert-buffer-substring): Ditto.
2018-04-15 01:07:38 +02:00
Lars Ingebrigtsen
1ad6184c37 Remove a string-to-multibyte from nnmh.el
* lisp/gnus/nnmh.el (nnmh-request-list-1): Remove superfluous
string-to-multibyte.
2018-04-15 00:57:40 +02:00
Lars Ingebrigtsen
3250651e9c Remove call to string-to-multibyte from nndoc.el
* lisp/gnus/nndoc.el (nndoc-oe-dbx-type-p): My testing shows that
no matter whether we're in a unibyte or a multibyte buffer, doing
the looking-at here without the string-to-multibyte, we'll get a
match.  We did not get a match with the call in and if we were in
a unibyte buffer, but we presumably never are.
2018-04-15 00:48:27 +02:00
Lars Ingebrigtsen
466693416d Fix calculation in gnus-update-group-mark-positions
* lisp/gnus/gnus-group.el (gnus-update-group-mark-positions):
Rewrite a call to string-to-multibyte that didn't even work.
After the rewrite it gives the correct result and should allow
people to customise Gnus group process mark positions (but that's
a pretty obscure feature).
2018-04-15 00:40:23 +02:00
Lars Ingebrigtsen
f0ec607d53 Removed outdated comment from nnweb.el
* lisp/gnus/nnweb.el (nnweb-insert-html): Removed ten year old
comment from Stefan about string-as-multibyte.
2018-04-15 00:32:10 +02:00
Lars Ingebrigtsen
9c5a9d4dd4 Rewrite Gnus calls to compat function mm-multibyte-p 2018-04-15 00:30:14 +02:00
Lars Ingebrigtsen
ad2c4d3c61 Rewrite string-as-unibyte/string-as-multibyte logic in nnmail
* lisp/gnus/nnmail.el (nnmail-insert-xref): Rewrite
string-as-unibyte/string-as-multibyte logic and confirm that the
result is the same in both multibyte and unibyte buffers after the
change.
2018-04-15 00:24:02 +02:00
Lars Ingebrigtsen
25487b921b Remove call to string-as-unibyte from nnmail
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove call to
string-as-unibyte; the alist before and after the change are
`equal' to each other, so it should presumably have no impact.
2018-04-15 00:17:28 +02:00
Lars Ingebrigtsen
86bbde2808 Remove calls to string-as-unibyte from nnir.el
* lisp/gnus/nnir.el (nnir-get-active): Remove two calls to
string-as-unibyte from code that seems cargo-culted from Gnus
functions where it is not needed, so it's presumably not needed
here, either.
2018-04-15 00:14:30 +02:00
Lars Ingebrigtsen
30f5fa75da Remove call to string-as-unibyte in gnus-start.el
* lisp/gnus/gnus-start.el (gnus-read-newsrc-el-file): Remove
string-as-unibyte call, which appears not to do anything much in
modern Emacsen.
2018-04-15 00:09:47 +02:00
Lars Ingebrigtsen
07672a06d3 Remove call to string-as-unibyte from gnus-start.el
* lisp/gnus/gnus-start.el (gnus-update-active-hashtb-from-killed):
Remove a string-as-unibyte call here, which appears not to be
necessary: I'm able to complete over non-ASCII names both before
and after.
2018-04-15 00:07:08 +02:00
Lars Ingebrigtsen
6500684001 Modernise a Gnus function a bit
* lisp/gnus/gnus-start.el (gnus-update-active-hashtb-from-killed):
Modernise code a bit.
2018-04-14 23:58:59 +02:00
Lars Ingebrigtsen
4b0c425047 Remove two string-as-unibyte in gnus-srvr.el
* lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): We do not
seem to need the string-as-unibyte here: We read a multibyte
string from the *nntpd* buffer and then decode it later, and this
apparently by some strange magic leads to the correct results in
my test cases.
2018-04-14 23:54:07 +02:00
Lars Ingebrigtsen
679a433744 Fix a `string-to-multibyte' in Gnus
* lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): The
original article buffer is multibyte, and we're inserting into the
article buffer, which is also multibyte, so the `string-to-multibyte'
here should be unnecessary?
2018-04-14 23:25:01 +02:00
Lars Ingebrigtsen
9f767b3ec8 Fix a string-as-unibyte in Gnus
* lisp/gnus/gnus-art.el (gnus-article-browse-html-parts): Get rid
of a string-as-unibyte.
2018-04-14 23:17:24 +02:00
Lars Ingebrigtsen
196dc887d8 Further shr line folding/link continuation tweaks
* lisp/net/shr.el (shr-fill-line): Tweak the link continuations
further when folding lines.
2018-04-14 22:38:53 +02:00
Lars Ingebrigtsen
56c4ce266d Indent after transforming for loop into do/while 2018-04-14 21:55:39 +02:00
Lars Ingebrigtsen
f939cd0255 Make call-process work if exec-path is nil
* src/lread.c (openp): If exec-path is nil, no files would be
found to execute (bug#30564).

Test cases:

 (let ((exec-path ()))
   (call-process "/bin/ls" nil (current-buffer)))

This would previously fail, but now works.

 (let ((exec-path '("/bin/")))
   (call-process "ls" nil (current-buffer)))

This worked, and still works.
2018-04-14 21:55:08 +02:00
Lars Ingebrigtsen
94b9fe5998 Make erc-current-logfile work with explicit parameter
* lisp/erc/erc-log.el (erc-current-logfile): This function
apparently refers to buffer-local variables, so switch to the
buffer given before calculating the file name (bug#16111).
2018-04-14 21:18:51 +02:00
Lars Ingebrigtsen
7e012d0384 Tweak shr link text property adjustments when folding
* lisp/net/shr.el (shr-fill-line): If a link starts at the first
word on a new folded line, then don't copy the link properties to
the newline inserted.
2018-04-14 21:11:05 +02:00
Lars Ingebrigtsen
064ff73281 * lisp/erc/erc-button.el (erc-button-search-url): Doc fix. 2018-04-14 20:56:16 +02:00
Lars Ingebrigtsen
7912fdcc4d erc build fix for the previous patch 2018-04-14 20:54:24 +02:00
Lars Ingebrigtsen
994a369cd2 erc-truncate-buffer-on-save doc string clarification
* lisp/erc/erc-log.el (erc-truncate-buffer-on-save): Doc
clarification (bug#18207) since "truncate" is a word used by
erc-truncate to mean something else.
2018-04-14 20:52:36 +02:00
Lars Ingebrigtsen
2f5d47b1df Ignore all-whitespace topics in erc
* lisp/erc/erc.el (erc-cmd-TOPIC): Ignore all-whitespace topics
(bug#25153).
2018-04-14 20:37:09 +02:00
Lars Ingebrigtsen
5b535761f6 Rename url-button-google-url
* lisp/erc/erc-button.el (erc-button-search-url): Renamed from
url-button-google-url (bug#25717).  Suggested by Andrew Robbins.
(erc-button-alist): Use it.
2018-04-14 20:32:05 +02:00
John Goerzen
cdefc04589 Subject: Fix problem with erc buffer renames after reconnect
* lisp/erc/erc.el (erc-generate-new-buffer-name): Solve problem
with renamed buffers on different servers after reconnect (bug#30639).

Copyright-paperwork-exempt: yes
2018-04-14 20:10:53 +02:00
Lars Ingebrigtsen
369cb30d8c (libxml-parse-html-region): Make DISCARD-COMMENTS obsolete
* lisp/subr.el (libxml-parse-xml-region)
(libxml-parse-html-region): Make DISCARD-COMMENTS obsolete.

* src/xml.c (Flibxml_parse_html_region)
(Flibxml_parse_xml_region): Don't mention DISCARD-COMMENTS, since
it's now no longer part of the advertised signature (bug#27178).
2018-04-14 19:06:51 +02:00
Lars Ingebrigtsen
0b0d3815da Revert "Revert "Give better errors in signing failures in Gnus""
This reverts commit 42141da5b0.

This patch was reverted in error.  I misinterpreted an email saying that
it didn't work, but apparently it worked as it should.
2018-04-14 17:18:53 +02:00
Lars Ingebrigtsen
e20d7381ee Make DISCARD-COMMENTS in `libxml-parse-{html,xml}-region' obsolete
* doc/lispref/text.texi (Parsing HTML/XML): Mention that
discard-comments is obsolete.

* lisp/xml.el (xml-remove-comments): New function (bug#27178).

* src/xml.c (Flibxml_parse_html_region): Clarify what
DISCARD-COMMENTS actually does, and say that the parameter is
obsolete.
(Flibxml_parse_xml_region): Ditto.
2018-04-14 17:14:01 +02:00
Glenn Morris
db71b31827 Merge from origin/emacs-26
5a6bb01 (origin/emacs-26) Fix building etc/DOC in the MSDOS port
274c979 * lisp/select.el (gui-get-selection): Doc fix.
ad731b0 ; * doc/lispref/display.texi (Temporary Displays): Fix typos.
f1450e9 Complete documentation of syntax flags by adding `c'
6bdcaec Fix typos and minor wording issues in ELisp manual
febac27 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac...
6c2e21e Avoid segfault in processes of type 'pipe'
60e10c5 Remove repetitions in documentation strings
208e752 * lisp/image.el (image-load-path): Doc fix.
92e0fd8 ; * etc/NEWS: Remove a FIXME.  (Bug#31122)

Conflicts:
	etc/NEWS
2018-04-14 07:50:45 -07:00
Lars Ingebrigtsen
132b3a9ace Change the default From style to `angles' and make obsolete
* lisp/gnus/message.el (message-from-style): Make `angles' the
default (bug#29309) and mark as obsolete.

* lisp/mail/sendmail.el (mail-from-style): Ditto.
2018-04-14 15:52:16 +02:00
Lars Ingebrigtsen
c768fe1be0 Make image-mode respect `imagemagick-types-inhibit'
* lisp/image-mode.el (image--imagemagick-wanted-p): New function
(bug#29584).
(image-toggle-display-image): Use it to see whether we want to use
imagemagick.
2018-04-14 15:36:53 +02:00
Lars Ingebrigtsen
42141da5b0 Revert "Give better errors in signing failures in Gnus"
This reverts commit ef2059e877.

Apparently this test triggered both when signing was successful
and unsuccessful (bug#26298).
2018-04-14 15:12:48 +02:00
Eli Zaretskii
5a6bb01777 Fix building etc/DOC in the MSDOS port
* msdos/sed1v2.inp (lisp.mk): Fix escaping in Sed commands.
2018-04-14 15:52:40 +03:00
Lars Ingebrigtsen
0a299bd9a0 Tweak mailcap precedence so that Emacs values are heeded better
* lisp/net/mailcap.el (mailcap-parse-mailcaps): Place entries from
system-wide mailcap files after the values that are distributed
with Emacs, and the ones from ~/.mailcap before.
(mailcap-parse-mailcap): Take an optional `after' parameter to
achieve that.
(mailcap-add-mailcap-entry): Ditto.
2018-04-14 14:50:14 +02:00
Tino Calancha
e1c2ec5086 Subject: Fix circular dependency for mm-decode
* lisp/gnus/mm-decode.el: Do not require shr.el at the top
of the file; `mm-shr' already requires shr.el in its body, and
this function is the only `mm-convert-shr-links' caller (Bug#31151).
2018-04-14 12:56:22 +02:00
Eli Zaretskii
274c979649 * lisp/select.el (gui-get-selection): Doc fix. 2018-04-14 10:53:34 +03:00
Noam Postavsky
682118f5a0 ; * doc/misc/url.texi (file/ftp): Remove stray '@end defopt'. 2018-04-14 01:58:38 -04:00
Basil L. Contovounesios
2825d84945 Do not destructively modify interprogram paste
* simple.el (kill-new, current-kill): Non-destructively reverse list
returned by interprogram-paste-function. (bug#31097)
2018-04-14 01:20:03 -04:00
Lars Ingebrigtsen
0263216ec3 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).
2018-04-14 00:17:36 +02:00
Lars Ingebrigtsen
3ba07bfc3e 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.
2018-04-14 00:15:15 +02:00
Lars Ingebrigtsen
e442879b5a 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.
2018-04-14 00:08:26 +02:00
Lars Ingebrigtsen
4575ae5a9c 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.
2018-04-13 23:49:58 +02:00
Lars Ingebrigtsen
52a5bc89c9 Revert "Add colors to faces that lack them."
This reverts commit 16748a5f6b.

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?
2018-04-13 22:52:16 +02:00
Lars Ingebrigtsen
bdc2453fe8 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..
2018-04-13 22:27:21 +02:00
Lars Ingebrigtsen
0eb68feed4 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.
2018-04-13 21:58:25 +02:00