summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix docstring of arabic-shaper-ZWNJ-handlingK. Handa2017-11-071-3/+1
| | | | | * lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Adjusted the doctstring for addition of :set (bug#28312).
* Handle single-line comments correctly (Bug#26049)Antonin Houska2017-11-061-1/+7
| | | | | | | | | | | * lisp/newcomment.el (comment-region-internal): Previously, the comment text had to contain at least one line break character for the ending extra line to be added. Make the behavior more consistent by looking for end of line instead. (comment-region-internal): Remove trailing white space from the comment's initial line. Copyright-paperwork-exempt: yes
* Do not load Tramp unless `tramp-mode' is non-nilMichael Albinus2017-11-051-5/+8
| | | | | | | | | * lisp/net/tramp.el (tramp-autoload-file-name-handler): Load Tramp only if `tramp-mode' is non-nil. (tramp-unload-file-name-handlers): Unload also `tramp-autoload-file-name-handler'. * test/lisp/net/tramp-tests.el (tramp-test42-delay-load): Extend test.
* Ediff: add some missing documentationPhilipp Stephani2017-11-051-25/+100
| | | | | | | | | | | | | | | | | | | | * vc/ediff.el (ediff-files, ediff-files3, ediff-buffers) (ediff-buffers3, ediff-merge-directories) (ediff-merge-directories-with-ancestor) (ediff-merge-directory-revisions) (ediff-merge-directory-revisions-with-ancestor) (ediff-windows-wordwise, ediff-windows-linewise) (ediff-regions-wordwise, ediff-regions-linewise) (ediff-merge-files, ediff-merge-files-with-ancestor) (ediff-merge-buffers, ediff-merge-buffers-with-ancestor) (ediff-merge-revisions, ediff-merge-revisions-with-ancestor) (ediff-patch-file, ediff-revision): Document missing arguments. (ediff-patch-buffer, ediff-revision): Add second space after period. (ediff-files-command, ediff3-files-command, ediff-merge-command) (ediff-merge-with-ancestor-command, ediff-directories-command) (ediff-directories3-command, ediff-merge-directories-command): Add documentation for the command line functions.
* Support python virtualenv on w32 (Bug#24464)Justin Timmons2017-11-051-5/+10
| | | | | | | | | | | | According to the virtualenv docs only POSIX systems follow the structure "/path/to/venv/bin/", while windows systems use "/path/to/venv/Scripts" for the location of the binary files, most importantly including the python interpreter (see: https://virtualenv.pypa.io/en/stable/userguide/#windows-notes). * lisp/progmodes/python.el (python-shell-calculate-exec-path): Use the "/path/to/venv/Scripts" for `windows-nt' machines. Copyright-paperwork-exempt: yes
* Improve dired deletion error handling (Bug#28797)Noam Postavsky2017-11-051-1/+1
| | | | | * lisp/dired.el (dired-internal-do-deletions): Use `error-message-string' to produce a human readable error message.
* Don't replace user input when completion prefix is empty (Bug#18951)Noam Postavsky2017-11-051-1/+1
| | | | | * lisp/pcomplete.el (pcomplete-parse-arguments): Only replace user input if we produced a non-empty common completion stub.
* Fix Flymake help-echo functions across windows (bug#29142)João Távora2017-11-051-6/+7
| | | | | | | * lisp/progmodes/flymake.el (flymake--highlight-line): Use with-selected-window. (flymake-goto-next-error): Call help-echo with a window and an overlay.
* Add a Flymake backend for PerlJoão Távora2017-11-053-3/+74
| | | | | | | | | | | | | | | | | | Define a simple backend in perl-mode.el, which cperl-mode.el also uses. * lisp/progmodes/cperl-mode.el (cperl-mode): Add to flymake-diagnostic-functions. * lisp/progmodes/flymake-proc.el (flymake-proc-allowed-file-name-masks): Disable legacy backend for perl files. * lisp/progmodes/perl-mode.el (perl-flymake-command): New defcustom. (perl--flymake-proc): New buffer-local variable. (perl-flymake): New function. (perl-mode): Add to flymake-diagnostic-functions.
* Add a Flymake backend for RubyJoão Távora2017-11-051-0/+63
| | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-flymake-command): New defcustom. (ruby--flymake-proc): New buffer-local variable. (ruby-flymake): New function. (ruby-mode): Add flymake-diagnostic-functions.
* Add a Flymake backend for Python (bug#28808)Lele Gaifax2017-11-051-1/+135
| | | | | | | | | | | | | | | Implement new Flymake backend with related customizable settings. * lisp/progmodes/python.el (python-flymake-command) (python-flymake-command-output-pattern) (python-flymake-msg-alist): New defcustom. (python--flymake-parse-output): New function, able to parse python-flymake-command output accordingly to python-flymake-command-output-pattern. (python-flymake): New function implementing the backend interface using python--flymake-parse-output for the real work. (python-mode): Add python-flymake to flymake-diagnostic-functions.
* Allow "%" in Tramp host namesMichael Albinus2017-11-052-5/+3
| | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-url-file-name): Hexify also host. * lisp/net/tramp.el (tramp-host-regexp): Allow "%" in host names.
* Add html-, mhtml- and python-mode support to semantic symrefCharles A. Roelli2017-11-041-7/+13
| | | | | | | | | | | | | | | * lisp/cedet/semantic/symref/grep.el (semantic-symref-filepattern-alist): Fix the entry for 'html-mode', which used a regexp-like syntax where only glob syntax is permitted. As a result, 'xref-find-references' (M-?) can now find references in HTML files. Also duplicate the same entry for the sake of 'mhtml-mode', and add a new one for 'python-mode'. (semantic-symref-derive-find-filepatterns): In the documentation, clarify that returned patterns must follow the glob syntax. Fix an 'if' test that always evaluates to nil. (semantic-symref-tool-grep): (semantic-symref-perform-search): Fix typos.
* Fix subtle problems in tabulated-list-mode with line numbersEli Zaretskii2017-11-041-2/+13
| | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-watch-line-number-width): Call tabulated-list-init-header instead of tabulated-list-revert. (tabulated-list-window-scroll-function): New function. (tabulated-list-mode): Put 'tabulated-list-window-scroll-function' on the buffer-local 'window-scroll-functions' list.
* Make gdb-non-stop-setting default to nil on MS-WindowsEli Zaretskii2017-11-041-3/+11
| | | | | * lisp/progmodes/gdb-mi.el (gdb-non-stop-setting): Now nil on MS-Windows.
* Fix gdb-mi prompt after "attach PID" commandMike Gulick2017-11-041-1/+4
| | | | | | | * lisp/progmodes/gdb-mi.el (gdbmi-bnf-console-stream-output): Set gdb-first-done-or-error non-nil. (Bug#29020) Copyright-paperwork-exempt: yes
* Introduce a function to CC Mode which displays the current function nameAlan Mackenzie2017-11-032-3/+19
| | | | | | | | | | | | | Remove an erroneous interactive specification from two functions. * lisp/progmodes/cc-cmds.el (c-display-defun-name): New command. (c-defun-name, c-cpp-define-name): Remove interactive specification. * lisp/progmodes/cc-mode.el (c-mode-base-map): Add binding C-c C-z for the new command. * doc/misc/cc-mode.texi (Other Commands): Add documentation for the new command.
* ; Fix some comment typosGlenn Morris2017-11-034-4/+4
|
* Fix typos in ediff-wind.elEli Zaretskii2017-11-031-5/+5
| | | | | * lisp/vc/ediff-wind.el (ediff-setup-windows-multiframe-merge): Fix typos in commentary. (Bug#29138)
* Examine tex-chktex--process in the correct bufferJoão Távora2017-11-031-1/+2
| | | | | | | | | | | As in other Flymake backends, the process sentinel might run in arbitrary buffers where this variable's value doesn't make sense. For a way to trigger a problem due to this, see discussion starting in https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00645.html * lisp/textmodes/tex-mode.el (tex-chktex): Use with-current-buffer.
* Don't resignal errors in flymake-diag-regionJoão Távora2017-11-031-1/+1
| | | | | * lisp/progmodes/flymake.el (flymake-diag-region): Use flymake-log instead of flymake-error.
* New xref-quit-and-goto-xref command bound to TAB (bug#28814)João Távora2017-11-031-5/+19
| | | | | | | | | | | | | | | | | This is like xref-goto-xref, but quits the *xref* window just before the user jump to ref. * lisp/progmodes/xref.el (xref--show-location): Handle 'quit value for SELECT. (xref-goto-xref): Take optional QUIT arg. (xref-quit-and-goto-xref): New command. (xref--xref-buffer-mode-map): Bind "Q" and "TAB" to xref-quit-and-goto-xref. * doc/emacs/maintaining.texi (Xref Commands): Describe new bindings in *xref*. * etc/NEWS (Xref): Describe new binding.
* Allow split-window-sensibly to split threshold in further edge caseJoão Távora2017-11-031-11/+24
| | | | | | | | | | | | | | | | | | As a fallback, and to avoid creating a frame, split-window-sensibly would previously disregard split-height-threshold if the window to be split is the frame's root window. This change generalizes that: it disregards the threshold if the window to be split is the frame's only _usable_ window (it is either the only one, as before, or all the other windows are dedicated to some buffer and thus cannot be touched). This is required for the fix to bug#28814. * lisp/window.el (split-height-threshold): Adjust doc to match split-window-sensibly. (split-window-sensibly): Also disregard threshold if all other windows are dedicated.
* Honor window-switching intents in xref-find-definitions (bug#28814)João Távora2017-11-031-21/+48
| | | | | | | | | | | | | | | | | When there is more than one xref to jump to, and an *xref* window appears to help the user choose, the original intent to open a definition in another window or frame is remembered when the choice to go to or show a reference is finally made. * lisp/progmodes/xref.el (xref--show-pos-in-buf): Rewrite. (xref--original-window-intent): New variable. (xref--original-window): Rename from xref--window and move up here for clarity. (xref--show-pos-in-buf): Rewrite. Don't take SELECT arg here. (xref--show-location): Handle window selection decision here. (xref--window): Rename to xref--original-window. (xref-show-location-at-point): Don't attempt window management here. (xref--show-xrefs): Ensure display-action intent is saved.
* * lisp/emacs-lisp/generator.el (iter-do): Add a debug declaration.Paul Pogonyshev2017-11-031-1/+2
|
* * lisp/progmodes/flymake.el (flymake-start): Fix dead buffer caseStefan Monnier2017-11-031-4/+7
| | | | Don't try to flymake-start within a buffer that doesn't exist any more.
* Fix buffer name comparison in async shell-commandBasil L. Contovounesios2017-11-031-23/+17
| | | | | * lisp/simple.el (shell-command): Keep track of output-buffer by its name, not by its object. (Bug#28997)
* Improve the doc of eshell-cmpl-* custom variables (Bug#25069)Hong Xu2017-11-021-31/+23
| | | | | | | | | | | | | | | * lisp/eshell/em-cmpl.el (eshell-cmpl--custom-variable-docstring): New function to generate the docstring for custom variables derived from pcomplete-* variables. (eshell-cmpl-file-ignore, eshell-cmpl-dir-ignore) (eshell-cmpl-ignore-case, eshell-cmpl-autolist) (eshell-cmpl-suffix-list, eshell-cmpl-recexact) (eshell-cmpl-man-function, eshell-cmpl-compare-entry-function) (eshell-cmpl-expand-before-complete, eshell-cmpl-cycle-completions) (eshell-cmpl-cycle-cutoff-length, eshell-cmpl-restore-window-delay) (eshell-command-completion-function, eshell-cmpl-command-name-function) (eshell-default-completion-function, eshell-cmpl-use-paring): Use it to set the docstring.
* Fix completion of colon after CSS property (Bug#29056)Simen Heggestøyl2017-11-021-0/+1
| | | | | | * lisp/textmodes/css-mode.el (css-completion-at-point): Don't insert ": ;" after completing a CSS property unless the rest of the line is empty.
* Don't have frameset save the 'client' parameter (Bug#29067)Martin Rudalics2017-11-021-0/+4
| | | | | * lisp/frameset.el (frameset-persistent-filter-alist): Never save 'client' parameter (Bug#29067).
* ; Spelling fixesPaul Eggert2017-11-013-4/+4
|
* Handle generic variables in cl-defgeneric Edebug specGemini Lasswell2017-11-011-1/+2
| | | | | | *lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Fix Edebug spec to match (setf name) and replace incorrect cl-lambda-list with listp (Bug#27747).
* Give a more sensible message if file-attributes fails (Bug#29070)Noam Postavsky2017-11-011-2/+4
| | | | | * lisp/server.el (server-ensure-safe-dir): Don't claim the directory is a file if we fail to get anything from `file-attributes'.
* Fix customization of debugger-print-function (Bug#29077)Noam Postavsky2017-11-011-2/+3
| | | | | | * lisp/emacs-lisp/debug.el (debugger-print-function): The :options keyword has no effect for :type 'function, use :type '(choice ...) instead.
* ; Auto-commit of loaddefs files.Glenn Morris2017-11-011-38/+21
|
* ; Doc fixesCharles A. Roelli2017-10-312-3/+3
| | | | | | | | | * lisp/progmodes/xref.el (xref-file-location) (xref-backend-apropos): * etc/NEWS (Lisp Changes in Emacs 26.1): * doc/emacs/msdos.texi (Windows Keyboard): * lisp/vc/vc.el (vc-print-branch-log): * src/buffer.c (word-wrap): Doc additions and fixes.
* Don't clobber docstrings of explicitly-defined mode hook variablesPhil Sainty2017-10-312-6/+10
| | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): When defining the mode hook variable, do not clobber pre-existing docstrings.
* Avoid fullscreen ediff control frames by default (Bug#29026)Martin Rudalics2017-10-311-0/+2
| | | | | * lisp/vc/ediff-wind.el (ediff-control-frame-parameters): Add parameter to avoid fullscreen control frames (Bug#29026).
* Fix the bug#24034 change (revno 9eb028f) causing infloop (bug#29047)Katsumi Yamaoka2017-10-301-3/+7
| | | | | * lisp/net/shr.el (shr-fill-line): Copy only face and image-displayer properties to gaps (bug#29047).
* Fix "Args out of range" error in c-determine-limit. Fixes bug #28598.Alan Mackenzie2017-10-301-8/+19
| | | | | | | | * lisp/progmodes/cc-engine.el (c-determine-limit-get-base): If the candidate position for BASE is below point-min, scan forward to the end of the current literal. (c-determine-limit): Add an extra arm to the final cond form, testing for BASE being at point-min.
* * lisp/progmodes/perl-mode.el: Fix electric indentation with RETStefan Monnier2017-10-301-1/+3
| | | | | (perl-electric-noindent-p): The `eolp' check should not apply to RET. Reported in https://emacs.stackexchange.com/questions/36337.
* Extend mhtml submode region when in commentTom Tromey2017-10-291-3/+1
| | | | | * lisp/textmodes/mhtml-mode.el (mhtml-syntax-propertize): Extend submode when start happens to be in a comment.
* Fix mthml submode lighting at end of bufferTom Tromey2017-10-291-1/+6
| | | | | * lisp/textmodes/mhtml-mode.el (mhtml--submode-lighter): Handle end of buffer correctly.
* Remember more variables in mhtml-modeTom Tromey2017-10-291-2/+2
| | | | | | * lisp/textmodes/mhtml-mode.el (mhtml--crucial-variable-prefix): Add "completion-" and "major-mode". (mhtml--variable-prefix): Remove "major-mode".
* ; * lisp/select.el (select-enable-primary): Add missing period.Philipp Stephani2017-10-291-1/+1
|
* Add ChkTeX flymake backend for latex-modeMark Oteiza2017-10-281-0/+63
| | | | | | | | * lisp/textmodes/tex-mode.el (tex-flymake): New custom group. (tex-chktex-program, tex-chktex-extra-flags): New custom variables. (latex-mode): Add backend to flymake-diagnostic-functions. (tex-chktex--process): New variable. (tex-chktex-command, tex-chktex): New functions.
* Fix doc typosGlenn Morris2017-10-2813-26/+23
| | | | | | | | | | | | * lisp/simple.el (line-move-ignore-invisible): * lisp/sort.el (sort-regexp-fields): * lisp/cedet/ede.el (project-add-file): * lisp/gnus/message.el (message-bogus-recipient-p): * lisp/international/mule.el (define-coding-system): * lisp/progmodes/ebrowse.el (ebrowse-member-buffer-object-menu): * lisp/progmodes/xscheme.el (xscheme-allow-output-p) (scheme-interaction-mode, scheme-debugger-mode) (xscheme-yank-pop, xscheme-yank-push): Doc fixes.
* Fix doc strings in desktop.elEli Zaretskii2017-10-281-5/+7
| | | | | * lisp/desktop.el (desktop-auto-save-timeout) (desktop-auto-save-set-timer): Doc fixes. (Bug#28945)
* Don't allow (minibuffer-window-active-p nil) to return tMartin Rudalics2017-10-281-1/+1
| | | | | * lisp/window.el (minibuffer-window-active-p): Return t only if WINDOW is a live window.
* Clarify obsolescence message for 'whitespace-tab'Eli Zaretskii2017-10-281-1/+2
| | | | | * lisp/whitespace.el (whitespace-tab): Make the obsolescence message more clear about the replacement.