summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | * lisp/term/ns-win.el (parameters): Don't declare as dynamic.Stefan Monnier2013-09-122-22/+5
| | | | | | | | (before-make-frame-hook): Don't add ineffective function.
* | * lisp/eshell/*.el: Use lexical-binding.Stefan Monnier2013-09-1229-46/+37
| | | | | | | | | | | | | | * test/automated/eshell.el: Move from test/eshell.el. (eshell-test/for-loop, eshell-test/for-name-loop): New tests. Fixes: debbugs:15231
* | * lisp/cedet/semantic/find.el (semantic-find-first-tag-by-name):Glenn Morris2013-09-122-3/+8
| | | | | | | | Replace obsolete function assoc-ignore-case with assoc-string.
* | merge trunkKenichi Handa2013-09-1298-1358/+1397
|\ \
| * | Remove superflous commentGlenn Morris2013-09-121-4/+0
| | |
| * | * vc/vc-dispatcher.el (vc-dir-refresh): Declare.Glenn Morris2013-09-112-0/+4
| | |
| * | * vc/vc-svn.el (vc-svn-retrieve-tag): Mark unused argument.Glenn Morris2013-09-112-2/+2
| | |
| * | * vc/vc-svn.el (vc-svn-dir-status-files, vc-svn-dir-extra-headers)Glenn Morris2013-09-112-3/+6
| | | | | | | | | | | | (vc-svn-ignore): Mark unused arguments.
| * | Revert part of previous vc-bzr changeGlenn Morris2013-09-112-2/+2
| | |
| * | gnus-icalendar small fixGlenn Morris2013-09-112-3/+12
| | | | | | | | | | | | | | | | | | | | | * gnus/gnus-icalendar.el (gnus-icalendar-event--build-reply-event-body): Avoid using `find', which i) might not be defined at runtime; ii) does not work, since its default test is eql, not equal. (gnus-mime-action-alist): Declare.
| * | * subr.el (do-after-load-evaluation): Also give compiler warningsGlenn Morris2013-09-112-6/+24
| | | | | | | | | | | | when obsolete files are used (except by obsolete files).
| * | * vc/vc-svn.el (vc-svn-parse-status): If there are multiple filesGlenn Morris2013-09-112-6/+13
| | | | | | | | | | | | | | | | | | in the status output, assume `filename' is the first. Fixes: debbugs:15322
| * | * lisp/vc/vc.el (vc-deduce-fileset): Doc fix.Glenn Morris2013-09-112-1/+4
| | |
| * | Update some function declarationsGlenn Morris2013-09-114-3/+7
| | | | | | | | | | | | | | | | | | * calc/calc-help.el (Info-goto-node): * progmodes/cperl-mode.el (Info-find-node): * vc/ediff.el (Info-goto-node): Update declarations.
| * | Silence some vc- compilation warningsGlenn Morris2013-09-113-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * vc/vc-bzr.el (vc-exec-after): Remove unused declaration. (vc-compilation-mode): Declare. (vc-bzr-pull): Require vc-dispatcher. * vc/vc-git.el (vc-compilation-mode): Declare. (vc-git-pull): Require vc-dispatcher.
| * | * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Declare.Glenn Morris2013-09-112-0/+3
| | |
| * | * lisp/progmodes/octave.el (help-button-action): Declare.Glenn Morris2013-09-112-0/+5
| | |
| * | Fix some minor shell.el oddness related to usage of error and messageGlenn Morris2013-09-112-4/+7
| | | | | | | | | | | | | | | | | | * lisp/shell.el (shell-directory-tracker): Output error as a message rather than just returning it as a string. (shell-process-pushd): Remove useless use of message.
| * | Use with-demoted-errors now that it can format any error messagesGlenn Morris2013-09-1114-138/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dframe.el (dframe-timer-fn): * files.el (dir-locals-read-from-file): * mpc.el (mpc--status-timer-run, mpc--status-idle-timer-run, mpc-format): * reveal.el (reveal-post-command): * saveplace.el (load-save-place-alist-from-file): * shell.el (shell-resync-dirs): * w32-common-fns.el (x-get-selection-value): * emacs-lisp/copyright.el (copyright-find-copyright): * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): * emulation/tpu-edt.el (tpu-copy-keyfile): * play/bubbles.el (bubbles--mark-neighbourhood): * progmodes/executable.el (executable-make-buffer-file-executable-if-script-p): * term/pc-win.el (x-get-selection-value): Use with-demoted-errors.
| * | Cleanup Eshell to rely less on dynamic scoping.Stefan Monnier2013-09-1213-140/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg, last-value, and ext-command here. Bind `args' closer to `body'. (temp-args, last-value, usage-msg, ext-command, args): Don't defvar. (eshell--args): Declare new dynamic var. (eshell-do-opt): Add argument `args'. Bind our own usage-msg, last-value, and ext-command. Pass `args' to `body'. (eshell-process-args): Bind eshell--args. (eshell-set-option): Use eshell--args. * lisp/eshell/eshell.el (eshell): Use derived-mode-p. * lisp/eshell/esh-var.el (eshell-parse-variable): Use backquote. (eshell-parse-variable-ref): Remove unused vars `end' and `err'. (eshell-glob-function): Declare. * lisp/eshell/esh-util.el: Require cl-lib. (eshell-read-hosts-file): Avoid add-to-list. * lisp/eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var `err'. * lisp/eshell/em-unix.el (compilation-scroll-output, locate-history-list): Declare. (eshell/diff): Remove unused var `err'. * lisp/eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg `killflag'. * lisp/eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'. * lisp/eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before first use. * lisp/eshell/em-glob.el (eshell-glob-matches, message-shown): Move declaration before first use. * lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes. * autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we rely on cl-return.
| * | * lisp/autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since weStefan Monnier2013-09-122-3/+8
| | | | | | | | | | | | rely on cl-return.
| * | * lisp/term/ns-win.el (global-map): Remove binding for ispell-next,Glenn Morris2013-09-112-1/+5
| | | | | | | | | | | | | | | | | | deleted 1999-05-29. Fixes: debbugs:15357
| * | CommentGlenn Morris2013-09-111-0/+1
| | |
| * | * lisp/play/landmark.el: Yet more typo fixes.Glenn Morris2013-09-111-1/+1
| | |
| * | * lisp/echistory.el (electric-command-history): Remove call to deleted func.Glenn Morris2013-09-112-1/+3
| | |
| * | * lisp/play/landmark.el (landmark-mode): Fix typos.Glenn Morris2013-09-112-2/+4
| | |
| * | * lisp/vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec.Glenn Morris2013-09-112-2/+7
| | | | | | | | | | | | Check cvs-sort-ignore-file is bound.
| * | * lisp/savehist.el: No need for cl when compiling on Emacs.Glenn Morris2013-09-112-1/+5
| | |
| * | * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Fix up initialization.Stefan Monnier2013-09-112-35/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | (eshell-self-insert-command, eshell-send-invisible): Remove unused argument. (eshell-handle-control-codes): Remove unused var `orig'. Avoid delete-backward-char. Fixes: debbugs:15338
| * | * lisp/files.el (set-auto-mode): Simplify a bit further.Stefan Monnier2013-09-112-5/+7
| | |
| * | Auto-commit of loaddefs files.Glenn Morris2013-09-111-1/+1
| | |
| * | Improve previous interpreter-mode-alist changeGlenn Morris2013-09-105-42/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts. (set-auto-mode): Don't regexp-quote elements. * lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'. * lisp/progmodes/cc-mode.el (interpreter-mode-alist): * lisp/progmodes/ruby-mode.el (interpreter-mode-alist): Revert previous change. * etc/NEWS: Update.
| * | Comment formattingGlenn Morris2013-09-101-9/+9
| | |
| * | Use define-derived-mode (and derived-mode-p).Stefan Monnier2013-09-1038-688/+443
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/play/snake.el (snake-mode): * lisp/play/mpuz.el (mpuz-mode): * lisp/play/landmark.el (lm-mode): * lisp/play/blackbox.el (blackbox-mode): * lisp/play/5x5.el (5x5-mode): * lisp/obsolete/options.el (Edit-options-mode): * lisp/net/quickurl.el (quickurl-list-mode): * lisp/net/newst-treeview.el (newsticker-treeview-mode): * lisp/mail/rmailsum.el (rmail-summary-mode): * lisp/mail/mspools.el (mspools-mode): * lisp/locate.el (locate-mode): * lisp/ibuffer.el (ibuffer-mode): * lisp/emulation/ws-mode.el (wordstar-mode): * lisp/emacs-lisp/debug.el (debugger-mode): * lisp/array.el (array-mode): * lisp/net/eudc.el (eudc-mode): Use define-derived-mode. * lisp/net/mairix.el (mairix-searches-mode-font-lock-keywords): Move initialization into declaration. (mairix-searches-mode): Use define-derived-mode. * lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode. (eudc-edit-hotlist): Use dolist. * lisp/man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table. (Man-mode): Use define-derived-mode. * lisp/info.el (Info-edit-mode-map): Rename from Info-edit-map. (Info-edit-mode): Use define-derived-mode. (Info-cease-edit): Use Info-mode. * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization into declaration. (eshell-mode): Use define-derived-mode. * lisp/chistory.el (command-history-mode-map): Rename from command-history-map. (command-history-mode): Use define-derived-mode. * lisp/calc/calc.el (calc-trail-mode-map): New var. (calc-trail-mode): Use define-derived-mode. (calc-trail-buffer): Set calc-main-buffer manually. * lisp/bookmark.el (bookmark-insert-annotation): New function. (bookmark-edit-annotation): Use it. (bookmark-edit-annotation-mode): Make it a proper major mode. (bookmark-send-edited-annotation): Use derived-mode-p. * lisp/arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit closer to its ideal place. Use \' to match EOS. * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode. (semantic-grammar-mode-syntax-table): Rename from semantic-grammar-syntax-table. (semantic-grammar-mode-map): Rename from semantic-grammar-map. * lisp/cedet/data-debug.el (data-debug-mode-map): Rename from data-debug-map. (data-debug-mode): Use define-derived-mode. * lisp/gnus/score-mode.el (gnus-score-mode-map): Move initialization into declaration. (gnus-score-mode): Use define-derived-mode. * lisp/gnus/gnus-srvr.el (gnus-browse-mode): Use define-derived-mode. * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Move initialization into declaration. (gnus-kill-file-mode): Use define-derived-mode. (gnus-kill-file-edit-file, gnus-kill-file-enter-kill, gnus-kill): Use derived-mode-p. * lisp/gnus/gnus-group.el (gnus-group-mode): Use define-derived-mode. (gnus-group-setup-buffer, gnus-group-name-at-point) (gnus-group-make-web-group, gnus-group-enter-directory) (gnus-group-suspend): Use derived-mode-p. * lisp/gnus/gnus-cus.el (gnus-custom-mode): Use define-derived-mode. * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode): Use define-derived-mode. * lisp/gnus/gnus-art.el (gnus-article-mode): Use define-derived-mode. (gnus-article-setup-buffer, gnus-article-prepare) (gnus-article-prepare-display, gnus-sticky-article) (gnus-kill-sticky-article-buffer, gnus-kill-sticky-article-buffers) (gnus-bind-safe-url-regexp, gnus-article-check-buffer) (gnus-article-read-summary-keys): Use derived-mode-p.
| * | * lisp/profiler.el (profiler-calltree-find): Use function-equal.Stefan Monnier2013-09-102-2/+5
| | |
| * | Tweak previous changeGlenn Morris2013-09-101-1/+1
| | |
| * | Treat interpreter-mode-alist as alist of regexps, not literalsGlenn Morris2013-09-107-75/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cf http://lists.gnu.org/archive/html/emacs-devel/2005-08/msg00472.html * lisp/files.el (interpreter-mode-alist): Convert to regexps. (set-auto-mode): Adapt for this. * lisp/progmodes/cperl-mode.el (cperl-clobber-mode-lists): Comment out unused variable. * lisp/progmodes/cc-mode.el (interpreter-mode-alist): * lisp/progmodes/python.el (interpreter-mode-alist): * lisp/progmodes/ruby-mode.el (interpreter-mode-alist): Convert to regexps. * lisp/progmodes/sh-script.el (sh-set-shell): No longer use interpreter-mode-alist to get list of shells. * etc/NEWS: Mention this. Fixes: debbugs:15306
| * | * lisp/progmodes/cc-mode.el (awk-mode): Remove duplicate autoload.Glenn Morris2013-09-102-4/+4
| | | | | | | | | | | | Autoload of define-derived-mode works just fine.
| * | * lisp/simple.el: Use set-temporary-overlay-map for universal-argument.Stefan Monnier2013-09-102-76/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (universal-argument-map): Don't use default-bindings. Bind switch-frame explicitly. Replace universal-argument-minus with a conditional binding. (universal-argument-num-events, saved-overriding-map): Remove. (restore-overriding-map): Remove. (universal-argument--mode): Rename from save&set-overriding-map, and rewrite. (universal-argument, universal-argument-more, negative-argument) (digit-argument): Adjust accordingly. (universal-argument-minus): Remove. (universal-argument-other-key): Remove.
| * | * lisp/subr.el (with-demoted-errors): Add `format' argument.Stefan Monnier2013-09-102-26/+36
| | | | | | | | | | | | * src/eval.c (Feval): Document the new use of `lexical'.
| * | Auto-commit of loaddefs files.Glenn Morris2013-09-101-1/+1
| | |
| * | * net/tramp.el (tramp-cleanup): Remove. Functionality added toMichael Albinus2013-09-106-88/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `tramp-cleanup-connection'. * net/tramp-cmds.el (tramp-cleanup-connection): Add optional parameters KEEP-DEBUG and KEEP-PASSWORD. * net/tramp.el (tramp-file-name-handler): * net/tramp-adb.el (tramp-adb-maybe-open-connection): * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell) (tramp-maybe-open-connection): * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use `tramp-cleanup-connection'. * net/tramp-sh.el (tramp-maybe-open-connection): Catch 'uname-changed inside the progress reporter.
| * | * lisp/simple.el (read-minibuffer): Unbreak it.Glenn Morris2013-09-102-1/+3
| | | | | | | | | | | | Fixes: debbugs:15318
| * | * lisp/dired-x.el (dired-mark-sexp): Unbreak for systems where lsGlenn Morris2013-09-092-0/+8
| | | | | | | | | | | | | | | | | | | | | returns "alternate access method" in mode (eg "-rw-r--r--."). It's still pretty broken though, eg http://debbugs.gnu.org/13575
| * | Spelling fixes and tidy up a comment.Paul Eggert2013-09-091-1/+1
| | |
| * | * lisp/saveplace.el (load-save-place-alist-from-file): Demote errors.Glenn Morris2013-09-082-2/+12
| | | | | | | | | | | | Fixes: debbugs:15305
| * | Improve compatibility with older Emacsen, and XEmacs.Michael Albinus2013-09-0810-90/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * net/tramp.el (tramp-find-method, tramp-find-user): Call `propertize' only if it is bound. It isn't for XEmacs. (with-tramp-progress-reporter): Do not let-bind `result'. This yields to scoping errors in XEmacs. (tramp-handle-make-auto-save-file-name): New function, moved from tramp-sh.el. * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler for `make-auto-save-file-name'. (tramp-adb--gnu-switches-to-ash): Use `tramp-compat-replace-regexp-in-string'. * net/tramp-cache.el (tramp-cache-print): Call `substring-no-properties' only if it is bound. It isn't for XEmacs. * net/tramp-cmds.el (tramp-bug): Call `propertize' only if it is bound. It isn't for XEmacs. * net/tramp-compat.el (tramp-compat-copy-file): Catch `wrong-number-of-arguments' error. (tramp-compat-replace-regexp-in-string): New defun. * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler for `make-auto-save-file-name'. (tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for `copy-file'. (tramp-gvfs-file-gvfs-monitor-file-process-filter) (tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'. (tramp-synce-list-devices): Use `push' instead of `pushnew'. * net/tramp-gw.el (tramp-gw-open-network-stream): Use `tramp-compat-replace-regexp-in-string'. * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Call `tramp-handle-make-auto-save-file-name'. (tramp-sh-handle-make-auto-save-file-name): Move to tramp.el. (tramp-sh-file-gvfs-monitor-dir-process-filter) (tramp-sh-file-inotifywait-process-filter): Use `tramp-compat-replace-regexp-in-string'. (tramp-compute-multi-hops): Use `push' instead of `pushnew'. * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler for `make-auto-save-file-name'. (tramp-smb-handle-copy-directory): Call `tramp-compat-replace-regexp-in-string'. (tramp-smb-get-file-entries): Use `push' instead of `pushnew'. (tramp-smb-handle-copy-file): Improve error message. (tramp-smb-handle-rename-file): Rename directly only in case `newname' does not exist yet. This is a restriction of smbclient. (tramp-smb-maybe-open-connection): Rerun the function only when `auth-sources' is non-nil.
* | | composite.el (compose-gstring-for-graphic): Handle enclosing mark.Kenichi Handa2013-09-122-1/+44
|/ /
* | merge trunkKenichi Handa2013-09-0818-347/+453
|\ \
| * | Correctly fontify Java class constructors.Alan Mackenzie2013-09-073-26/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | * progmodes/cc-langs.el (c-type-decl-suffix-key): Now matches ")" in Java Mode. (c-recognize-typeless-decls): Set the Java value to t. * progmodes/cc-engine.el (c-forward-decl-or-cast-1): While handling a "(", add a check for, effectively, Java, and handle a "typeless" declaration there.