Katsumi Yamaoka
0a4c102a88
Refactor HTML images handling of Gnus and mm-* (a part of bug#21650)
...
* doc/misc/emacs-mime.texi (Display Customization):
Remove mm-inline-text-html-with-images; add documentations for
mm-html-inhibit-images and mm-html-blocked-images.
* lisp/gnus/gnus-art.el (gnus-article-show-images):
No need to bind mm-inline-text-html-with-images.
(gnus-bind-safe-url-regexp): Rename to gnus-bind-mm-vars.
(gnus-bind-mm-vars): Rename from gnus-bind-safe-url-regexp;
bind mm-html-inhibit-images and mm-html-blocked-images.
(gnus-mime-view-all-parts, gnus-mime-view-part-internally)
(gnus-mm-display-part, gnus-mime-display-single)
(gnus-mime-display-alternative): Use gnus-bind-mm-vars.
* lisp/gnus/mm-decode.el (mm-inline-text-html-with-images): Remove.
(mm-html-inhibit-images, mm-html-blocked-images): New user options.
(mm-shr): Bind shr-inhibit-images and shr-blocked-images with
mm-html-inhibit-images and mm-html-blocked-images respectively
instead of gnus-inhibit-images and gnus-blocked-images.
* lisp/gnus/mm-view.el (mm-setup-w3m): Use mm-html-inhibit-images
instead of mm-inline-text-html-with-images.
2016-02-08 22:41:25 +00:00
Michael Albinus
d5a10aefee
Fix Bug#22557
...
* lisp/filenotify.el (file-notify-callback): Do not send a
`stopped' event in case of backup by renaming. (Bug#22557)
* test/automated/Makefile.in: Use $(SELECTOR_EXPENSIVE) for
all targets but check and check-maybe.
* test/automated/file-notify-tests.el
(file-notify--test-read-event-timeout): New defconst.
(file-notify--deftest-remote, file-notify--wait-for-events)
(file-notify-test02-events)
(file-notify-test04-file-validity)
(file-notify-test06-many-events): Use it.
(file-notify--test-cleanup): Make it more robust. Delete also
backup file.
(file-notify-test07-backup): New test.
2016-02-07 19:30:01 +01:00
Andreas Schwab
9dc77e37aa
Fix gnus-group-get-new-news-this-group on group with closed server
...
* lisp/gnus/nnimap.el (nnimap-change-group): Lookup server
method and pass to nnimap-open-server.
2016-02-07 13:30:43 +01:00
Artur Malabarba
4feb962198
* lisp/comint.el (comint-prompt-read-only): Clean tabs in docstring
...
While tabs in code are mostly fine because the Emacs sources have a
.dir-locals file specifying tab-width, the same is not true of tabs in
code examples inside docstrings. The docstring is printed on a *Help*
buffer, which can be created on any directory and won't necessarily have
the same tab-width set.
2016-02-07 08:40:17 +00:00
Lars Ingebrigtsen
cc419fb599
Don't inloop gnus-uu-mark-thread on the last thread
...
* lisp/gnus/gnus-uu.el (gnus-uu-mark-thread): Don't infloop on the
final thread in the summary buffer (bug#16666).
2016-02-07 17:56:59 +11:00
Lars Ingebrigtsen
51c77a27f1
Display non-ASCII group names better in prompts
...
* lisp/gnus/gnus-sum.el (gnus-articles-to-read): To decode the
group name, we have to do that before we remove the prefix.
2016-02-07 15:04:31 +11:00
Lars Ingebrigtsen
f93d669a16
Default to gpg2 instead of gpg
...
* lisp/epg-config.el (epg-gpg-program): Prefer gpg2 over gpg, if
it exists. This fixes many problems with using the GPG
authentication agent.
2016-02-07 13:01:01 +11:00
Artur Malabarba
9ffe7ddd5e
* lisp/isearch.el (isearch-define-mode-toggle): Improve logic
2016-02-06 22:58:24 +00:00
Artur Malabarba
16140f7ece
* lisp/menu-bar.el (menu-bar-options-menu): New search submenu
...
(menu-bar-search-options-menu): New variable
2016-02-06 22:58:24 +00:00
Artur Malabarba
3db6adb174
* lisp/isearch.el (search-default-mode)
...
(isearch-regexp-function): Improve docstrings.
2016-02-06 22:48:32 +00:00
Artur Malabarba
4ea1ea7c73
* lisp/isearch.el: Rename search-default-regexp-mode to search-default-mode
...
(search-default-mode): New variable.
(isearch-mode, isearch-define-mode-toggle)
(isearch--describe-regexp-mode): Update accordingly.
* lisp/menu-bar.el (nonincremental-search-forward): Update accordingly.
* etc/NEWS: Update accordingly.
* doc/emacs/search.texi: Update accordingly.
2016-02-06 22:48:32 +00:00
Lars Ingebrigtsen
6816bfffce
Ensure that Gnus dribble handling allows removing entries
...
* lisp/gnus/gnus-start.el (gnus-dribble-enter): Ensure that each
entry is on a single line.
2016-02-06 16:02:26 +11:00
OGAWA Hirofumi
691feae283
Be consistent when using encoded strings in nnimap data
...
* lisp/gnus/nnimap.el (nnimap-encode-gnus-group): New function
(nnimap-request-list): Use it.
(nnimap-request-newgroups): Ditto.
Copyright-paperwork-exempt: yes
2016-02-06 15:49:32 +11:00
OGAWA Hirofumi
3ed423bc35
Display the decoded Gnus group name
...
* lisp/gnus/gnus-sum.el (gnus-summary-read-group-1): Use the
decoded group name in the message.
Copyright-paperwork-exempt: yes
2016-02-06 15:41:05 +11:00
Lars Ingebrigtsen
5428b5b24c
Use completion-ignore-case instead of defining command
...
* lisp/erc/erc.el (erc-mode): Set completion-ignore-case so
that we get case-insensitive completion.
(erc-completion-at-point): Remove.
2016-02-06 14:14:21 +11:00
Eli Zaretskii
c1d32a6537
Fix problems caused by new implementation of sub-word mode
...
* lisp/subr.el (forward-word-strictly, backward-word-strictly):
New functions.
(word-move-empty-char-table): New variable.
* etc/NEWS: Mention 'forward-word-strictly' and
'backward-word-strictly'.
* doc/lispref/positions.texi (Word Motion): Document
'find-word-boundary-function-table', 'forward-word-strictly', and
'backward-word-strictly'. (Bug#22560)
* src/syntax.c (syms_of_syntax)
<find-word-boundary-function-table>: Doc fix.
* lisp/wdired.el (wdired-xcase-word):
* lisp/textmodes/texnfo-upd.el (texinfo-copy-node-name)
(texinfo-copy-section-title, texinfo-start-menu-description)
(texinfo-copy-menu-title, texinfo-specific-section-type)
(texinfo-insert-node-lines, texinfo-copy-next-section-title):
* lisp/textmodes/texinfo.el (texinfo-clone-environment)
(texinfo-insert-@end):
* lisp/textmodes/texinfmt.el (texinfo-format-scan)
(texinfo-anchor, texinfo-multitable-widths)
(texinfo-multitable-item):
* lisp/textmodes/tex-mode.el (latex-env-before-change):
* lisp/textmodes/flyspell.el (texinfo-mode-flyspell-verify):
* lisp/skeleton.el (skeleton-insert):
* lisp/simple.el (count-words):
* lisp/progmodes/vhdl-mode.el (vhdl-beginning-of-libunit)
(vhdl-beginning-of-defun, vhdl-beginning-of-statement-1)
(vhdl-update-sensitivity-list, vhdl-template-block)
(vhdl-template-break, vhdl-template-case, vhdl-template-default)
(vhdl-template-default-indent, vhdl-template-for-loop)
(vhdl-template-if-then-use, vhdl-template-bare-loop)
(vhdl-template-nature, vhdl-template-procedural)
(vhdl-template-process, vhdl-template-selected-signal-asst)
(vhdl-template-type, vhdl-template-variable)
(vhdl-template-while-loop, vhdl-beginning-of-block)
(vhdl-hooked-abbrev, vhdl-port-copy, vhdl-hs-forward-sexp-func):
* lisp/progmodes/verilog-mode.el (verilog-backward-sexp)
(verilog-forward-sexp, verilog-beg-of-statement)
(verilog-set-auto-endcomments, verilog-backward-token)
(verilog-do-indent):
* lisp/progmodes/vera-mode.el (vera-guess-basic-syntax)
(vera-indent-block-closing):
* lisp/progmodes/simula.el (simula-context)
(simula-backward-up-level, simula-forward-down-level)
(simula-previous-statement, simula-next-statement)
(simula-skip-comment-backward, simula-calculate-indent)
(simula-find-if, simula-electric-keyword):
* lisp/progmodes/sh-script.el (sh-smie--rc-newline-semi-p):
* lisp/progmodes/ruby-mode.el (ruby-smie--redundant-do-p)
(ruby-smie--forward-token, ruby-smie--backward-token)
(ruby-singleton-class-p, ruby-calculate-indent)
(ruby-forward-sexp, ruby-backward-sexp):
* lisp/progmodes/ps-mode.el (ps-run-goto-error):
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function)
(perl-syntax-propertize-special-constructs)
(perl-backward-to-start-of-continued-exp):
* lisp/progmodes/pascal.el (pascal-indent-declaration):
* lisp/progmodes/octave.el (octave-function-file-p):
* lisp/progmodes/mantemp.el (mantemp-insert-cxx-syntax):
* lisp/progmodes/js.el (js--forward-function-decl):
* lisp/progmodes/idlwave.el (idlwave-show-begin-check)
(idlwave-beginning-of-block, idlwave-end-of-block)
(idlwave-block-jump-out, idlwave-determine-class):
* lisp/progmodes/icon.el (icon-is-continuation-line)
(icon-backward-to-start-of-continued-exp, end-of-icon-defun):
* lisp/progmodes/hideif.el (hide-ifdef-define):
* lisp/progmodes/f90.el (f90-change-keywords):
* lisp/progmodes/cperl-mode.el (cperl-electric-pod)
(cperl-linefeed, cperl-electric-terminator)
(cperl-find-pods-heres, cperl-fix-line-spacing)
(cperl-invert-if-unless):
* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur):
* lisp/progmodes/cc-align.el (c-lineup-java-inher):
* lisp/progmodes/ada-mode.el (ada-compile-goto-error)
(ada-adjust-case-skeleton, ada-create-case-exception)
(ada-create-case-exception-substring)
(ada-case-read-exceptions-from-file, ada-after-keyword-p)
(ada-scan-paramlist, ada-get-current-indent, ada-get-indent-end)
(ada-get-indent-if, ada-get-indent-block-start)
(ada-get-indent-loop, ada-get-indent-type)
(ada-search-prev-end-stmt, ada-check-defun-name)
(ada-goto-decl-start, ada-goto-matching-start)
(ada-goto-matching-end, ada-looking-at-semi-or)
(ada-looking-at-semi-private, ada-in-paramlist-p)
(ada-search-ignore-complex-boolean, ada-move-to-start)
(ada-move-to-end, ada-which-function, ada-gen-treat-proc):
* lisp/net/quickurl.el (quickurl-grab-url):
* lisp/mail/sendmail.el (mail-do-fcc):
* lisp/mail/rmail.el (rmail-resend):
* lisp/mail/mailabbrev.el (mail-abbrev-complete-alias):
* lisp/mail/mail-extr.el (mail-extract-address-components):
* lisp/json.el (json-read-keyword):
* lisp/files.el (insert-directory):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/completion.el (symbol-under-point, symbol-before-point)
(symbol-before-point-for-complete, next-cdabbrev)
(add-completions-from-c-buffer):
* lisp/cedet/semantic/texi.el (semantic-up-context)
(semantic-beginning-of-context):
* lisp/cedet/semantic/bovine/el.el (semantic-get-local-variables):
use 'forward-word-strictly' and 'backward-word-strictly' instead
of 'forward-word' and 'backward-word'.
2016-02-05 23:54:21 +02:00
Lars Ingebrigtsen
dc6eed2592
Fix doc string of tls-program
...
* lisp/net/tls.el (tls-program): Document the %t parameter (bug#22559).
2016-02-05 18:13:34 +11:00
Lars Ingebrigtsen
1ef309fc88
Restore window conf in nsm
...
* lisp/net/nsm.el (nsm-query-user): Restore the window configuration.
Backport:
2016-02-05 17:36:12 +11:00
Leo Liu
71a04969c4
* lisp/custom.el (defface): Revert indentation change. (Bug#22524)
2016-02-05 09:48:17 +08:00
Alan Mackenzie
9dfece1413
Correctly fontify C++ initializations which "look like" functions.
...
Fixes bug#7579.
lisp/progmodes/cc-engine.el (c-forward-declarator): Add extra optional
parameter to enable handling of "anonymous" declarators in declarations.
lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Check more rigorously
whether a "(" opens a parameter list of a function, or an initialization of a
variable.
2016-02-04 19:01:50 +00:00
Ulf Jasper
448522201a
Improve newsticker-treeview-selection-face
...
* newst-treeview.el (newsticker-treeview-selection-face): Improve
readability for dark background.
2016-02-04 18:31:04 +01:00
Paul Eggert
35fc77dceb
Spelling fixes
2016-02-04 07:30:10 -08:00
Vasilij Schneidermann
bf64d65c64
Allow sending empty hidden values in eww
...
* lisp/net/eww.el (eww-tag-input): Allow sending empty hidden
values (bug#22388).
Copyright-paperwork-exempt: Yes
(cherry picked from commit 5898da8210 )
Backport:
2016-02-04 18:06:02 +11:00
David Edmondson
ee7399792f
Make erc work better when encountering unknown prefix chars
...
* lisp/erc/erc.el (erc-channel-receive-names): Output a warning
instead of erroring out on unknown prefix chars (bug#22380).
2016-02-04 18:04:07 +11:00
Lars Ingebrigtsen
b99141da55
Make erc completion case-insensitive again
...
* lisp/erc/erc.el (erc-completion-at-point): Make erc completion
case-insensitive again (bug#11360).
2016-02-04 17:51:53 +11:00
Carlos Pita
66c462005c
Make complection in erc use consistent casing
...
* lisp/erc/erc-pcomplete.el (pcomplete-erc-all-nicks): Make
case in the complection consistent (bug#18509).
Copyright-paperwork-exempt: Yes
2016-02-04 17:03:34 +11:00
Francis Litterio
8c562b2d7f
Make /QUIT in erc more robust
...
* lisp/erc/erc.el (erc-kill-query-buffers): Don't bug out if we're
issuing /QUIT to disconnected servers (bug#22099).
2016-02-04 16:55:01 +11:00
Kevin Brubeck Unhammer
d93d2c5b16
Make tracking faces in Emacs work more reliably
...
* lisp/erc/erc-track.el (erc-faces-in): Always return lists of
faces to avoid later ambiguity (bug#22424).
Copyright-paperwork-exempt: Yes
2016-02-04 16:49:42 +11:00
Lars Ingebrigtsen
af6ab7efc7
Make shr not bug out on images on non-graphical displays
...
* lisp/net/shr.el (shr-put-image): Don't bug out on alt-less
images on non-graphical displays (bug#22327).
2016-02-04 16:44:06 +11:00
Lars Ingebrigtsen
3311f4080b
Fix bookmark display widths
...
* lisp/net/eww.el (eww-list-bookmarks): Pop to the buffer before
preparing it so that the widths are computed correctly (bug#22328).
2016-02-04 16:10:49 +11:00
Lars Ingebrigtsen
d90ab1e221
Fix typo in eww-make-unique-file-name
...
* lisp/net/eww.el (eww-make-unique-file-name): Make this function
actually work.
2016-02-04 16:05:05 +11:00
Lars Ingebrigtsen
7f81825073
Make it possible to TAB to input fields
...
* lisp/net/eww.el (eww-tag-input): Make it possible to TAB to
input fields (bug#22540).
2016-02-04 15:42:08 +11:00
Lars Ingebrigtsen
a43a1dcc3d
Insert complete alt texts when images are disabled
...
* lisp/net/shr.el (shr-tag-img): When images are disabled, insert
the complete alt/title string (bug#22293).
2016-02-04 15:35:20 +11:00
Lars Ingebrigtsen
56ed4e1886
Allow eww text fields to grow
...
* lisp/net/eww.el (eww-process-text-input): Allow text fields to
grow when typing in stuff that's longer than the original width.
2016-02-04 15:28:57 +11:00
Dima Kogan
66b315c9c9
Make erc work when subword-mode is switched on
...
* lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p)
(erc-bounds-of-word-at-point): New functions to do word-based
things when subword-mode is switched on.
* lisp/erc/erc-button.el (erc-button-add-nickname-buttons): Use them
(bug#17558).
2016-02-04 14:24:18 +11:00
Paul Eggert
91557f5e2d
Quoting fixes in doc strings and diagnostics
...
* lisp/emacs-lisp/bytecomp.el (byte-compile-setq, byte-compile-funcall):
* lisp/gnus/mml-smime.el (mml-smime-get-dns-cert)
(mml-smime-get-ldap-cert):
Follow user style preference when quoting diagnostics.
2016-02-03 17:20:17 -08:00
Noam Postavsky
2c0dc9fa70
Fix warning message in hack-local-variables
...
* lisp/files.el (hack-local-variables): use 'thisbuf' to reference
the original buffer name in the warning message. (Bug#21681)
2016-02-03 19:48:45 +02:00
Nicolas Petton
8b87ecb77d
* lisp/emacs-lisp/map.el: Improvements to the docstring of the pcase macro
2016-02-03 15:18:36 +01:00
Lars Ingebrigtsen
6191003fcd
Use pop-to-buffer-same-window in eww
...
* lisp/net/eww.el: pop-to-buffer-same-window throughout instead of
switch-to-buffer (bug#22244).
2016-02-03 13:35:32 +11:00
Lars Ingebrigtsen
5713466646
Fix editing undo changes in eww fields
...
* eww.el (eww-tag-form): Don't overwrite initial form data in text
fields.
(eww-process-text-input): Make `M-t' at the end of text fields work
better (bug#19085).
2016-02-02 18:00:02 +11:00
Lars Ingebrigtsen
51362d68d1
Allow the user more control of popping up the eww window
...
* eww.el (eww): Use pop-to-buffer-same-window (suggested by
Michael Heerdegen) (bug#22244).
2016-02-02 15:57:07 +11:00
Lars Ingebrigtsen
ee0fbd854f
Make eww-browse-url with new-window parameter work again
...
* eww.el (eww-browse-url): Stay in the same buffer if we're
already in a eww mode buffer so that eww-browse-url with a
new-window parameter works (bug#22244).
2016-02-02 15:53:39 +11:00
Lars Ingebrigtsen
9c3142dcc0
Clean up eww code slightly
...
* eww.el (eww-browse-url): Clean up code slightly.
2016-02-02 15:43:35 +11:00
Lars Ingebrigtsen
cb035f348e
Don't insert nil faces in shr
...
* shr.el (shr-insert-table): Don't add nil faces, because that
will show up in *Messages* as "Invalid face reference: nil [32
times]".
2016-02-02 05:16:34 +01:00
Glenn Morris
4c3fae351a
; * lisp/progmodes/prolog.el: Remove some obsolete commentary.
2016-02-01 21:00:58 -05:00
Glenn Morris
93f21530ad
Improve the custom type of some user options.
...
* lisp/autoinsert.el (auto-insert-alist):
* lisp/replace.el (query-replace-from-to-separator):
* lisp/gnus/gnus-art.el (gnus-hidden-properties):
* lisp/gnus/gnus-gravatar.el (gnus-gravatar-properties):
* lisp/gnus/gnus-picon.el (gnus-picon-properties):
* lisp/progmodes/prolog.el (prolog-keywords, prolog-types)
(prolog-mode-specificators, prolog-determinism-specificators)
(prolog-directives, prolog-program-name, prolog-program-switches)
(prolog-consult-string, prolog-compile-string, prolog-eof-string)
(prolog-prompt-regexp): Improve custom type.
2016-02-01 20:59:32 -05:00
Glenn Morris
9f60d7e9a2
Mark some risky calendar variables.
...
* lisp/calendar/cal-china.el (chinese-calendar-time-zone):
Remove risky setting for deleted obsolete alias.
(calendar-chinese-standard-time-zone-name)
(calendar-chinese-daylight-saving-start)
(calendar-chinese-daylight-saving-end):
* lisp/calendar/calendar.el (calendar-iso-date-display-form)
(calendar-european-date-display-form)
(calendar-american-date-display-form, calendar-date-display-form):
* lisp/calendar/diary-lib.el (diary-remind-message)
(diary-header-line-format):
* lisp/calendar/solar.el (calendar-time-display-form)
(calendar-location-name): Mark as risky.
2016-02-01 20:53:44 -05:00
Simen Heggestøyl
1d07dcd720
Highlight two additional SCSS keywords
...
* lisp/textmodes/css-mode.el (css-bang-ids): New defconst holding CSS
identifiers on the form !foo.
(scss-bang-ids): New defconst holding SCSS identifiers on the form
!foo.
(css--font-lock-keywords): Highlight the new SCSS bang identifiers in
`font-lock-builtin-face'.
* test/indent/css-mode.css: Add bang rule test case.
* test/indent/scss-mode.css: Add test cases for the introduced bang
rules.
2016-02-01 21:38:25 +01:00
Kyle Meyer
3b734e1273
* org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)
2016-02-01 08:48:35 -05:00
Andreas Schwab
fc48106d0b
Fix imap-starttls-open
...
* lisp/net/imap.el (imap-starttls-open): Log imap process
output. Call imap-parse-greeting. (Bug#22500)
2016-01-31 14:37:33 +01:00