summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Use \r rather than ^M in string literalsPaul Eggert2015-05-304-7/+7
| | | | | This is less likely to cause problems on platforms that use CRLF (or CR!) termination for lines.
* Use list for the tags completion table, not obarrayDmitry Gutov2015-05-301-13/+9
| | | | | | | | * lisp/progmodes/etags.el (etags-tags-completion-table): Return a list instead of an obarray (http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00876.html). (tags-completion-table): Combine those lists. (tags-completion-table): Update the docstring.
* Improve Tramp traces.Michael Albinus2015-05-302-1/+18
| | | | | | * lisp/net/trampver.el (tramp-repository-get-version): New defun. * lisp/net/tramp.el (tramp-debug-message): Use it.
* backup-buffer minor reworking of internalsPaul Eggert2015-05-291-68/+69
| | | | | * lisp/files.el (backup-buffer): Rework to avoid a couple of unused locals inadvertently introduced in the previous change.
* backup-buffer now reports .emacs.d/%backup% illsPaul Eggert2015-05-291-71/+65
| | | | | | | | | | | * lisp/files.el (backup-buffer): If the write to .emacs.d/%backup% fails due to disk space exhaustion or whatever, do not pretend that it succeeded. More generally, do a better job of checking for I/O failures, and limit the scope of the condition-case to just the operations where file errors should be caught and ignored (Bug#20595). Also, don't bother trying to delete later backups if an earlier deletion fails, as this is a sign of trouble and it's better to stop when there's trouble.
* * lisp/emacs-lisp/package.el: Don't load from parent dirArtur Malabarba2015-05-291-3/+4
| | | | | (package-load-all-descriptors): Don't load descriptors from directories above the package directories.
* Improve Tramp traces.Michael Albinus2015-05-292-4/+36
| | | | | | * lisp/net/tramp.el (tramp-call-process-region): New defun. * lisp/net/tramp-sh.el (tramp-get-inline-coding): Use it.
* gnus-art.el: Re-revert last changeKatsumi Yamaoka2015-05-281-4/+4
| | | | | * lisp/gnus/gnus-art.el (gnus-button-alist): Re-revert last change. cf. <http://news.gmane.org/group/gmane.emacs.devel/thread=186896>
* Show files when `initial-buffer-choice' is non-nilSamer Masterson2015-05-281-278/+303
| | | | | | | | | * startup.el (command-line-1): When Emacs is given a file as an argument and `initial-buffer-choice' is non-nil, display both the file and `initial-buffer-choice'. For more than one file, show `initial-buffer-choice' and *Buffer List*. Refactor display-changing commands out of the command line arg parser. (initial-buffer-choice): Clarify docstring.
* ; Auto-commit of loaddefs files.Glenn Morris2015-05-282-2/+2
|
* Revert my change to gnus-art.elPaul Eggert2015-05-281-4/+4
| | | | | | * lisp/gnus/gnus-art.el (gnus-button-alist): Revert last change. It wasn't that important, and it caused a Gnus build to fail. See: http://www.randomsample.de:4456/builders/emacs-devel/builds/734
* New minor mode Electric QuotePaul Eggert2015-05-282-0/+109
| | | | | | | | | | | | | | | | | | | This lets you easily insert quotes ‘like this’ by typing quotes `like this', and similarly you can easily insert quotes “like this” by typing quotes ``like this'' (Bug#20545). * doc/emacs/basic.texi (Inserting Text): * doc/emacs/modes.texi (Minor Modes): * etc/NEWS: Document it. * doc/emacs/text.texi (Quotation Marks): New section. * lisp/electric.el (electric-quote-comment) (electric-quote-string, electric-quote-paragraph): New custom vars. (electric--insertable-p) (electric-quote-post-self-insert-function): New functions. (electric-quote-mode, electric-quote-local-mode): New minor modes. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Add curved single quotes to electric-pair-text-pairs. Set electric-quote-string in this buffer.
* A few more doc string fixes (Bug#20385)Paul Eggert2015-05-282-5/+5
|
* Accept curved quotes in doc stringsPaul Eggert2015-05-281-9/+9
| | | | | * lisp/info-look.el (info-lookup-guess-custom-symbol): (info-lookup-alist): Treat ‘’ like `' when parsing help buffers etc.
* Generate curved quotes in pseudo-info nodesPaul Eggert2015-05-281-8/+8
| | | | | | * lisp/info.el (Info-virtual-index-find-node) (Info-virtual-index, Info-apropos-find-node, info-apropos): Quote ‘like this’, not `like this', when generating pseudo-info nodes.
* Fix minor quoting problems in doc stringsPaul Eggert2015-05-2836-194/+194
| | | | | | Most of these fixes involve escaping grave accents that are actually intended to be grave accents, not left quotes. (Bug#20385)
* Support curved quotes in doc stringsPaul Eggert2015-05-2819-109/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs's traditional doc string style has been to quote symbols `like this'. This worked well on now-obsolete terminals where ` and ' were symmetric quotes, but nowadays curved quotes ‘like this’ look better. Support quoting the new way too. (Bug#20385) * doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted ‘like-this’ as well as `like-this'. * etc/NEWS: Mention this. * lisp/cedet/mode-local.el (overload-docstring-extension) (mode-local-print-binding, mode-local-describe-bindings-2): * lisp/cus-theme.el (describe-theme-1): * lisp/descr-text.el (describe-text-properties-1, describe-char): * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): * lisp/emacs-lisp/cl-generic.el (cl--generic-describe): * lisp/emacs-lisp/eieio-opt.el (eieio-help-class) (eieio-help-constructor): * lisp/emacs-lisp/package.el (describe-package-1): * lisp/faces.el (describe-face): * lisp/help-fns.el (help-fns--key-bindings) (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete): (help-fns--interactive-only, describe-function-1): (describe-variable): * lisp/help.el (describe-mode): * lisp/international/mule-cmds.el (describe-input-method) (describe-language-environment): * lisp/international/mule-diag.el (describe-character-set) (print-coding-system-briefly, list-input-methods) (list-input-methods-1): Insert curved quotes rather than grave accent and apostrophe. * lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring): * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine) (checkdoc-proper-noun-region-engine): * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2) (lisp-cl-font-lock-keywords-2): * lisp/finder.el (finder-font-lock-keywords): * lisp/gnus/gnus-art.el (gnus-button-alist): * lisp/help-fns.el (help-do-arg-highlight) (describe-function-1, describe-variable): * lisp/help-mode.el (help-xref-symbol-regexp) (help-xref-info-regexp, help-xref-url-regexp): * lisp/help.el (describe-mode): * lisp/international/mule-cmds.el (help-xref-mule-regexp-template): * lisp/wid-edit.el (widget-documentation-link-regexp): Parse symbols quoted ‘like-this’ as well as `like-this'. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Add "‘" and "’" to electric-pair-text-pairs. (elisp--form-quoted-p): Also allow "‘" as a quoting char. (elisp-completion-at-point, elisp--preceding-sexp): Also treat "‘" and "’" as quoting chars.
* * lisp/mail/rmailsum.el (rmail-summary-by-recipients)Glenn Morris2015-05-271-9/+3
| | | | | (rmail-summary-by-topic, rmail-summary-by-senders): No longer strip leading/trailing whitespace.
* * lisp/progmodes/f90.el (f90-type-def-re): Add "type, extends".Glenn Morris2015-05-271-2/+4
| | | | | | | (f90-no-block-limit): Add "enum". (Bug#20680) * test/automated/f90.el (f90-test-bug20680, f90-test-bug20680b): New tests.
* * lisp/isearch.el (isearch--current-buffer): Give a default value.Stefan Monnier2015-05-271-1/+1
|
* Un-revert changes mistakenly dropped by f9fabb2bStefan Monnier2015-05-273-11/+47
|
* Delete the old process in vc-setup-bufferDmitry Gutov2015-05-281-6/+6
| | | | | | * lisp/vc/vc-dispatcher.el (vc-setup-buffer): Delete the old process here. (vc-do-command): Rather than here (bug#20608).
* Avoid gratuitous delete-dups in face-at-point.Ivan Shmakov2015-05-271-2/+3
| | | | | | * lisp/faces.el (face-at-point): Do not compute the properly ordered, duplicate-free list if only a single value is requested anyway. (Bug#20519)
* Show the exact C-x 8 RET invocation in describe-char.Ivan Shmakov2015-05-271-1/+8
| | | | | * lisp/descr-text.el (describe-char): Show the exact C-x 8 RET invocation instead of a template. (Bug#20522)
* * lisp/emacs-lisp/package.el: Don't erase tags on refreshArtur Malabarba2015-05-271-11/+30
| | | | | | | | | | | | | (package-menu--post-refresh): Call `tabulated-list-print' with the UPDATE argument. This only affects the refresh action, the revert action still erases tags. (package-menu-get-status): Change `assq' to `assoc'. (package-menu--mark-upgrades-1): New function. (package-menu--mark-upgrades-pending): New variable. (package-menu-mark-upgrades): Use them to delay marking until after refresh is done. (package-menu--post-refresh): Call mark-upgrades-1 if mark-upgrades-pending is non-nil.
* Fix typo in commit 3953c4be2816537be95520605d45b866dc731f4bMichael Albinus2015-05-271-2/+0
|
* Improve tramp-handle-make-auto-save-file-nameMichael Albinus2015-05-271-30/+27
| | | | | | | * tramp.el (tramp-auto-save-directory): Add :tags. (tramp-handle-make-auto-save-file-name): Let native `make-auto-save-file-name' use `auto-save-file-name-transforms', if `tramp-auto-save-directory' is not set.
* ; Auto-commit of loaddefs files.Glenn Morris2015-05-271-4/+4
|
* No longer set dired-directory in eshell. (Bug#16477)Glenn Morris2015-05-262-7/+4
| | | | | * lisp/eshell/esh-mode.el (eshell-mode): * lisp/eshell/em-dirs.el (eshell/cd): No longer set dired-directory.
* * lisp/mail/sendmail.el (mail-position-on-field): Doc fix.Glenn Morris2015-05-261-3/+4
|
* Make c-submit-bug-report file reports at debbugs.gnu.org. (Bug#15784)Glenn Morris2015-05-261-1/+11
| | | | | | | | | | | * lisp/progmodes/cc-mode.el (c-mode-help-address): Change to submit@debbugs. (c-mode-bug-package): New constant. (mail-position-on-field): Declare. (c-submit-bug-report): Insert X-Debbugs-Package header. * doc/misc/cc-mode.texi (Mailing Lists and Bug Reports): Mention debbugs.gnu.org.
* * lisp/mail/rmailsum.el: Commas no longer separate regexps. (Bug#19026)Glenn Morris2015-05-261-10/+8
| | | | | | | | | (rmail-summary-by-recipients, rmail-summary-by-topic) (rmail-summary-by-senders): No longer use mail-comma-list-regexp. * doc/emacs/rmail.texi (Rmail Make Summary): Update for this change. ; * etc/NEWS: Mention this.
* Handle curved quotes in info filesPaul Eggert2015-05-263-55/+57
| | | | | | | | | * lisp/calc/calc-help.el (calc-describe-thing): * lisp/info.el (Info-find-index-name) (Info-try-follow-nearest-node, Info-fontify-node): * lisp/vc/ediff-help.el (ediff-help-for-quick-help): In info files, process quotes ‘like this’ the same way we process quotes `like this'. This catches a few places we missed earlier.
* xref-prompt-for-identifier: Use a list valueDmitry Gutov2015-05-261-6/+30
| | | | | | | * lisp/progmodes/xref.el (xref-prompt-for-identifier): Allow list value, to be interpreted as a list of commands. (xref--prompt-p): New function. (xref--read-identifier): Use it.
* * lisp/emacs-lisp/tabulated-list.el: Don't sort without sorterArtur Malabarba2015-05-261-1/+2
| | | | (tabulated-list-print): Don't sort if sorter is nil
* Fix Bug#20621Michael Albinus2015-05-261-13/+0
| | | | | | | | * lisp/net/tramp-sh.el (tramp-set-auto-save): Remove it. There are major modes which set `auto-save-mode' on their own rules; Tramp shall not overwrite such settings. Fixes: debbugs:20621
* * lisp/desktop.el: If modes aren't autoloaded, try simple guesswork.Glenn Morris2015-05-251-10/+22
| | | | | | | | | (desktop-load-file): Guess that "foobar" defines "foobar-mode". (desktop-buffer-mode-handlers, desktop-minor-mode-handlers): Doc updates. (vc-dir-mode): Remove unnecessary autoload. ; Ref: http://debbugs.gnu.org/19226#14
* * lisp/term/xterm.el: Add gui-get-selection support via OSC-52Philipp Stephani2015-05-251-42/+75
| | | | | | | | | | | | | | | | | (xterm--extra-capabilities-type): Add `getSelection'. (xterm--query): Add `no-async' argument. (xterm--init-activate-get-selection): New function. (terminal-init-xterm): Use it. (xterm--init-modify-other-keys): Rename from terminal-init-xterm-modify-other-keys. (xterm--init-bracketed-paste-mode): Rename from terminal-init-xterm-bracketed-paste-mode. (xterm--init-activate-set-selection): Rename from terminal-init-xterm-activate-set-selection. (xterm--selection-char): New function. (gui-backend-set-selection): Use it. Use the &context to only apply this method in terminals where we enabled the feature. (gui-backend-get-selection): New method.
* Add C-language keyword constants to C++Daniel Colascione2015-05-251-1/+1
| | | | | * lisp/progmodes/cc-langs.el (c-constant-kwds): Add C-language keyword constants to C++.
* Make TAGS files more portable to MS-WindowsPaul Eggert2015-05-251-2/+9
| | | | | | | | * etc/NEWS: Document this. * lib-src/etags.c (readline_internal) [DOS_NT]: Don't treat CRs differently from GNUish hosts. * lisp/progmodes/etags.el (etags-goto-tag-location): Adjust STARTPOS to account for the skipped CRs in dos-style files.
* Improve fix of debbugs:20634 in tramp-sh.elMichael Albinus2015-05-251-3/+6
|
* (cl-generic-define-method): Side effects are evil (bug#20644)Stefan Monnier2015-05-251-2/+4
| | | | | * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method): Don't reuse cons-cells that might be used as keys in an `equal' hash-table.
* Make erc timestamps visible againLars Magne Ingebrigtsen2015-05-251-2/+2
| | | | | * lisp/erc/erc-stamp.el (erc-munge-invisibility-spec): Make timestamps visible again (if requested).
* * lisp/emacs-lisp/cl-macs.el (cl-tagbody): Scope cl--tagbody-alistStefan Monnier2015-05-251-1/+2
| | | | Fixes: debbugs:20639
* Fix typo in 89035e247591c8d688fce922b7079881aa110f33Michael Albinus2015-05-251-1/+1
|
* Fix IPv6 addresses in TrampOrivej Desh2015-05-251-1/+3
| | | | | | | * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name): Add sqare brackets around host name. Copyright-paperwork-exempt: yes
* Inhibit `epa-file-handler' in TrampMichael Albinus2015-05-253-8/+11
| | | | | | | | Fixes: debbugs:20634 * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer) (tramp-sh-handle-insert-file-contents-literally): Inhibit also `epa-file-handler'.
* * lisp/emacs-lisp/pcase.el: Use PAT rather than UPAT in docstringStefan Monnier2015-05-241-24/+29
| | | | (pcase-let): Document the behavior in case the pattern doesn't match.
* * lisp/emacs-lisp/tabulated-list.el: New optional print methodArtur Malabarba2015-05-241-9/+45
| | | | | | | | | | | (tabulated-list-print): New optional argument, UPDATE. If non-nil, the list is printed by only adding and deleting the changed entries, instead of erasing the whole buffer. This method is much faster when few or no entries have changed. * doc/lispref/modes.texi (Tabulated List Mode): Document it. * etc/NEWS: Document it.
* * lisp/emacs-lisp/tabulated-list.el: Improve printingArtur Malabarba2015-05-241-24/+33
| | | | | | (tabulated-list--get-sorter): New function. (tabulated-list-print): Restore window-line when remember-pos is passed and optimize away the `nreverse'.