summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* (completion-lisp-mode-hook): Use completion-separator-charsStefan Monnier2015-04-131-6/+3
| | | | | * lisp/completion.el (completion-lisp-mode-hook): Use completion-separator-chars rather than local key binding.
* python.el: Keep symmetry on sexp navigation with parensFabián Ezequiel Gallina2015-04-121-29/+55
| | | | | | | | | | | | | Fixes: debbugs:19954 * lisp/progmodes/python.el (python-nav--forward-sexp): Add argument skip-parens-p. (python-nav-forward-sexp, python-nav-backward-sexp) (python-nav-forward-sexp-safe) (python-nav-backward-sexp-safe): Use it. * test/automated/python-tests.el (python-nav-forward-sexp-1): Fix test.
* Don't use `setq-local' in Gnus codeJoão Távora2015-04-121-2/+2
| | | | | | | This might break upstream builds with older Emacsen * lisp/gnus/message.el (message-mode): Use `set' and `make-local-variable' instead of `setq-local'.
* * lisp/emacs-lisp/package.el: Improve transaction y-or-n promptArtur Malabarba2015-04-121-8/+8
| | | | | (package-menu--prompt-transaction-p): Prompt for "Delete" first, "Upgrade" last, and use capitalized instead of all-caps.
* * lisp/emacs-lisp/package.el: Completely silence async operationsArtur Malabarba2015-04-121-24/+34
| | | | | | | | | | | | | | (package--make-autoloads-and-stuff): Silence autoloads. (package--save-selected-packages): New function, silences `customize-save-variable'. (package--user-selected-p, package-install-from-buffer) (package-delete, package-install): Use it. (package-install-from-archive) (package-menu--perform-transaction): Silence. (package-menu-execute): Feedback when operation starts.
* Use delay-mode-hooks when visiting the init-fileArtur Malabarba2015-04-122-3/+7
| | | | | | | * lisp/emacs-lisp/package.el (package--ensure-init-file): delay-mode-hooks * lisp/cus-edit.el (custom-save-all): delay-mode-hooks
* * lisp/files.el: Only message when saving if save-silently is nilArtur Malabarba2015-04-121-17/+36
| | | | | | | | | (save-silently): New variable. (files--message): New function. (find-file-noselect, save-buffer, basic-save-buffer) (basic-save-buffer-2, save-some-buffers, not-modified) (append-to-file): Use them.
* Support debug declarations in pcase macrosJohan Bockgård2015-04-123-11/+29
| | | | | | | | | | | * lisp/emacs-lisp/pcase.el (pcase-MACRO): New edebug spec. (pcase-UPAT): Use it. Remove "`". (pcase--edebug-match-macro): New function. (pcase-defmacro): Support debug declarations. * lisp/emacs-lisp/cl-macs.el (cl-struct) <pcase-defmacro>: * lisp/emacs-lisp/eieio.el (eieio) <pcase-defmacro>: * lisp/emacs-lisp/pcase.el (\`): <pcase-defmacro>: Add debug declaration.
* pcase.el: Edebug support for `app' and vector patternsJohan Bockgård2015-04-121-5/+10
| | | | | | * lisp/emacs-lisp/pcase.el (pcase-FUN): New edebug spec. (pcase-UPAT): Use it. Support `app' patterns. (pcase-QPAT): Support vector patterns.
* edebug.el: Disambiguate vector specificationsJohan Bockgård2015-04-121-9/+11
| | | | | * lisp/emacs-lisp/edebug.el (edebug-match-list): Always treat `(vector ...)' as a vector specification, not as a sublist.
* (gnus-summary-refer-thread): Don't clobber unread articlesJohan Bockgård2015-04-121-8/+10
| | | | | | | | This fixes a bug where `A T' causes "random" articles to become marked as read. * lisp/gnus/gnus-sum.el (gnus-summary-refer-thread): Make sure gnus-newsgroup-unreads remains sorted.
* mouse-sel.el: Fix mouse-sel-get-selection-functionJohan Bockgård2015-04-121-1/+1
| | | | | | * lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function): Use gui--last-selected-text-primary instead of no longer existing gui-last-selected-text.
* * lisp/rect.el (delete-whitespace-rectangle-line): Don't cross EOL.Johan Bockgård2015-04-121-1/+2
|
* * lisp/net/nsm.el (nsm-query-user): Use cursor-in-echo-area.Johan Bockgård2015-04-121-1/+2
|
* * lisp/emacs-lisp/package.el (list-packages): Avoid redundant generateArtur Malabarba2015-04-121-1/+3
|
* * lisp/emacs-lisp/package.el (list-packages): Call refresh in right bufferArtur Malabarba2015-04-121-3/+4
|
* * lisp/emacs-lisp/bytecomp.el: Silence noninteractive compilationsArtur Malabarba2015-04-121-19/+45
| | | | | | | | | | (byte-compile--interactive): New var. (byte-compile--message): New function. (byte-compile-log-1, byte-force-recompile) (byte-recompile-directory, byte-recompile-file) (byte-compile-file, compile-defun) (byte-compile-file-form-defmumble, byte-compile) (byte-compile-file-form-defalias, display-call-tree): Use it.
* * lisp/files.el: Don't message when nothing happenedArtur Malabarba2015-04-121-2/+5
| | | | | (save-some-buffers, basic-save-buffer): Before messaging to say "nothing was saved" check if (called-interactively-p 'any).
* Summary: Improve sexp-based movement in message-modeJoão Távora2015-04-121-1/+31
| | | | | | | | | | | | Works by giving citations and smileys a different syntax. This helps modes like `show-paren-mode', `electric-pair-mode', and C-M-* sexp-based movement. * lisp/gnus/message.el (message--syntax-propertize): New function. (message-mode): Set syntax-related vars. (message-smileys): New variable. * test/automated/message-mode-tests.el: New file
* Speed up byte-compilation and autoload generation by avoiding mode-hooksArtur Malabarba2015-04-122-4/+5
| | | | | | | | | | | | This prevents emacs-lisp-mode-hook from being run everytime an autoload file is generated, which can account for a fraction of package installation time depending on the hooks the user has configured. * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use delay-mode-hooks. * lisp/emacs-lisp/autoload.el (autoload-find-file) (autoload-find-generated-file): Use delay-mode-hooks.
* * lisp/emacs-lisp/package.el: Improve `package-menu-refresh'Artur Malabarba2015-04-121-7/+5
| | | | | (package-menu-refresh): Respect async and do new package checking. (list-packages): Use `package-menu-refresh' instead of repeating code.
* * lisp/emacs-lisp/package.el: Improve package-menu-quick-helpArtur Malabarba2015-04-121-2/+23
| | | | | | (package--quick-help-keys): New variable. (package--prettify-quick-help-key): New function. (package-menu-quick-help): Use it.
* * lisp/emacs-lisp/package.el: Fix initially wrong compat tableArtur Malabarba2015-04-121-0/+2
| | | | (package--build-compatibility-table): require finder
* * lisp/emacs-lisp/package.el: Silence async operationsArtur Malabarba2015-04-121-12/+24
| | | | | | | | | (package--silence): New variable. (package--message): New function. (package-import-keyring, package-refresh-contents) (package-compute-transaction, package-install, package-delete) (package-menu--perform-transaction, package-menu-execute): Use it.
* Utilize `make-process' in epg.elDaiki Ueno2015-04-121-22/+26
| | | | | | | | | * lisp/epg.el (epg-error-output): Abolish. (epg-context): New slot `error-buffer'. (epg--start): Use `make-process' and `make-pipe-process'. (epg--process-filter): Remove code separating stderr from stdout. (epg-wait-for-completion): Simplify `error-output' handling. (epg-reset): Dispose error buffer.
* Support GnuTLS v3.4 and later on MS-WindowsChris Zheng2015-04-111-1/+5
| | | | | | | | | | * src/gnutls.c (syms_of_gnutls) <libgnutls-version>: New DEFSYM. * lisp/term/w32-win.el (dynamic-library-alist): Determine which GnuTLS DLL to load according to value of libgnutls-version. Fixes: bug#20294 Copyright-paperwork-exempt: yes
* Extract ChangeLog entries when committing a directoryDmitry Gutov2015-04-112-18/+30
| | | | | | | | | | * lisp/vc/vc-dispatcher.el (vc-log-edit): Update FIXME comment. * lisp/vc/log-edit.el (log-edit-changelog-insert-entries): Add a FIXME comment. (log-edit-changelog-entries): Extract from `log-edit-changelog-entries', handle FILE being a directory (http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00555.html).
* Add facility to collect stderr of async subprocessDaiki Ueno2015-04-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32.h (register_aux_fd): New function declaration. * src/w32.c (register_aux_fd): New function. * src/process.h (struct Lisp_Process): New member stderrproc. * src/process.c (PIPECONN_P): New macro. (PIPECONN1_P): New macro. (Fdelete_process, Fprocess_status, Fset_process_buffer) (Fset_process_filter, Fset_process_sentinel, Fstop_process) (Fcontinue_process): Handle pipe process specially. (create_process): Respect p->stderrproc. (Fmake_pipe_process): New function. (Fmake_process): Add new keyword argument :stderr. (wait_reading_process_output): Specially handle a pipe process when it gets an EOF. (syms_of_process): Register Qpipe and Smake_pipe_process. * doc/lispref/processes.texi (Asynchronous Processes): Document `make-pipe-process' and `:stderr' keyword of `make-process'. * lisp/subr.el (start-process): Suggest to use `make-process' handle standard error separately. * test/automated/process-tests.el (process-test-stderr-buffer) (process-test-stderr-filter): New tests. * etc/NEWS: Mention new process type `pipe' and its usage with the `:stderr' keyword of `make-process'.
* * abbrev.el (define-abbrev-table): Refine last change.Stefan Monnier2015-04-101-3/+6
|
* cl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r"Stefan Monnier2015-04-1018-161/+143
| | | | | | * lisp/emacs-lisp/cl-lib.el: Partial revert of "2015-04-05 Rationalize use of c[ad]+r", so as to keep the "cl-" prefix on all cl-lib definitions.
* * vhdl-mode.el (vhdl-prepare-search-2): Use inhibit-point-motion-hooksStefan Monnier2015-04-101-23/+4
|
* * lisp/cedet/semantic: Remove some dead codeStefan Monnier2015-04-105-38/+7
| | | | | | | | | | | | | * lisp/cedet/semantic/util-modes.el (semantic-stickyfunc-header-line-format): Emacs<22 is not supported any more. * lisp/cedet/semantic/fw.el (semantic-buffer-local-value): Emacs<21 is not supported any more. (semantic-safe): Use `declare'. * lisp/cedet/semantic/decorate.el (semantic-set-tag-intangible) (semantic-tag-intangible-p): Remove unused functions. * lisp/cedet/semantic/complete.el (semantic-displayor-window-edges): Remove unused function.
* * lisp/gnus/gnus-art.el (gnus-hidden-properties): Simplify.Stefan Monnier2015-04-101-21/+9
| | | | | | | (gnus-article-hide-text, gnus-article-unhide-text) (gnus-article-unhide-text-type): Remove special handling of `intangible' since that property is not used any more. (gnus-article-treat-body-boundary): Use gnus-hidden-properties.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsJay Belanger2015-04-091-5/+14
|\
| * Use the VC root in `log-edit-listfun'Dmitry Gutov2015-04-101-5/+14
| | | | | | | | | | * lisp/vc/vc-dispatcher.el (vc-log-edit): Use the VC root in `log-edit-listfun'.
* | Fix description of Unix time, mention new function.Jay Belanger2015-04-091-2/+2
|/ | | | | | | * lisp/calc/calc-forms.el (calcFunc-unixtime): Fix adjustment for Unix time. * doc/misc/calc.texi (Date Forms): Fix description of Unix time. (Basic Operations on Units): Mention `calc-convert-exact-units'.
* * lisp/emacs-lisp/package.el: Use mode-line-process for notificationArtur Malabarba2015-04-101-4/+1
|
* (log-edit-insert-changelog-entries): Don't add newline after the last entryDmitry Gutov2015-04-101-0/+3
| | | | | * lisp/vc/log-edit.el (log-edit-insert-changelog-entries): Don't add newline after the last entry.
* css-mode.el: Add "not" pseudo-classSimen Heggestøyl2015-04-091-1/+1
| | | | | | | Fixes: debbugs:20267 * textmodes/css-mode.el (css-pseudo-class-ids): Add "not" to list of CSS pseudo-classes.
* * lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.Boruch Baum2015-04-091-1/+2
| | | | Fixes: debbugs:20212
* Stop messing with the EMACS env varStefan Monnier2015-04-094-13/+1
| | | | | | | | | | Fixes: debbugs:20202 * lisp/net/tramp-sh.el (tramp-remote-process-environment): * lisp/comint.el (comint-exec-1): * lisp/term.el (term-exec-1): Don't set EMACS envvar. * lisp/progmodes/compile.el (compilation-start): Same and bring INSIDE_EMACS's format in line with other users.
* css-mode.el (css-smie-rules): Fix indentation after complex selectorsStefan Monnier2015-04-091-0/+4
| | | | | | | Fixes: debbugs:20282 * lisp/textmodes/css-mode.el (css-smie-rules): Don't get confused by inner structure of selectors.
* python.el: Indent docstring lines to base-indentFabián Ezequiel Gallina2015-04-091-3/+12
| | | | | | | | | | | | | | | Fixes: debbugs:19595 Thanks to immerrr <immerrr@gmail.com> for reporting and providing an initial patch. * lisp/progmodes/python.el (python-indent-context): Add :inside-docstring context. (python-indent--calculate-indentation): Handle :inside-docstring. (python-indent-region): Re-indent docstrings. * test/automated/python-tests.el (python-indent-region-5) (python-indent-inside-string-2): Fix tests.
* python.el: Increase native completion robustnessFabián Ezequiel Gallina2015-04-091-42/+94
| | | | | | | | | | | | | | | | | | Fixes: debbugs:19755 Thanks to Carlos Pita <carlosjosepita@gmail.com> for reporting this and providing useful ideas. * lisp/progmodes/python.el (python-shell-completion-native-output-timeout): Increase value. (python-shell-completion-native-try-output-timeout): New var. (python-shell-completion-native-try): Use it. (python-shell-completion-native-setup): New readline setup avoids polluting current context, ensures output when no-completions are available and includes output end marker. (python-shell-completion-native-get-completions): Trigger with one tab only. Call accept-process-output until output end is found or python-shell-completion-native-output-timeout is exceeded.
* * lisp/eshell: Make backslash a no-op in front of normal charsSamer Masterson2015-04-081-28/+21
| | | | | | | | | | | | | | | | | Fixes: debbugs:8531 * lisp/eshell/esh-arg.el (eshell-parse-argument-hook): Update comment. (eshell-parse-backslash): Return escaped character after backslash if it is special. Otherwise, if the backslash is not in a quoted string, ignore the backslash and return the character after; if the backslash is in a quoted string, return the backslash and the character after. * test/automated/eshell.el (eshell-test/escape-nonspecial) (eshell-test/escape-nonspecial-unicode) (eshell-test/escape-nonspecial-quoted) (eshell-test/escape-special-quoted): Add tests for new `eshell-parse-backslash' behavior.
* (diff-hunk-file-names): Don't require a TAB after the file nameGustav Hållberg2015-04-081-1/+1
| | | | Fixes: debbugs:20276
* (diff-hunk-file-names): Don't require a TAB after the file nameGustav Hållberg2015-04-081-2/+7
| | | | | * lisp/vc/diff-mode.el (diff-hunk-file-names): Don't require a TAB after the file name (bug#20276).
* (eieio-copy-parents-into-subclass): Fix inheritance of initargsStefan Monnier2015-04-081-4/+3
| | | | | | | Fixes: debbugs:20270 * lisp/emacs-lisp/eieio-core.el (eieio-copy-parents-into-subclass): Fix inheritance of initargs.
* * lisp/emacs-lisp/package.el (package-menu-mode): Mode-line notificationArtur Malabarba2015-04-081-0/+4
| | | | while dowloading information.
* * lisp/emacs-lisp/package.el: More conservative `ensure-init-file'Artur Malabarba2015-04-081-13/+22
| | | | | | (package--ensure-init-file): Check file contents before visiting. (package-initialize): Call it. (package-install-from-buffer, package-install): Don't call it.