summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* * lisp/play/dunnet.el (dun-help): Doc fix.Glenn Morris2017-02-231-1/+1
|
* Declare dun-line and dun-line-listMark Oteiza2017-02-231-24/+27
| | | | | | | | Previously, there were free variables 'line' and 'line-list'. * lisp/play/dunnet.el (dun-line, dun-line-list): New variables. (dun-press, dun-vparse, dun-parse2, dun-unix-parse, dun-batch-parse): (dun-batch-parse2, dun-batch-loop, dun-batch-dos-interface): (dun-batch-unix-interface): Use them.
* Use revision-completion-table in vc-retrieve-tagDmitry Gutov2017-02-221-11/+15
| | | | | * lisp/vc/vc.el (vc-retrieve-tag): Use the revision-completion-table command for completion (bug#25710).
* * lisp/emacs-lisp/cl-generic.el (cl--generic-typeof-types): Add `atom'Stefan Monnier2017-02-211-15/+22
| | | | | | | remove entries whose car can't be returned by type-of. (cl--generic-all-builtin-types): New var. (cl-generic-generalizers): Use it to avoid requiring extra entries in cl--generic-typeof-types.
* Find macro binding for symbol-bound macros too (Bug#6848)Noam Postavsky2017-02-211-2/+3
| | | | | | | | | | | There are 2 ways to bind a macro: with global-set-key or kmacro-bind-to-key. The former binds a key to a symbol, while the latter binds to a lambda. In 2010-03-03 "Fix keyboard macro key lookup (Bug#5481)", `insert-kbd-macro' was fixed to detect the lambda case, but broke the symbol case. * lisp/macros.el (insert-kbd-macro): Also check for bindings of MACRONAME.
* * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Fix last changeStefan Monnier2017-02-211-1/+1
|
* * lisp/isearch.el (lazy-highlight-max-at-a-time): Doc fix (bug#21092).Juri Linkov2017-02-221-1/+1
|
* * lisp/isearch.el (isearch-lazy-highlight): New choice ‘all-windows’.Juri Linkov2017-02-222-4/+13
| | | | | | | | (isearch-lazy-highlight-update): Check it to decide whether to apply overlays only on the selected window. * lisp/follow.el (follow-mode): Set isearch-lazy-highlight to ‘all-windows’. (Bug#17453, bug#21092)
* Avoid flicker in lazy-highlight by doing all updates without redisplay.Juri Linkov2017-02-221-11/+17
| | | | | | | | | | | | | * lisp/isearch.el (lazy-highlight-max-at-a-time): Change default value from 20 to nil to not trigger redisplay between updating iterations. (lazy-highlight-cleanup): New arg ‘procrastinate’ to not remove overlays when non-nil. (isearch-lazy-highlight-new-loop): Call lazy-highlight-cleanup with non-nil second arg when the search string is not empty. Run timer with isearch-lazy-highlight-start instead of isearch-lazy-highlight-update. (isearch-lazy-highlight-start): New function. (Bug#25751)
* ; * lisp/custom.el: Comments.Glenn Morris2017-02-211-2/+9
|
* * lisp/emacs-lisp/autoload.el (make-autoload): Support cl-defgenericStefan Monnier2017-02-212-5/+2
| | | | * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Tweak for autoloading.
* * lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Fix duplicationStefan Monnier2017-02-211-1/+14
| | | | | which resulted in incomplete list of parents in one copy of the cl-structure-class class.
* Tweak recent custom-reevaluate-setting changeGlenn Morris2017-02-211-11/+7
| | | | | * lisp/custom.el (custom-reevaluate-setting): Tweak previous change to avoid font-lock init issues.
* Ensure delayed-init custom variables get marked specialGlenn Morris2017-02-201-3/+11
| | | | | * lisp/custom.el (custom-reevaluate-setting): If the variable has never been set, defvar it. (Bug#25770)
* ; Add a new TODO itemGlenn Morris2017-02-201-1/+1
| | | | | * etc/TODO: Add a new entry for :set-after. * lisp/startup.el: Related comment.
* Turn on lexical-binding in dunnet.elMark Oteiza2017-02-201-2/+2
| | | | | * lisp/play/dunnet.el: Turn on lexical-binding. Re-instate lexical byte compile warnings.
* Make dunnet insertion functions n-aryMark Oteiza2017-02-201-66/+44
| | | | | | | | | | * lisp/play/dunnet.el (dun-mprinc, dun-mprincl, dun-minsert): (dun-minsertl, dun-batch-mprinc, dun-batch-mprincl): Change to accept any number of arguments. (dun-parse, dun-describe-room, dun-quit, dun-inven, dun-shake): (dun-take, dun-go, dun-move, dun-press, dun-score): (dun-compile-save-out, dun-do-logfile): Collect arguments from multiple insertion calls into less calls with more args.
* message-goto-body-1: Fix regexp so as not to match multi-lineKatsumi Yamaoka2017-02-211-1/+1
| | | | | * lisp/gnus/message.el (message-goto-body-1): Fix regexp so as not to match multi-line.
* Simplify cl-get using `plist-member'Noam Postavsky2017-02-201-20/+8
| | | | | | * lisp/emacs-lisp/cl-extra.el (cl-get, cl-getf, cl--set-getf): Use `plist-member' instead of explicit loop. * test/lisp/emacs-lisp/cl-extra-tests.el: New tests.
* Do not use switch-to-buffer for working in a temp bufferMark Oteiza2017-02-201-106/+83
| | | | | | | * lisp/play/dunnet.el (dunnet): Use pop-to-buffer-same-window instead, cf. Bug#22244. (dun-load-d, dun-eval, dun-save-game, dun-do-logfile): Use with-temp-buffer instead.
* Make dun-room-shorts a defconstMark Oteiza2017-02-201-24/+11
| | | | | | * lisp/play/dunnet.el (dun-room-shorts): Make defconst and collect initial value into the declaration. (dun-space-to-hyphen): Remove.
* mm-decode.el: Simplify regexp used to search html meta tagKatsumi Yamaoka2017-02-201-14/+11
| | | | | * lisp/gnus/mm-decode.el (mm-add-meta-html-tag, mm-shr): Simplify regexp used to search html meta tag.
* mm-shr: Ignore coding-system `ascii'Katsumi Yamaoka2017-02-201-2/+3
| | | | * lisp/gnus/mm-decode.el (mm-shr): Ignore coding-system `ascii'.
* vc-log-outgoing fixes for git; add binding to vc-dirTom Tromey2017-02-193-7/+8
| | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-mode-map): Bind "O" to vc-log-outgoing. * lisp/vc/vc-git.el (vc-git-log-outgoing, vc-git-log-incoming): Use async execution. (vc-git-log-view-mode): Also truncate lines for log-outgoing and log-incoming. * lisp/vc/vc.el (vc-log-incoming, vc-log-outgoing): Don't pass nil as remote-location argument.
* Remove stale comments from vc-git and vc-hgTom Tromey2017-02-192-5/+2
| | | | | * lisp/vc/vc-git.el (vc-git-retrieve-tag): Remove comment. * lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Remove comment.
* Remove member cloneMark Oteiza2017-02-191-11/+1
| | | | | * lisp/play/dunnet.el (dun-answer): Use member instead. (dun-members): Remove.
* Prefix global varMark Oteiza2017-02-191-12/+13
| | | | | | * lisp/play/dunnet.el (room): Rename to dun-room. (dun-messages, dunnet, dun-describe-room, dun-drop, dun-move): (dun-restore, dun-do-logfile, dun-batch-loop): Use new name.
* Replace nested ifs with condMark Oteiza2017-02-191-300/+252
| | | | | | | | | | * lisp/play/dunnet.el (dun-messages, dun-describe-room, dun-examine): (dun-eat, dun-put-objs, dun-turn, dun-press, dun-ls, dun-cd): Use when and cond where appropriate. (dun-sauna-heat): Accept sauna level as an argument. Use cond. (dun-take): Use null and dun-mprincl. (dun-inven-weight, dun-load-d): Reformat. (dun-remove-obj-from-inven, dun-remove-obj-from-room): Nix setq to nil.
* Rework connection local variablesMichael Albinus2017-02-193-80/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For connection local variables interface, `class' is renamed to `profile'. All arguments `criteria' are a plist now. * doc/lispref/variables.texi (Connection Local Variables): Rewrite. * lisp/files-x.el (connection-local-profile-alist): Rename from `connection-local-class-alist'. Adapt docstring. (connection-local-criteria-alist): Adapt docstring. (connection-local-normalize-criteria): New defun. (connection-local-get-profiles): Rename from `connection-local-get-classes'. Rewrite. (connection-local-set-profiles): Rename from `connection-local-set-classes'. Rewrite. (connection-local-get-profile-variables): Rename from `connection-local-get-class-variables'. Rewrite. (connection-local-set-profile-variables): Rename from `connection-local-set-class-variables'. Rewrite. (hack-connection-local-variables) (hack-connection-local-variables-apply)): Rewrite. (with-connection-local-profiles): Rename from `ith-connection-local-classes'. Rewrite. * lisp/net/tramp.el (tramp-set-connection-local-variables): Compute criteria. * lisp/net/tramp-cmds.el (tramp-bug): Use `connection-local-profile-alist'. * test/lisp/files-x-tests.el (files-x-test--variables1) (files-x-test--variables2, files-x-test--variables3) (files-x-test--variables4, files-x-test--criteria1) (files-x-test--criteria2): Make them a defconst. (files-x-test--application) (files-x-test--another-application, files-x-test--protocol) (files-x-test--user, files-x-test--machine): New defconst. (files-x-test--criteria): New defvar. (files-x-test--criteria3): Remove. (files-x-test-connection-local-set-profile-variables): Rename from `files-x-test-connection-local-set-class-variables'. Rewrite. (files-x-test-connection-local-set-profiles): Rename from `files-x-test-connection-local-set-classes'. Rewrite. (files-x-test-hack-connection-local-variables-apply) Rewrite. (files-x-test-with-connection-local-profiles): Rename from `files-x-test-with-connection-local-classes'. Rewrite.
* ; Fix previous changeMark Oteiza2017-02-191-1/+2
| | | | | | Actually adjust the comment. * lisp/play/dunnet.el: Change comment to refer to section, add page break to better demarcate section.
* Set up combination and random item locationMark Oteiza2017-02-191-6/+5
| | | | | * lisp/play/dunnet.el (dun-combination): Make defconst. (tloc, tcomb): Remove. Replace with a top-level form.
* Replace movement variables with an alist and accessorMark Oteiza2017-02-191-28/+38
| | | | | | | | | | | * lisp/play/dunnet.el (north, south, east, west, northeast, southeast): (northwest, southwest, up, down, in, out): Remove. (dun-movement-alist): New constant. (dun-movement): New function. (dun-n, dun-s, dun-e, dun-w, dun-ne, dun-se, dun-nw, dun-sw, dun-up): (dun-down, dun-in, dun-out): Use a symbol for indicating movement. (dun-move, dun-special-move): Translate movement symbol to an enumeration.
* Change top-level setq forms to defvar or defconstMark Oteiza2017-02-191-397/+349
| | | | | | | | | | | | | | | | | | | | | | | Also collect some code onto fewer lines and reindent. * lisp/play/dunnet.el (dun-visited, dun-current-room, dun-exitf): (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole): (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead): (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in): (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode): (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet): (dun-restricted, dun-ftptype, dun-endgame, dun-rooms): (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore): (dun-mode, dun-sauna-level, north, south, east, west, northeast): (southeast, northwest, southwest, up, down, in, out, dungeon-map): (dun-objnames, obj-special, dun-room-objects, dun-room-silents): (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts): (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc): (dun-diggables, dun-room-shorts, dun-endgame-questions): Change declaration to use defvar or defconst. (dun-doverb, dun-vparse, dun-vparse2, dun-batch-parse): (dun-batch-parse2): Omit the dun- prefix from arguments dun-ignore dun-verblist. Those are now constants and the byte compiler doesn't allow defconsts in lambda lists.
* Move all dunnet globals up to the topMark Oteiza2017-02-191-1122/+1127
| | | | | | | | | | | | | | | | | | | * lisp/play/dunnet.el: Adjust comments to reflect moved forms. (dun-visited, dun-current-room, dun-exitf): (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole): (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead): (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in): (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode): (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet): (dun-restricted, dun-ftptype, dun-endgame, dun-rooms): (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore): (dun-mode, dun-sauna-level, north, south, east, west, northeast): (southeast, northwest, southwest, up, down, in, out, dungeon-map): (dun-objnames, obj-special, dun-room-objects, dun-room-silents): (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts): (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc): (dun-diggables, dun-room-shorts, dun-endgame-questions): Move to the top of the file, before any uses.
* Fix bug#25788Michael Albinus2017-02-191-4/+7
| | | | | * lisp/net/tramp.el (tramp-autoload-file-name-handler): Do not load tramp.el just for "/". (Bug#25788)
* More json.el changesMark Oteiza2017-02-181-10/+10
| | | | | * lisp/json.el (json-read-keyword, json-read-number, json-read-object): (json-read-array): Just use = for char comparison.
* Fix edebug-spec on c-lang-defvar.Alan Mackenzie2017-02-181-5/+3
| | | | | | | | | | This allows c-lang-defvars with the symbol 'dont-doc in the place of the optional documentation to be instrumented for edebug. lisp/progmodes/cc-langs.el (top-level): Amend the edebug-spec for c-lang-defvar. (c-opt-identifier-concat-key, c-decl-prefix-or-start-re): remove redundant 'dont-doc.
* Lists used as plists now have to be an even lengthLars Ingebrigtsen2017-02-181-5/+6
| | | | | * lisp/net/eww.el (eww-size-text-inputs): `eww-form' isn't a plist. (eww-process-text-input): Not here, either.
* Unset `non-essential' in Tramp when not needed anymoreMichael Albinus2017-02-183-7/+10
| | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.3.2-pre". * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use `tramp-completion-mode-p'. * lisp/net/tramp.el (tramp-file-name-handler): Unset `non-essential' when file name doesn't match `tramp-completion-file-name-regexp'.
* Set the syntax table in AWK Mode.Alan Mackenzie2017-02-181-0/+1
| | | | | | | This is a partial reversion of CC Mode commit on 2016-05-09 17:49:45 +0000. It fixes bug #25722. lisp/progmodes/cc-mode.el (awk-mode): Explicitly set the syntax table.
* Fix Turkish language environment setupGöktuğ Kayaalp2017-02-181-1/+1
| | | | | * lisp/language/european.el ("Turkish"): Fix a typo in Turkish language setup. (Bug#25763)
* Support 24-bit direct colors on text terminalsRami Ylimäki2017-02-182-2/+25
| | | | | | | | | | | | | | | | | | | * src/term.c (init_tty): Use 24-bit terminal colors if corresponding foreground and background functions are present in terminal type definition. * src/tparam.h: Define prototype for tigetstr. * lisp/term/tty-colors.el (tty-color-define): Convert color palette index to pixel value on 16.7M color terminals. (tty-color-24bit): New function to convert color palette index to pixel value on 16.7M color terminals. (tty-color-desc): Don't approximate colors on 16.7M color terminals. * lisp/term/xterm.el (xterm-register-default-colors): Define all named TTY colors on 16.7M color terminals. * doc/misc/efaq.texi (Colors on a TTY): Add instructions on how to enable direct color TTY mode. * etc/NEWS: Mention direct color TTY mode and point to FAQ.
* Avoid infloop in rect.elEli Zaretskii2017-02-181-3/+5
| | | | | * lisp/rect.el (rectangle--*-char): Avoid inflooping when called with argument N whose absolute value is greater than 1. (Bug#25773)
* Avoid errors when flyspell-generic-check-word-predicate is a lambda.Hong Xu2017-02-171-3/+3
| | | | | | * flyspell.el (flyspell-auto-correct-word, flyspell-word): Apply functionp instead of fboundp on flyspell-generic-check-word-predicate (Bug#25765).
* Remove the build number from emacs-version variableGlenn Morris2017-02-174-12/+15
| | | | | | | | | | | | | | | It's a largely internal detail that can confuse users. (Bug#25590) * lisp/version.el (emacs-build-number): New constant. (emacs-version): Use emacs-build-number. * lisp/loadup.el (top-level): When dumping, increment emacs-build-number rather than emacs-version. * src/emacs.c (emacs-version): Doc fix. * doc/lispref/intro.texi (Version Info): Update emacs-version details. Mention emacs-build-number. * lisp/gnus/gnus-util.el (gnus-emacs-version): * lisp/mail/emacsbug.el (report-emacs-bug): * admin/admin.el (set-version): Update for emacs-version change. ; * etc/NEWS: Mention this.
* Ensure that user-mail-address always has a valueGlenn Morris2017-02-174-44/+27
| | | | | | | | | | | * lisp/startup.el (user-mail-address): Initialize in the normal way. (command-line): Reset user-mail-address if needed using standard custom machinery. * lisp/mail/feedmail.el (feedmail-fiddle-from): * lisp/mail/rmail.el (rmail-unknown-mail-followup-to): * lisp/mail/rmailsum.el (rmail-header-summary): Simplify now that user-mail-address is always set. ; * doc/lispref/os.texi (System Environment): Remove fixme comment.
* Turn on lexical-binding in ruby-modeMark Oteiza2017-02-171-6/+5
| | | | | | * lisp/progmodes/ruby-mode.el: Turn on lexical-binding. (ruby-font-lock-syntax-table): Use make-syntax-table. (ruby-mode): 'define-derived-mode' writes the keys for us.
* Turn on lexical-binding in elint.elMark Oteiza2017-02-171-9/+7
| | | | | | | | * lisp/emacs-lisp/elint.el: Quote entry point commands in commentary. (elint-running, elint-current-pos): Move these dynamic vars to toward the top of the file. (elint-check-quote-form): Ignore unused argument. (elint-check-conditional-form): Remove unused binding.
* * lisp/emacs-lisp/subr-x.el (if-let*): Fix Edebug spec (Bug#24748)Gemini Lasswell2017-02-171-1/+2
|
* Enable erc-accidental-paste-threshold-seconds by defaultMark Oteiza2017-02-171-2/+2
| | | | | * lisp/erc/erc.el (erc-accidental-paste-threshold-seconds): Set default to 0.2 (Bug#25709).