summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Expand xref help-echo stringDmitry Gutov2015-01-202-1/+2
| | | | * lisp/progmodes/xref.el (xref--insert-xrefs): Expand help-echo string.
* Use etags-goto-tag-location in etags xref backendDmitry Gutov2015-01-203-4/+33
| | | | | | | | | * progmodes/etags.el (xref-etags-location): New class. (xref-make-etags-location): New function. (etags--xref-find-definitions): Use it. (xref-location-marker): New method implementation. * lisp/progmodes/xref.el: Mention that xref-location is an EIEIO class.
* Fixup ChangeLogDmitry Gutov2015-01-191-1/+1
|
* * lisp/ido.el: Update Customization instructionsDmitry Gutov2015-01-192-6/+10
|
* Set up ido keymaps only onceJonas Bernoulli2015-01-192-111/+122
| | | | | | | | | | | | | * lisp/ido (ido-common-completion-map) (ido-file-dir-completion-map) (ido-file-completion-map, ido-buffer-completion-map): Set up key bindings when each variable is defined. (ido-completion-map): Move definition. (ido-init-completion-maps): Noop. (ido-common-initialization): Don't call it. (ido-setup-completion-map): Improve doc-string, cleanup. Fixes: debbugs:17000
* Fix the value default-directory gets in custom-make-dependencies.Ivan Shmakov2015-01-192-1/+7
| | | | | * lisp/cus-dep.el (custom-make-dependencies): Ensure that default-directory is interpreted as a directory (see bug#19140.)
* xref: Use other-window-scroll-buffer and user-errorDmitry Gutov2015-01-192-1/+8
| | | | | | * lisp/progmodes/xref.el (xref--display-position): Set `other-window-scroll-buffer'. (xref-goto-xref): Use `user-error'.
* Use quit-window to hide buffers temporarily displayed by xrefDmitry Gutov2015-01-192-16/+48
| | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--display-history): New variable. (xref--window-configuration): Remove. (xref--save-to-history): New function. (xref--display-position): Use it. Add new argument. (xref--restore-window-configuration): Remove. (xref--show-location, xref-show-location-at-point): Update accordingly. (xref--xref-buffer-mode): Don't use `pre-command-hook'. (xref--quit): New command. (xref-goto-xref): Use it. (xref--xref-buffer-mode-map): Bind `q' to it.
* Perform xref jump even inside indentation or at eolDmitry Gutov2015-01-192-1/+7
| | | | | * lisp/progmodes/xref.el (xref-goto-xref): Perform xref jump even inside indentation or at eol.
* * lisp/emacs-lisp/eieio-core.el: Add `subclass' specializer for cl-generic.Stefan Monnier2015-01-182-2/+32
| | | | | | | | | (eieio--generic-subclass-tagcode, eieio--generic-subclass-tag-types): New functions. (cl-generic-tagcode-function, cl-generic-tag-types-function): Use them. * test/automated/eieio-test-methodinvoke.el (eieio-test-cl-generic-1): Test `subclass' specializer.
* EIEIO&cl-generic: Add obsolescence warnings and fix corner caseStefan Monnier2015-01-184-13/+47
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Correctly handle introduction of a new dispatch argument. (cl--generic-cache-miss): Handle dispatch on an argument which was not considered as dispatchable for this method. (cl-defmethod): Warn when adding a method to an obsolete generic function. (cl--generic-lambda): Make sure it works if cl-lib is not yet loaded. * lisp/emacs-lisp/eieio-generic.el (eieio--defgeneric-init-form): Use autoloadp. * lisp/emacs-lisp/eieio.el (defclass): Add obsolescence warning for the `newname' argument. * test/automated/cl-generic-tests.el (cl-generic-test-10-weird): New test. Rename other tests to preserve ordering.
* (package--append-to-alist): Updated docstring due to new name.Artur Malabarba2015-01-182-3/+6
|
* package.el (package--append-to-alist): Renamed from `add-to-alist'Artur Malabarba2015-01-182-3/+8
|
* Fix seq-subseq and cl-subseq for bad bounding indicesLeo Liu2015-01-183-25/+20
| | | | | | | | | | | | Fixes: debbugs:19434 debbugs:19519 * lisp/emacs-lisp/cl-extra.el (cl-subseq): Use seq-subseq and fix multiple evaluation. * lisp/emacs-lisp/seq.el (seq-subseq): Throw bad bounding indices error. * test/automated/seq-tests.el (test-seq-subseq): Add more tests.
* * lisp/emacs-lisp/cl-generic.el: Add support for cl-next-method-p.Stefan Monnier2015-01-173-16/+84
| | | | | | | | | | | (cl-defmethod): Add edebug spec. (cl--generic-build-combined-method): Fix call to cl-no-applicable-method. (cl--generic-nnm-sample, cl--generic-cnm-sample): New constant. (cl--generic-isnot-nnm-p): New function. (cl--generic-lambda): Use it to add support for cl-next-method-p. (cl-no-next-method, cl-no-applicable-method): Simplify arg list. (cl-next-method-p): New function.
* Fix mistake in rebase/merge conflict resolution.Ulrich Müller2015-01-181-3/+0
| | | | | | Remove lines from lisp/vc/vc-bzr.el again that were accidentally restored in commit 2015-01-17T09:56:45!ulm@gentoo.org. (Previously removed in commit 2014-12-01T13:24:27Z!esr@thyrsus.com.)
* Update docstring of emacs-repository-get-version.Ulrich Müller2015-01-172-4/+6
| | | | * version.el (emacs-repository-get-version): Update docstring.
* Unloading support for misearch.Ivan Shmakov2015-01-172-0/+22
| | | | | | | * lisp/misearch.el (multi-isearch-unload-function): New function. (misearch-unload-function): New alias. Fixes: debbugs:19566
* Do not clear the session when trying to read a non-existent desktop file.Ivan Shmakov2015-01-172-1/+3
| | | | | | | * lisp/desktop.el (desktop-read): Do not call desktop-clear when no desktop file is found. Fixes: debbugs:18371
* Fix: inhibit point motion hooks when encoding an enriched document.Ivan Shmakov2015-01-172-1/+6
| | | | | | | * lisp/textmodes/enriched.el (enriched-encode): Use inhibit-point-motion-hooks in addition to inhibit-read-only. Fixes: debbugs:18246
* Fix dir-locals handling for non-file buffers.Ivan Shmakov2015-01-172-1/+7
| | | | | | | | * lisp/files.el (dir-locals-collect-variables): Use default-directory in place of the file name while working on non-file buffers, just like hack-dir-local-variables already does. Fixes: debbugs:19140
* Avoid mapcar in two cases in files.el.Ivan Shmakov2015-01-172-4/+9
| | | | | | | * lisp/files.el (find-file-other-window, find-file-other-frame): Use mapc instead of mapcar. Fixes: debbugs:18175
* Ignore print-length and print-level while formatting url-cookie data.Ivan Shmakov2015-01-172-3/+9
| | | | | | | * lisp/url/url-cookie.el (url-cookie-write-file): Let-bind print-length and print-level to nil to avoid writing a garbled list. Fixes: debbugs:16805
* * lisp/emacs-lisp/eieio-core.el (eieio--class-constructor): Rename.Stefan Monnier2015-01-175-9/+10
| | | | | | | Fixes: debbugs:19620 (eieio--class-constructor): Rename from class-constructor, and make it an alias for `identity'. Update all callers.
* * lisp/emacs-lisp/eieio.el: Improve `constructor' compatibility.Stefan Monnier2015-01-173-13/+21
| | | | | | | | | | Fixes: debbugs:19620 (eieio-constructor): Handle obsolete object name argument here... (defclass): ...instead of in the constructor here. * test/automated/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor): New test.
* Type fix for defcustom.Jorgen Schaefer2015-01-172-1/+7
| | | | | * emacs-lisp/package.el (package-archive-priorities): Specify correct type.
* Discard the Bazaar case in repository version detectionUlrich Müller2015-01-173-74/+28
| | | | | | | | | | * version.el (emacs-bzr-version-dirstate, emacs-bzr-version-bzr): Remove. (emacs-repository-get-version): Discard the Bazaar case. * vc/vc-bzr.el (vc-bzr-version-dirstate): Rename from emacs-bzr-version-dirstate and move from version.el to here. (vc-bzr-working-revision): Use it.
* Don't enforce :protection in EIEIO objects any moreStefan Monnier2015-01-164-134/+86
| | | | | | | | | | | | | | | | | | | | | | | * doc/misc/eieio.texi (Slot Options): Document :protection as unsupported. * lisp/emacs-lisp/eieio-core.el (eieio--scoped-class-stack): Remove var. (eieio--scoped-class): Remove function. (eieio--with-scoped-class): Remove macro. Replace uses with `progn'. (eieio--slot-name-index): Don't check the :protection anymore. (eieio-initializing-object): Remove var. (eieio-set-defaults): Don't let-bind eieio-initializing-object. * lisp/emacs-lisp/eieio-generic.el (call-next-method): Don't bother checking eieio--scoped-class any more. * test/automated/eieio-test-methodinvoke.el (eieio-test-method-store): Use an explicit arg instead of eieio--scoped-class. Update all callers. * test/automated/eieio-tests.el (eieio-test-25-slot-tests) (eieio-test-26-default-inheritance, eieio-test-28-slot-protection) (eieio-test-30-slot-attribute-override) (eieio-test-31-slot-attribute-override-class-allocation): Don't check that we enforce :protection since we don't any more.
* Improve handling of doc-strings and describe-function for cl-genericStefan Monnier2015-01-167-156/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/help-fns.el (find-lisp-object-file-name): Accept any `type' as long as it's a symbol. (help-fns-short-filename): New function. (describe-function-1): Use it. Use autoload-do-load. * lisp/help-mode.el (help-function-def): Add optional arg `type'. * lisp/emacs-lisp/cl-generic.el (cl-generic-ensure-function): It's OK to override an autoload. (cl-generic-current-method-specializers): Replace dyn-bind variable with a lexically-scoped macro. (cl--generic-lambda): Update accordingly. (cl-generic-define-method): Record manually in the load-history with type `cl-defmethod'. (cl--generic-get-dispatcher): Minor optimization. (cl--generic-search-method): New function. (find-function-regexp-alist): Add entry for `cl-defmethod' type. (cl--generic-search-method): Add hyperlinks for methods. Merge the specializers and the function's arguments. * lisp/emacs-lisp/eieio-core.el (eieio--defalias): Move to eieio-generic.el. (eieio-defclass-autoload): Don't record the superclasses any more. (eieio-defclass-internal): Reuse the old class object if it was just an autoload stub. (eieio--class-precedence-list): Load the class if it's autoloaded. * lisp/emacs-lisp/eieio-generic.el (eieio--defalias): Move from eieio-core. (eieio--defgeneric-init-form): Don't throw away a previous docstring. (eieio--method-optimize-primary): Don't mess with the docstring. (defgeneric): Keep the `args' in the docstring. (defmethod): Don't use the method's docstring for the generic function's docstring. * lisp/emacs-lisp/find-func.el: Use lexical-binding. (find-function-regexp): Don't rule out `defgeneric'. (find-function-regexp-alist): Document new possibility of including a function instead of a regexp. (find-function-search-for-symbol): Implement that new possibility. (find-function-library): Don't assume that `function' is a symbol. (find-function-do-it): Remove unused var `orig-buf'. * test/automated/cl-generic-tests.el (cl-generic-test-8-after/before): Rename from cl-generic-test-7-after/before. (cl--generic-test-advice): New function. (cl-generic-test-9-advice): New test. * test/automated/eieio-test-methodinvoke.el (eieio-test-cl-generic-1): Reset eieio-test--1.
* emacs-lisp/package.el and package-x.el: References to package-desc-kindArtur Malabarba2015-01-163-0/+13
|
* (package-install-file): Install packages from directory.Artur Malabarba2015-01-162-2/+7
|
* (package-install-from-buffer): Install packages from dired buffer.Artur Malabarba2015-01-162-5/+35
|
* * emacs-lisp/package.el (package-dir-info): New function.Artur Malabarba2015-01-162-0/+20
| | | | | Find package information for a directory. The return result is a `package-desc'.
* * emacs-lisp/package.el (package--read-pkg-desc): New function.Artur Malabarba2015-01-162-10/+22
| | | | | Read a `define-package' form in current buffer. Return the pkg-desc, with desc-kind set to KIND.
* * lisp/emacs-lisp/cl-macs.el: Fix last change.Stefan Monnier2015-01-162-15/+26
| | | | | | (cl--labels-magic): New constant. (cl--labels-convert): Use it to ask the macro what is its replacement in the #'f case.
* * lisp/emacs-lisp/cl-generic.el (cl--generic-build-combined-method):Stefan Monnier2015-01-162-3/+7
| | | | Return the value of the primary rather than the after method.
* # ChangeLog fixesGlenn Morris2015-01-161-8/+3
|
* Package archives now have priorities.Jorgen Schaefer2015-01-162-26/+81
| | | | | | | | | | | | | * lisp/package.el: Provide repository priorities. (package-archive-priorities): New variable. (package--add-to-alist): New function. (package--add-to-archive-contents): Use it. (package-menu--find-upgrades): Use it as well. Small clean up to make the use of the package name here explicit. (package-archive-priority): New function. (package-desc-priority-version): New function. Fixes: debbugs:19296
* Make `ring-bell-function' customizable.Daniel Colascione2015-01-152-0/+10
| | | | * lisp/cus-start.el (all): Make `ring-bell-function' customizable.
* vc-svn-dir-status-files: Parse output with the remote formatDmitry Gutov2015-01-162-1/+7
| | | | | | | Fixes: debbugs:19429 * lisp/vc/vc-svn.el (vc-svn-dir-status-files): Pass t as vc-svn-after-dir-status's second argument.
* Parse pcomplete arguments regardless of pcomplete-cycle-completionsSamer Masterson2015-01-162-2/+6
| | | | | | | * pcomplete.el (pcomplete-parse-arguments): Parse arguments regardless of pcomplete-cycle-completions's value. Fixes: debbugs:18950
* * lisp/dom.el (dom-strings): New function.Lars Magne Ingebrigtsen2015-01-162-0/+10
|
* Minor directory-files-recursively touch-upLars Magne Ingebrigtsen2015-01-162-5/+11
| | | | | * files.el (directory-files-recursively): Don't use the word "path" for a file name.
* Handle the `neg' operator in some calc-units functions.Wolfgang Jenkner2015-01-152-4/+18
| | | | | | | | | | * lisp/calc/calc-units.el (math-units-in-expr-p) (math-single-units-in-expr-p, math-find-compatible-unit-rec) (math-extract-units): Handle the `neg' operator. (Bug#19582) * test/automated/calc-tests.el (calc-tests-equal, calc-tests-simple): New functions. (test-calc-remove-units, test-calc-extract-units) (test-calc-convert-units): New tests.
* lisp/gnus/nntp.el (nntp-send-authinfo): Error out if the password is wrongLars Magne Ingebrigtsen2015-01-152-8/+15
|
* # Set copyright to FSF, standardize license noticeGlenn Morris2015-01-141-4/+6
|
* * lisp/emacs-lisp/eieio-core.el: Provide support for cl-generic.Stefan Monnier2015-01-153-5/+40
| | | | | | | | | | | | | | | (eieio--generic-tagcode): New function. (cl-generic-tagcode-function): Use it. (eieio--generic-tag-types): New function. (cl-generic-tag-types-function): Use it. (eieio-object-p): Tighten up the test. * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Fix paren typo. * test/automated/eieio-test-methodinvoke.el (eieio-test-method-store): Add keysym arg instead of relying on internal var eieio--generic-call-key. Update all callers. (eieio-test-cl-generic-1): New tests.
* * lisp/emacs-lisp/cl-generic.el: New file.Stefan Monnier2015-01-143-17/+650
| | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-flet): Allow (FUN EXP) forms. (cl-load-time-value, cl-labels): Use closures rather than backquoted lambdas. (cl-macrolet): Use `eval' to create the function value, and support CL style arguments in for the defined macros. * test/automated/cl-generic-tests.el: New file.
* * lisp/net/eww.el: Use lexical-binding.Stefan Monnier2015-01-142-34/+35
| | | | | | (eww-links-at-point): Remove unused arg. (eww-mode-map): Inherit from special-mode-map. (eww-mode): Derive from special-mode. Don't use `setq' on a hook.
* Allow compilation during loading of Modes derived from a CC Mode mode.Alan Mackenzie2015-01-134-38/+108
| | | | | | | | | | | | | | | | | | | | | | | Fixes debbugs#19206. cc-bytecomp.el (cc-bytecomp-compiling-or-loading): new function which walks the stack to discover whether we're compiling or loading. (cc-bytecomp-is-compiling): Reformulate, and move towards beginning. (cc-bytecomp-is-loading): New defsubst. (cc-bytecomp-setup-environment, cc-bytecomp-restore-environment): Use the above defsubsts. (cc-require-when-compile, cc-bytecomp-defvar) (cc-bytecomp-defun): Simplify conditionals. cc-defs.el (cc-bytecomp-compiling-or-loading): "Borrow" this function from cc-bytecomp.el. (c-get-current-file): Reformulate using the above. (c-lang-defconst): Prevent duplicate entries of file names in a symbol's 'source property. (c-lang-const): Use cc-bytecomp-is-compiling. cc-langs.el (c-make-init-lang-vars-fun): Use cc-bytecomp-is-compiling.