Commit graph

3367 commits

Author SHA1 Message Date
João Távora
ed28ca4c24 Don't use `setq-local' in Gnus code
This might break upstream builds with older Emacsen

* lisp/gnus/message.el (message-mode): Use `set' and
`make-local-variable' instead of `setq-local'.
2015-04-12 23:25:09 +01:00
Johan Bockgård
f4dbec453d (gnus-summary-refer-thread): Don't clobber unread articles
This fixes a bug where `A T' causes "random" articles to become marked
as read.

* lisp/gnus/gnus-sum.el (gnus-summary-refer-thread): Make sure
gnus-newsgroup-unreads remains sorted.
2015-04-12 16:13:08 +02:00
João Távora
25449e7296 Summary: Improve sexp-based movement in message-mode
Works by giving citations and smileys a different syntax.  This helps
modes like `show-paren-mode', `electric-pair-mode', and C-M-*
sexp-based movement.

* lisp/gnus/message.el (message--syntax-propertize): New function.
(message-mode): Set syntax-related vars.
(message-smileys): New variable.

* test/automated/message-mode-tests.el: New file
2015-04-12 13:29:05 +01:00
Stefan Monnier
d58759a99a * lisp/gnus/gnus-art.el (gnus-hidden-properties): Simplify.
(gnus-article-hide-text, gnus-article-unhide-text)
(gnus-article-unhide-text-type): Remove special handling of
`intangible' since that property is not used any more.
(gnus-article-treat-body-boundary): Use gnus-hidden-properties.
2015-04-10 00:11:04 -04:00
Paul Eggert
2346856168 Generate a ChangeLog file from commit logs
* .gitignore: Add 'ChangeLog'.
* build-aux/gitlog-to-changelog: New file, from Gnulib.
* build-aux/gitlog-to-emacslog: New file.
* CONTRIBUTE: Document the revised workflow.
* Makefile.in (clean): Remove *.tmp and etc/*.tmp*
instead of just special cases.
(CHANGELOG_HISTORY_INDEX_MAX, CHANGELOG_N, gen_origin): New vars.
(ChangeLog, unchanged-history-files, change-history)
(change-history-commit): New rules.
* admin/admin.el (make-manuals-dist--1):
Don't worry about doc/ChangeLog.
* admin/authors.el: Add a FIXME.
* admin/make-tarball.txt:
* lisp/calendar/icalendar.el:
* lisp/gnus/deuglify.el:
* lisp/obsolete/gulp.el:
* lwlib/README:
Adjust to renamed ChangeLog history files.
* admin/merge-gnulib (GNULIB_MODULES): Add gitlog-to-changelog.
* admin/notes/repo: Call it 'master' a la Git, not 'trunk' a la Bzr.
Remove obsolete discussion of merging ChangeLog files.
New section "Maintaining ChangeLog history".
* build-aux/git-hooks/pre-commit:
Reject attempts to commit files named 'ChangeLog'.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* make-dist: Make and distribute top-level ChangeLog if there's a
.git directory.  Distribute the new ChangeLog history files
instead of scattered ChangeLog files.  Distribute the new files
gitlog-to-changelog and gitlog-to-emacslog.
Fixes: bug#19113
2015-04-07 00:00:55 -07:00
Paul Eggert
dd1404cca3 Rename ChangeLogs for gitlog-to-changelog
This patch was implemented via the following shell commands:
find * -name ChangeLog |
sed 's,.*,git mv & &.1,
s, lisp/ChangeLog\.1$, lisp/ChangeLog.17,
s, lisp/erc/ChangeLog\.1$, lisp/erc/ChangeLog.09,
s, lisp/gnus/ChangeLog\.1$, lisp/gnus/ChangeLog.3,
s, lisp/mh-e/ChangeLog\.1$, lisp/mh-e/ChangeLog.2,
s, src/ChangeLog\.1$, src/ChangeLog.13,' |
sh
git commit -am"[this commit message]"
2015-04-07 00:00:06 -07:00
Paul Eggert
b884ff380d Spelling fix for 'hfy-optimizations'
* htmlfontify.el (hfy-optimizations): Rename from hfy-optimisations,
with an obsolete alias.  All uses changed.
2015-04-05 23:43:22 -07:00
Paul Eggert
93ce8b3309 Fix typo in previous rtree change 2015-04-05 23:33:22 -07:00
Paul Eggert
1f3f5f1441 Use American spelling for 'normalize'
* rtree.el (rtree-normalize-range): Rename from rtree-normalise-range.
All uses changed.  Add an alias for obsolete usages.
2015-04-05 21:58:01 -07:00
Katsumi Yamaoka
839decd9ec lisp/gnus/gnus-art.el (gnus-article-browse-html-parts): Make external links absolute and cid file names relative 2015-04-03 03:18:52 +00:00
Eric Abrahamsen
5ba4fbd9e3 lisp/gnus/registry.el (registry-prune): Fix registry pruning routine 2015-04-01 04:55:34 +00:00
Daiki Ueno
2e4b0c98a7 plstore.el: Don't cache wrong passphrase
* plstore.el (plstore--decrypt): Clear entry in
`plstore-passphrase-alist' if decryption failed (bug#20030).
2015-03-31 10:14:13 +09:00
Adam Sjøgren
d193f52f78 lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Add "Display HTML images" to "Display" menu 2015-03-29 13:30:36 +00:00
Eric Abrahamsen
b28753b55c lisp/gnus/nnimap.el: Don't split imap messages back into original group 2015-03-24 22:12:58 +00:00
Paul Eggert
2393085c9a Merge from origin/emacs-24
ad89f85 Another minor improvement in ELisp manual  (Bug#20168)
5e2951b Improve docs of 'posn-actual-col-row'  (Bug#20169)
1291ce1 Minor documentation fix in ELisp manual  (Bug#20174)
33e2236 * display.texi (Useless Whitespace): Fix thinko.
ff3878d * configure.ac: Fix jpeg version check to work with gcc >= 5.
90b46f5 Work for the case nnmail-expiry-target is an nnmh group (bug#20170)
e7f92aa authors.el small additions
0bfe915 * etc/PROBLEMS: Add entry about dir-locals and some auto-mounters.
c3c4b75 Fixes: debbugs:18939

Conflicts:
	ChangeLog
	doc/lispref/ChangeLog
	etc/PROBLEMS
	lisp/ChangeLog
	lisp/gnus/ChangeLog
	lisp/simple.el
2015-03-23 10:30:33 -07:00
Ben Bacarisse
90b46f5b54 lisp/gnus/nnmh.el (nnmh-request-expire-articles): Work for the case nnmail-expiry-target is an nnmh group (bug#20170) 2015-03-23 08:02:01 +00:00
Eric Abrahamsen
6e1fac9bc7 lisp/gnus/{registry.el,gnus-registry.el}: Use slot names in references to object slot values 2015-03-21 23:59:30 +00:00
Eric Abrahamsen
1fcc552ac2 lisp/gnus/registry.el (registry-prune): Allow registry to reach full size before pruning 2015-03-20 10:49:41 +00:00
Eric Abrahamsen
b8ea3aa9db lisp/gnus/registry.el (registry-collect-prune-candidates): Fix call to cl-subseq 2015-03-20 10:49:06 +00:00
Stefan Monnier
b90f502cc1 * lisp/gnus/registry.el (registry-db): Don't oset-default an instance slot.
* lisp/gnus/gnus-registry.el (gnus-registry-handle-action)
(gnus-registry-post-process-groups): Don't add-to-list on a local var.
(gnus-registry-keywords): Make it do something.
(gnus-registry-import-eld): Remove unused var `new-entry'.
(gnus-registry-action): Remove unused var `to-name'.
(gnus-registry-make-db): Prefer `make-instance' to avoid
compiler warnings.
(gnus-registry-load, gnus-registry-fixup-registry): Avoid `oset'.
2015-03-11 11:00:25 -04:00
Glenn Morris
8db37916ca * lisp/gnus/message.el (message-valid-fqdn-regexp): Bump :version 2015-03-10 18:37:35 -04:00
Adam Sjøgren
6b134bcba9 lisp/gnus/gnus-notifications.el (gnus-notifications-action): Replace x-focus-frame kludge by calling gnus-select-frame-set-input-focus 2015-03-08 22:45:06 +00:00
Rasmus Pank Roulund
08534cef42 lisp/gnus/gnus-notifications: Raise frame when clicking Read; Add mark as read 2015-03-08 10:10:37 +00:00
Adam Sjøgren
0f2fd5603a lisp/gnus/message.el (message-insert-formatted-citation-line): Change %F to fall back to email address if no first name could be determined 2015-03-08 10:06:51 +00:00
Stefan Monnier
35e2b6ab4d * lisp/gnus/*registry.el: Use slot names rather than initarg names
* lisp/gnus/registry.el (registry-lookup-breaks-before-lexbind)
(registry-search, registry-delete, registry-size, registry-insert)
(registry-reindex, registry-collect-prune-candidates, registry-lookup):
* lisp/gnus/gnus-registry.el (gnus-registry-fixup-registry)
(gnus-registry-remove-extra-data): Use slot names rather than initarg
names in `oref' and `oset'.
2015-03-06 23:50:32 -05:00
Katsumi Yamaoka
48598095b3 Fix point motion when removing displayed MIME part
* gnus-art.el (gnus-mime-inline-part, gnus-mm-display-part):
Fix point motion when removing displayed MIME part.
2015-02-26 06:39:11 +00:00
Katsumi Yamaoka
4f9befb3b8 lisp/gnus/ChangeLog: Fix typo 2015-02-26 03:29:36 +00:00
Katsumi Yamaoka
f376a4b747 Gnus: Improve parts deletion and stripping behavior
* gnus-art.el (gnus-article-edit-part): Make jumping to the next part
really work when deleting or stripping.
(gnus-mime-buttonize-attachments-in-header): Make header attachment
buttons identical to the one in the article body so as to work deleting
and stripping.
2015-02-26 03:24:48 +00:00
Katsumi Yamaoka
b86ba30d17 Gnus: Revert my bogus changes (2014-06-05)
* mm-decode.el (mm-shr)
* mm-view.el (mm-inline-text-html-render-with-w3m):
Revert my bogus change that made the start marker of a part
the "moves after insertion" type.
2015-02-25 02:39:47 +00:00
Tassilo Horn
931e7babcb lisp/gnus/mailcap.el: Support PDF Tools for PDF viewing of attachments
* mailcap.el (mailcap-mime-data): Support `pdf-view-mode' (from PDF
Tools: https://github.com/politza/pdf-tools) for viewing PDF
attachments in emacs.
2015-02-23 09:36:06 +00:00
Katsumi Yamaoka
3f006e1d47 lisp/gnus/gnus-art.el (gnus-mime-display-single): Avoid "End of buffer" error 2015-02-23 02:40:12 +00:00
Paul Eggert
14b4e657e2 Spelling fixes
* lisp/cedet/semantic/doc.el (semantic-documentation-comment-preceding-tag):
Rename from semantic-documentation-comment-preceeding-tag.  All
uses changed.  Leave an obsolete alias behind.
* src/lisp.h (DEFINE_NON_NIL_Q_SYMBOL_MACROS):
Rename from DEFINE_NONNIL_Q_SYMBOL_MACROS.  All uses changed.
2015-02-21 20:01:05 -08:00
Katsumi Yamaoka
746d2923d6 lisp/gnus/nnimap.el (nnimap-get-groups): Fix XEmacs compilation 2015-02-18 23:06:12 +00:00
Eric Abrahamsen
0a1c83457d Handle unquoted IMAP group names
* lisp/gnus/nnimap.el (nnimap-get-groups): Correctly read unquoted
group names from the server LIST response.
2015-02-18 22:25:22 +00:00
Lars Magne Ingebrigtsen
0d38b2f403 Don't mark nnimap articles as read on a server hangup
* lisp/gnus/nnimap.el (nnimap-retrieve-headers): If the server closes connection
during header retrieval, error out instead of interpreting the data in
the buffer as the only messages there.  This way, we don't mark
articles as read on a server hangup (bug#19035).
2015-02-15 23:11:41 +00:00
Lars Magne Ingebrigtsen
6090b8f68d Revert previous patch
(let ((url-news-server "news.gmane.org"))
  (url-retrieve-synchronously  "news:87y4p9y2cq.fsf@violet.siamics.net"))

works fine for me
2015-02-15 23:10:06 +00:00
Ivan Shmakov
4aafd19a0e Make `url-retrieve-synchronously' work again with news:
* lisp/gnus/nntp.el (nntp-open-server): Set variables in the correct buffer
(bug#19583).
2015-02-15 23:08:03 +00:00
Lars Magne Ingebrigtsen
45c5ccd48c Fix inserting parts with `E' in Gnus
* lisp/gnus/mm-decode.el (mm-head-p): New function.
(mm-display-part): Go to a blank line when inserting parts internally.
Fix inserting parts with `E' in Gnus

* lisp/gnus/mm-decode.el (mm-head-p): New function.
(mm-display-part): Go to a blank line when inserting parts internally.
2015-02-15 23:05:46 +00:00
Lars Magne Ingebrigtsen
69e38a5b1f Move rfc2104 from gnus to net
* net/rfc2104.el: Moved here from lisp/gnus.
2015-02-13 19:57:56 +11:00
Lars Magne Ingebrigtsen
f61c87f12a lisp/gnus/gnus-msg.el (gnus-msg-mail): Buffer-local warning fix (bug#19573) 2015-02-13 08:16:39 +00:00
Lars Magne Ingebrigtsen
a8f93d14cb lisp/gnus/nnmail.el (nnmail-expiry-target-group): Allow expiring nnimap to a group again 2015-02-13 06:44:40 +00:00
Katsumi Yamaoka
c7d9dec837 lisp/gnus/gnus-art.el (gnus-article-browse-html-save-cid-content, gnus-article-browse-html-parts): Make cid file names relative if and only if html doesn't specify <base> directory 2015-02-12 09:39:24 +00:00
Lars Magne Ingebrigtsen
097e16e266 lisp/gnus/gnus-art.el (gnus-treat-buttonize): Don't buttonize URLs in HTML 2015-02-11 05:58:14 +00:00
Katsumi Yamaoka
4069c132a3 lisp/gnus/mm-decode.el: Fix previous commit 2015-02-10 08:08:55 +00:00
Katsumi Yamaoka
b88908b6f0 lisp/gnus/mm-decode.el: Fix previous commit 2015-02-10 07:52:35 +00:00
Lars Magne Ingebrigtsen
656caef350 Allow using variable-width fonts in eww
* lisp/gnus/mm-decode.el (mm-shr): Only pass the fill column when not using
fonts, because limiting the width to what's appropriate for followups
doesn't really help when not using proportional fonts.

* lisp/net/shr.el (shr-use-fonts): New variable.
(shr-fill-text): Rename from "fold".
(shr-pixel-column, shr-pixel-region, shr-string-pixel-width): New
functions.
(shr-insert): Just insert, don't fill the text.  Filling is now
done afterwards per display unit.
(shr-fill-lines, shr-fill-line): New functions to fill text on a
per-unit base.
(shr-find-fill-point): Take a "beginning" parameter.
(shr-indent): Indent using the :width display parameter when using
fonts.
(shr-parse-style): Ignore "inherit" values, since we already do that.
(shr-tag-img): Remove the insertion states.
(shr-tag-blockquote): New-style filling.
(shr-tag-dd): Ditto.
(shr-tag-li): Ditto.
(shr-mark-fill): New function to mark lines that need filling.
(shr-tag-h1): Use a larger font.
(shr-tag-table-1): Get the natural and suggested widths in one
rendering.
(shr-tag-table): Create the "fixed" version of the table only once
so that we can cache data in the table.
(shr-insert-table): Get colspan calculations right by having
zero-width columns after colspan ones.
(shr-expand-alignments): New function to make :align-to specs work
right when rendered in one buffer and displayed in another one.
(shr-insert-table-ruler): Use :align-to to get the widths right.
(shr-make-table): Cache more.
(shr-make-table-1): Use the new <td> data layout.
(shr-pixel-buffer-width): New function.
(shr-render-td): Add a caching layer.
(shr-dom-max-natural-width): New function.
2015-02-10 16:29:05 +11:00
Ted Zlatanov
ff7072d531 lisp/gnus/gnus-start.el: always check newsrc timestamp when saving it 2015-02-05 11:51:07 +00:00
Timo Lilja
df1e4ea210 lisp/gnus/mail-source.el (mail-source-call-script): Pop up an error buffer if a mail script fails 2015-02-05 07:52:15 +00:00
Lars Magne Ingebrigtsen
4f6901c3fc lisp/gnus/gnus-sum.el (gnus-extra-headers): Add X-GM-LABELS 2015-02-05 04:48:28 +00:00
Lars Magne Ingebrigtsen
f518a387c9 lisp/gnus/nnimap.el (nnimap-request-group-scan): Further `M-g' group fixes 2015-02-05 04:02:46 +00:00