summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* Make C-u C-x m work with Message as documentedLars Ingebrigtsen2017-01-251-23/+21
| | | | | * lisp/gnus/message.el (message-mail): Respect the CONTINUE parameter (bug#17175).
* Fix problem with auto-mode and dir-locals-collect-variablesLars Ingebrigtsen2017-01-251-1/+2
| | | | | | | | | | | | | | | | * lisp/files.el (dir-locals-collect-variables): When run from auto-mode, the file in question may not be an absolute path name (bug#24016). Example backtrace: Debugger entered--Lisp error: (args-out-of-range "compile-1st-in-loa dir-locals-collect-variables(((emacs-lisp-mode (indent-tabs-mode)) hack-dir-local-variables() hack-local-variables(no-mode) run-mode-hooks(diff-mode-hook) diff-mode() mm-display-inline-fontify((#<buffer *mm*-923037> ("text/x-diff" (
* Attach text files correctly in MessageLars Ingebrigtsen2017-01-251-12/+17
| | | | | | * lisp/gnus/mml.el (mml-generate-mime-1): Detect which coding system has been used in attached text files, and don't try to do any encoding of these files (bug#13808).
* ediff-difference-vector-alist: Drop duplicated definitionTino Calancha2017-01-251-26/+20
| | | | | | | | * lisp/vc/ediff-init.el (ediff-difference-vector-alist): Drop duplicated definition. (ediff-difference-vector-A, ediff-difference-vector-B) (ediff-difference-vector-C, ediff-difference-vector-Ancestor): Move definition before 'ediff-difference-vector-alist'.
* Revert "nnimap.el: support additional expunge options"Lars Ingebrigtsen2017-01-251-50/+37
| | | | | | | | | | | | This reverts commit 4e9baea6aba1633074889339dcc7cdc9d73880d3. The patch broke fetching new mail: Debugger entered--Lisp error: (error "Format specifier doesn’t match argument type") format("%d .*\n" (t ("OK" ("HIGHESTMODSEQ" "914696") "Expunge" "completed.") ("VANISHED" "1825937") ("0" "RECENT"))) (looking-at (format "%d .*\n" sequence)) (not (looking-at (format "%d .*\n" sequence))) (progn (while (and (not (bobp)) (progn (forward-line -1) (looking-at "\\*\\|[0-9]+ OK NOOP")))) (not (looking-at (format "%d .*\n" sequence))))
* nnimap.el: support additional expunge optionsNikolaus Rath2017-01-251-37/+50
| | | | | | | * 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).
* Don't tag Gnus bugs with "gnus"Lars Ingebrigtsen2017-01-252-9/+1
| | | | | | | * lisp/gnus/gnus-msg.el (gnus-bug): Remove the bug package tags. * lisp/gnus/gnus.el (gnus-bug-package): Removed; Gnus doesn't have its own package any more in the bug tracker.
* Avoid having eww unexpectedly open external browsersLars Ingebrigtsen2017-01-241-1/+8
| | | | | | | | | * lisp/net/eww.el (eww-render): Instead of opening unsupported content types like audio/mpeg directly in an external browser (which can be very confusing especially when something redirects to a file like that), just display a simple interstitial that people can choose to click on or not (bug#22671).
* When opening new eww buffers, use buffer names based on the host nameLars Ingebrigtsen2017-01-241-21/+28
| | | | | | | * lisp/net/eww.el (eww-browse-url): When opening in a new window, use a buffer name based on the host name (bug#23738). (eww--dwim-expand-url): Refactored out into its own function for easier reuse.
* xml: Fix parsing of default namespace with quoted namesDavid Engster2017-01-241-2/+4
| | | | | | | * lisp/xml.el (xml-parse-attlist): Properly extract namespace when parsing is done with quoted symbol names (bug#23440). * test/lisp/xml-tests.el (xml-parse-test--default-namespace-qnames) (xml-parse-test-default-namespace-qnames): Test for the above.
* Fix rendering of some complex SVG imagesLars Ingebrigtsen2017-01-241-5/+7
| | | | | | * lisp/net/shr.el (shr-parse-image-data): Don't transform SVG->DOM->XML unless we're blocking images, as this is apt to destroy the SVG (bug#24111).
* Clarify the last clarificationLars Ingebrigtsen2017-01-241-2/+2
| | | | | * lisp/net/shr.el (shr-width): Clarify the interaction with `shr-use-fonts' (bug#24928).
* shr-width doc clarificationLars Ingebrigtsen2017-01-241-2/+3
| | | | | * lisp/net/shr.el (shr-width): Clarify the interaction with `shr-use-fonts' (bug#24928).
* Allow passing in max-width/heightLars Ingebrigtsen2017-01-241-4/+11
| | | | | * lisp/net/shr.el (shr-rescale-image): Allow passing in max-width/height (bug#25287).
* * lisp/progmodes/vhdl-mode.el: Avoid add-to-list on local varsStefan Monnier2017-01-241-17/+26
| | | | | | Require `cl' for `pushnew'. (vhdl-scan-project-contents, vhdl-compose-wire-components) (vhdl-uniquify): Use `pushnew' instead of `add-to-list'.
* Give , and .@ doc strings. Fixes bug #24561.Alan Mackenzie2017-01-233-15/+35
| | | | | | | | | | | | | | | | | | | Also make *Help* links to ``' possible. Also make usable as such doc strings on the function-documentation property of a symbol. * lisp/emacs-lisp/backquote.el (top-level): Give , and '@ doc strings on the function-documentation property. Also give these symbols a reader-construct property. * lisp/help-fns.el (describe-function): Allow the function-documentation property to work. Use princ rather than prin1 to print the function's name when it has a reader-construct property. (help-fns-signature): Don't insert `high-usage' for a reader-construct. (describe-function-1): Adapt to process documentation on the function-documentation property. Print "a reader construct" when appropriate. * lisp/help-mode.el (help-xref-symbol-regexp): Amend this regexp also to match ``'.
* ; Fix previous commitMark Oteiza2017-01-221-1/+1
| | | | * lisp/play/dunnet.el (dun-drop): Nix assignment of nonexistent binding.
* Prevent to use tabulated-list--near-rows unboundTino Calancha2017-01-221-2/+7
| | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Make sure 'tabulated-list--near-rows' is bound before use it (Bug#25506).
* * lisp/simple.el (region-bounds): New function.Juri Linkov2017-01-221-1/+5
| | | | | (region-noncontiguous-p): Use it. http://lists.gnu.org/archive/html/emacs-devel/2017-01/msg00044.html
* Fix low-level handling of (big) C macros.Alan Mackenzie2017-01-212-17/+34
| | | | | | | | | | | | | | | | | | | | In particular, ensure that a comment detected by its syntax is not a CPP construct marked with generic comment delimiter syntax-table text properties. * lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Set c-macro-cache-syntactic to nil when the cached macro changes. (c-syntactic-end-of-macro, c-no-comment-end-of-macro) (c-state-semi-pp-to-literal, c-state-full-pp-to-literal) (c-state-pp-to-literal, c-parse-ps-state-to-cache) (c-state-cache-non-literal-place, c-literal-limits, c-literal-start) (c-determine-limit): When checking a parse syntax for a comment, check that we're not in a CPP construct marked by syntax-table generic comment delimiter text property. (c-state-pp-to-literal): Change from a defsubst to a defun. * lisp/progmodes/cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Check a parse syntax as described above under cc-engine.el.
* diff-hunk-kill independent of point inside headersTino Calancha2017-01-211-18/+49
| | | | | | | | | | | | | | | | | | | | | Make diff-apply-hunk and diff-hunk-kill independent of the point position in a diff header (Bug#17544). This change allows to apply hunks in order. It also makes possible to press M-k repeatedly to kill hunks in the order they appear in the buffer. See discussion on #Bug25105. * lisp/vc/diff-mode.el (diff-file-junk-re): Move definition before it's used. (diff--at-diff-header-p): New predicate; return non-nil when point is inside a hunk header, a file header, or within a line matching diff-file-junk-re. (diff-beginning-of-hunk): Use it. Check if the point is inside a diff header, in the middle of a hunk, or before the first hunk. (diff-apply-hunk): Call diff-beginning-of-hunk with non-nil arg before apply the hunk. (diff-hunk-kill, diff-file-kill): Call diff-beginning-of-hunk with non-nil arg after kill the hunks. (diff-post-command-hook): Call diff-beginning-of-hunk with non-nil argument.
* ; Revert "Improve diff-mode navigation/manipulation"Tino Calancha2017-01-211-140/+34
| | | | | | | | | | | | | | This reverts commit 2c8a7e50d24daf19ea7d86f1cfeaa98a41c56085. This change causes regressions: https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00738.html The following related commits are reverted as well: 61c6a10e3110490dadac4577cc540053341ff25c a283d655db88cdcc8cb53d8e2578e1cdf751c84b 6b6abe0dba6a9a2e5f78aac3814421886e7a184f e5ef59b87da5c2ddfa22f7342efe29b3eea6ed97 73349822cbd6e50526eda9c75453584d73dfca83 Fixes: debbugs:25105, 25400.
* Fix free var FOO-mode-{syntax,abbrev}-table warningsNoam Postavsky2017-01-191-0/+2
| | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): Unconditionally defvar the syntax and abbrev tables so that the compiler will know that they are dynamically bound variables (Bug#25446).
* Avoid inefficient regex in diff-refine-hunk (Bug#25410)Noam Postavsky2017-01-181-10/+21
| | | | | | * lisp/vc/diff-mode.el (diff--forward-while-leading-char): New function. (diff-refine-hunk): Use it instead of trying to match multiple lines with a single lines.
* Add info-lookup help for gdb-script-modeTom Tromey2017-01-171-0/+29
| | | | | | | Bug#25464: * lisp/info-look.el (info-lookup-guess-gdb-script-symbol): New function. Add help for gdb-script-mode.
* Treat ":root" as a css-selectorTom Tromey2017-01-171-0/+2
| | | | | * lisp/textmodes/css-mode.el (css--font-lock-keywords): Recognize bare ":root" as selector.
* Fix JS regexp literal syntax propertization in expressionsTom Tromey2017-01-171-2/+2
| | | | | | | Bug#25465: * lisp/progmodes/js.el (js-syntax-propertize): Recognize a regexp literal after "!", "&", and "|". test/lisp/progmodes/js-tests.el (js-mode-regexp-syntax): New test.
* Mark unused arguments and remove unused variablesMark Oteiza2017-01-171-52/+51
| | | | | | | | | | | | | * lisp/play/dunnet.el (dun-mode, dun-die, dun-inven, dun-try-take): (dun-dig, dun-type, dun-n, dun-s, dun-e, dun-w, dun-ne, dun-se): (dun-nw, dun-sw, dun-up, dun-down, dun-in, dun-out, dun-long): (dun-swim, dun-score, dun-flush, dun-piss, dun-sleep, dun-drive): (dun-superb, dun-power, dun-unix-parse, dun-bin, dun-fascii): (dun-ftpquit, dun-ftphelp, dun-uexit, dun-pwd, dun-dos-parse): (dun-dos-invd, dun-dos-spawn, dun-dos-exit, dun-dos-nil): (dungeon-nil): Mark arguments as unused. (dun-drop, dun-objnum-from-args, dun-get-path, dun-ftp): (dun-restore): Remove unused variable.
* Fix auto-save-file-name problem in Tramp on MS WindowsMichael Albinus2017-01-172-5/+9
| | | | | | | | | | | * lisp/files.el (make-auto-save-file-name): Use `file-remote-p' rather than an ange-ftp regexp. * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name): Fix a problem when running on MS Windows. * test/lisp/net/tramp-tests.el (tramp-test31-make-auto-save-file-name): Adapt test.
* ; Spelling fixesPaul Eggert2017-01-171-8/+7
|
* Merge from origin/emacs-25Paul Eggert2017-01-171-1/+1
|\ | | | | | | | | 42614fa Update remaining copyright years with admin.el M-x set-copyright f17a006 * lisp/ffap.el (ffap-lax-url): Bump :version after recent cha...
| * * lisp/ffap.el (ffap-lax-url): Bump :version after recent change.Glenn Morris2017-01-041-1/+1
| |
| * Document that functions in 'ffap-alist' can use the match dataPhilipp Stephani2017-01-031-1/+4
| | | | | | | | | | * lisp/ffap.el (ffap-alist): Document that ffap sets the match data while walking 'ffap-alist'.
* | Nix some uses of evalMark Oteiza2017-01-171-6/+4
| | | | | | | | | | | | | | * lisp/play/dunnet.el: Fix triple negative. (dun-doverb): Use funcall instead of eval. (dun-echo): Just call dun-mprinc. (dun-save-val): Just bind value without eval.
* | ; * lisp/play/dunnet.el: Fix file footer.Mark Oteiza2017-01-161-2/+2
| |
* | Fix comment in css-mode.elTom Tromey2017-01-161-1/+0
| | | | | | | | * lisp/textmodes/css-mode.el: Remove obsolete comment.
* | Improve ffap-gopher-at-point handling of long linesNoam Postavsky2017-01-151-31/+35
| | | | | | | | | | | | | | | | | | | | * lisp/ffap.el (ffap-gopher-regexp): Only match the KEY part. Note setting to nil is now supported. (ffap--gopher-var-on-line): New function. (ffap-gopher-at-point): Use it instead of the old ffap-gopher-regexp which could overflow the regexp stack on long lines (Bug#25391). Use `let-alist' instead of calling `set' on local variables. * test/lisp/ffap-tests.el (ffap-gopher-at-point): New test.
* | Correct c-parse-state-get-strategy for moving HERE backward into a macro.Alan Mackenzie2017-01-141-6/+20
| | | | | | | | | | | | | | * list/progmodes/c-engine.el (c-parse-state-get-strategy): When HERE is below its previous value, we chose strategy 'forward, and the new HERE is in a (different) macro, ensure the returned START-POINT is not above the start of the macro.
* | Include "Date:" in mail messages filed by 'sendmail-send-it'Eli Zaretskii2017-01-141-1/+2
| | | | | | | | | | | | | | * lisp/mail/sendmail.el (mail-do-fcc): Insert a 'Date:' header into the filed message. In the outgoing message, sendmail will add the date, but the composed message body doesn't have it. (Bug#25436)
* | Remove leftover references to log-view-message-faceDmitry Gutov2017-01-143-4/+4
| | | | | | | | | | | | | | | | * lisp/vc/vc-bzr.el (vc-bzr-log-view-mode): Use log-view-message. * lisp/vc/vc-git.el (vc-git-root-log-format): Same. * lisp/vc/vc-hg.el (vc-hg-root-log-format): Same.
* | Record autoloads till emacs dumpPhillip Lord2017-01-131-0/+34
| | | | | | | | | | | | | | | | | | | | * admin/ldefs-clean.el (ldefs-clean-up): Record autoloads till emacs dump * lisp/ldefs-boot-auto.el (batch-byte-compile): Update Previously, autoloads were collected till loaddefs.el was generated as part of the build. However, bootstrap-emacs does not load loaddefs (rather it is dumped), hence we must record autoloads until the full emacs binary is dumped.
* | Add chained indentation to js-modeTom Tromey2017-01-131-0/+72
| | | | | | | | | | | | | | | | | | | | Bug#20896 * lisp/progmodes/js.el (js-chain-indent): New variable. (js--skip-term-backward, js--skip-terms-backward) (js--chained-expression-p): New functions. (js--proper-indentation): Call js--chained-expression-p. * test/manual/indent/js-chain.js: New file. * test/manual/indent/js.js: Add (non-)chained indentation test.
* | Fix js-mode indentation bugTom Tromey2017-01-131-1/+19
| | | | | | | | | | | | | | Bug#15582: * lisp/progmodes/js.el (js--find-newline-backward): New function. (js--continued-expression-p): Use it. * test/manual/indent/js.js: Add new test.
* | Add .jsx to auto-mode-alistTom Tromey2017-01-131-0/+1
| | | | | | | | | | Bug#25389: * lisp/files.el (auto-mode-alist): Add entry for .jsx.
* | Fix two js-mode filling bugsTom Tromey2017-01-131-0/+2
| | | | | | | | | | | | | | Bug#19399 and Bug#22431: * lisp/progmodes/js.el (js-mode): Set comment-line-break-function and c-block-comment-start-regexp. * test/lisp/progmodes/js-tests.el: New file.
* | Fix last change of dd80ee6 (was: mm-uu.el: Don't dissect patch part)Katsumi Yamaoka2017-01-131-2/+1
| |
* | mm-uu.el: Don't dissect patch partKatsumi Yamaoka2017-01-131-0/+2
| | | | | | | | | | | | | | | | This fixes a bug that the patch part is broken in the article <87inpjzhpb.fsf@users.sourceforge.net> in the bug-gnu-emacs list. * lisp/gnus/mm-uu.el (mm-uu-dissect-text-parts): Don't dissect patch part.
* | Fix extracting async def type and name in python mode imenuDmitry Lazurkin2017-01-121-5/+12
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-imenu--get-defun-type-name): New function. (python-imenu--build-tree): Use python-imenu--get-defun-type-name for extract async or simple def type and name at current position (Bug#24820). * test/lisp/progmodes/python-tests.el (python-imenu-create-index-1): (python-imenu-create-flat-index-1): Add async def's.
* | Remove garbage from Content-Transfer-Encoding value (bug#25420)Katsumi Yamaoka2017-01-127-14/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mail/ietf-drums.el (ietf-drums-strip-cte): New function. (ietf-drums-remove-garbage): New function. (ietf-drums-remove-whitespace): Remove CR as well. * lisp/mail/mail-parse.el (mail-header-strip-cte): Alias to ietf-drums-strip-cte. * lisp/gnus/gnus-art.el (article-decode-charset): * lisp/gnus/gnus-sum.el (gnus-summary-enter-digest-group): * lisp/gnus/mm-decode.el (mm-dissect-buffer): * lisp/gnus/nndoc.el (nndoc-decode-content-transfer-encoding) (nndoc-rfc822-forward-generate-article): * lisp/mh-e/mh-mime.el (mh-decode-message-body): Replace mail-header-strip with mail-header-strip-cte.
* | Add DNS keywords and remove duplicationsAlexander Kuleshov2017-01-111-2/+5
| | | | | | | | | | * lisp/textmodes/dns-mode.el (dns-mode-types): Add two TLSA and NSEC" DNS related keywords and remove duplication of "NSAP".