summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Don't flash previous buffer when connecting with emacsclientAaron Jensen2018-02-161-39/+49
| | | | | | | | * lisp/server.el (server-execute): Accept lambda for creating frame rather than frame. Ensure newly created tty frame initially shows the correct buffer. (server-process-filter): Pass a lambda to server-execute to create a frame. (Bug#24218)
* * lisp/calendar/diary-lib.el (diary-remind): Fix bug#30455.Stefan Monnier2018-02-151-1/+2
| | | | (diary-remind): Bind `days' as documented for diary-remind-message.
* Stop keeping multiple doc copies for items defined multiple timesGlenn Morris2018-02-132-127/+20
| | | | | | | | | | | | | It was always a nuisance to keep all the copies in sync. * src/doc.c (Fsnarf_documentation): Don't skip entire files. Instead, skip individual doc strings starting with "SKIP". * doc/lispref/internals.texi (Writing Emacs Primitives): Mention this skipping. * lisp/term/ns-win.el, lisp/term/pc-win.el, src/dosfns.c: * src/frame.c, src/nsfns.m, src/nsmenu.m, src/nsterm.m: * src/w16select.c, src/w32fns.c, src/w32menu.c, src/w32select.c: * src/w32term.c, src/xmenu.c: Remove duplicated doc strings. * src/xfns.c: Merge in information from doc string duplicates.
* Merge from origin/emacs-26Glenn Morris2018-02-135-26/+44
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 333d6f4 (origin/emacs-26) More changes in the Emacs manual 52ca0d1 * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors. 69e8046 Don't signal error in vc-deduce-backend f568c91 * doc/misc/tramp.texi: Index more user options. 92ca881 Minor change in the Emacs manual e055a12 NEWS update about 'string-trim' 96b6e24 Clarify TRAMP process-environment interaction (Bug#30419) 4fa467e * lisp/progmodes/grep.el (grep-num-matches-found): New variable. a22820a Avoid aborts in cm.c due to too small TTY frame 26f6441 Another set of improvements in the Emacs manual cef3b42 Fix help in mode-line-mode-menu f8a493c Improve documentation of desktop restoring 10637af Improve the Emacs manual's chapter "Frames" d924953 Fix unbound mm-uu-entry in mm-uu cb2487b Improve Emacs user manual in fixit.texi 66e9527 Another minor change in the manual 6a1c03d More minor changes in the Emacs manual 32fb8c4 Avoid printing garbled error message from image.el Conflicts: etc/NEWS lisp/image.el
| * * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.Andreas Schwab2018-02-131-3/+1
| |
| * Don't signal error in vc-deduce-backendAndreas Schwab2018-02-131-1/+3
| | | | | | | | | | * lisp/vc/vc.el (vc-deduce-backend): Return nil if vc-responsible-backend signals an error.
| * * lisp/progmodes/grep.el (grep-num-matches-found): New variable.Juri Linkov2018-02-121-14/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | (grep-mode-line-matches): New defconst. (grep-mode-font-lock-keywords): Update the regexp for “Grep finished” to include the number of matches found. (grep-process-setup): Set grep-num-matches-found to 0. (grep-exit-message): New function with body moved from lambda in grep-process-setup. Use grep-num-matches-found to return the number of matches found. (grep-filter): Increment grep-num-matches-found. (grep-mode): Set compilation-mode-line-errors to grep-mode-line-matches. (Bug#30397, bug#14017)
| * Fix help in mode-line-mode-menuMichael Albinus2018-02-121-1/+1
| | | | | | | | | | * lisp/bindings.el (mode-line-mode-menu) [auto-revert-tail-mode]: Fix help string.
| * Fix unbound mm-uu-entry in mm-uuAndreas Schwab2018-02-101-9/+9
| | | | | | | | * lisp/gnus/mm-uu.el (mm-uu-dissect): Rename entry to mm-uu-entry.
| * Avoid printing garbled error message from image.elEli Zaretskii2018-02-101-1/+1
| | | | | | | | | | | | | | * lisp/image.el (image--get-imagemagick-and-warn): Don't use apostrophe in the error message, as that message is shown from a unibyte buffer, and will run afoul of the default style of showing quote characters. (Bug#30405)
* | * lisp/gnus/message.el (message-ecomplete-capf): Fix call convention.Stefan Monnier2018-02-131-1/+1
| |
* | * lisp/progmodes/python.el: Bump package version to 0.26.Noam Postavsky2018-02-121-1/+1
| |
* | Finish renaming to internal--daemon-socknamePaul Eggert2018-02-121-5/+5
| | | | | | | | | | | | | | * doc/lispref/processes.texi (Misc Network): Omit discussion of internal--daemon-sockname, as non-Emacs code shouldn't rely on it. * src/process.c (syms_of_process): Rename internal-daemon-sockname to internal--daemon-sockname. All uses changed.
* | Rename internal--external-sockname and document (Bug#24218)Matthew Leach2018-02-121-5/+5
| | | | | | | | | | | | | | * lisp/server.el: Rename `internal--external-sockname' to `internal-daemon-sockname'. * src/process.c: Likewise. * doc/lispref/processes.texi: Document `internal-daemon-sockname'.
* | Minor cleanups for server-name fix (Bug#24218)Paul Eggert2018-02-121-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/server.el (server--external-socket-initialized): Rename from server-external-socket-initialised, since it should be private and Emacs uses American spelling. All uses changed. * src/emacs.c, src/lisp.h: Revert previous changes, as the initialization is now done in src/process.c, which already includes the relevant files. * src/process.c (union u_sockaddr): Move decl to top level. (external_sock_name, Fget_external_sockname): Remove, replacing with Vinternal__external_sockname. All uses changed. (init_process_emacs): Deduce socket name ourselves rather than have main.c do it. Use conv_sockaddr_to_lisp instead of doing it by hand. Conditionalize it on HAVE_GETSOCKNAME.
* | Fix `server-name' and `server-socket-dir' for (Bug#24218)Matthew Leach2018-02-121-20/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/server.el: (server-external-socket-initialised): New (server-name): Compute server name from `get-external-sockname'. (server-socket-dir): Compute socket dir from `get-external-sockname'. (server-start): Don't check for existing server when an uninitialised external socket has been passed to Emacs. * src/emacs.c: (main): Obtain socket name via getsockname and pass to `init_process_emacs'. * src/lisp.h: (init_process_emacs): Add second parameter. * src/process.c: (external_sock_name): New. (get-external-sockname): New. (init_process_emacs): Set `external_sock_name' to `sockname' parameter.
* | Fix an infloop in python-nav-beginning-of-statementDmitry Gutov2018-02-121-1/+2
| | | | | | | | | | * lisp/progmodes/python.el (python-nav-beginning-of-statement): Fix an infloop (bug#30277).
* | Tidy up NS keybindingsAlan Third2018-02-111-3/+1
| | | | | | | | * lisp/term/ns-win.el: Remove unneeded mappings to super-shifted keys.
* | Remove NS special handling of 'frame-title-format'Alan Third2018-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/term/ns-win.el (frame-title-format, icon-title-format): Change default format to just the filename. * src/nsfns.m (ns-use-proxy-icon): New variable. (ns_set_name_as_filename): Remove function. (x_implicitly_set_name): Get rid of special handling of frame-title-format. * src/nsterm.h (ns_set_represented_filename): Use new definition. * src/nsterm.m (ns_set_represented_filename): Move some of the logic from ns_set_name_as_filename into this function.
* | Fix handling of file notifications in tramp-gvfs.elMichael Albinus2018-02-114-48/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-dissect-file-name): Fix docstring. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch): Use consequently "gio monitor". (tramp-gvfs-monitor-process-filter): Rename from `tramp-gvfs-monitor-file-process-filter'. Adapt implementation. * lisp/net/tramp-sh.el (tramp-gio-events): Move this ... * lisp/net/tramp.el (tramp-gio-events): ... here.
* | * lisp/window.el (display-buffer--maybe-at-bottom): New function (bug#30314).Juri Linkov2018-02-103-33/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (display-buffer--maybe-pop-up-frame) (display-buffer--maybe-pop-up-window): New functions created from display-buffer--maybe-pop-up-frame-or-window. (display-buffer--maybe-pop-up-frame-or-window): Call display-buffer--maybe-pop-up-frame or display-buffer--maybe-pop-up-window. (display-buffer-at-bottom): Fix parens. * lisp/minibuffer.el (minibuffer-completion-help): Use display-buffer--maybe-pop-up-frame instead of let-binding pop-up-windows to nil. * lisp/files.el (hack-local-variables-confirm) (save-buffers-kill-emacs): Use display-buffer--maybe-at-bottom.
* | * lisp/comint.el (comint-after-pmark-p): Check if buffer has a live process.Juri Linkov2018-02-101-13/+16
| | | | | | | | | | | | | | Return nil if not. (comint-history-isearch-setup): Don't check if process is live. Always check if shell prompt is empty regardless of the value of comint-history-isearch. (Bug#30187)
* | Handle "gio monitor" in tramp-sh.elMichael Albinus2018-02-101-9/+85
| | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-gio-events): New defconst. (tramp-sh-handle-file-notify-add-watch): Handle "gio monitor" extra. (tramp-sh-gio-monitor-process-filter) (tramp-get-remote-gio-monitor): New defuns. (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-get-remote-gvfs-monitor-dir): Do not check for gio anymore.
* | Merge from origin/emacs-26Glenn Morris2018-02-098-11/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0276743 (origin/emacs-26) Doc string fix in latin-alt.el c9269af Minor improvements in package.texi 898a3e4 Minor improvement in Emacs user manual 8f7d718 * doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3. 989d0af Improve documentation of mini-window resizing 923e415 More changes in the Emacs manual 565adf2 Clarify that text-quoting-style doesn't affect *Info* (Bug#24... 2dd273b Mention that shell quoting of % on w32 may fail (Bug#19350) 19fa6d5 Fix --no-build-details for w32 and macOS 979944c * doc/lispref/anti.texi (Antinews): Add some more antinews. c2727e3 Fix crashes when run with --no-build-details dc08490 More changes for the manual 04c5bd5 Doc fixes for process functions (Bug#30349) e209034 Fix shr and CSS 4 color maps 5fe8192 Yet another round of improvements in the manual Conflicts: doc/emacs/files.texi test/lisp/subr-tests.el
| * Doc string fix in latin-alt.elEli Zaretskii2018-02-091-1/+1
| | | | | | | | | | * lisp/leim/quail/latin-alt.el ("dutch"): Doc fix. Reported by Robert Pluim <rpluim@gmail.com>.
| * Fix --no-build-details for w32 and macOSNoam Postavsky2018-02-081-1/+1
| | | | | | | | | | | | * src/w32term.c (w32_initialize_display_info): Handle nil system-name. * lisp/term/ns-win.el (window-system-initialization): Don't pass nil to `x-open-connection'.
| * Doc fixes for process functions (Bug#30349)Noam Postavsky2018-02-074-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Asynchronous Processes): Explain what the 'stopped' state means for a pipe process. * src/process.c (Fmake_process, Fmake_pipe_process) (Fmake_serial_process, Fmake_network_process): * lisp/subr.el (start-process): * lisp/net/tls.el (open-tls-stream): * lisp/net/starttls.el (starttls-open-stream): * lisp/net/gnutls.el (open-gnutls-stream): Remove meaningless phrase "specify an output stream" phrase from docstring.
| * Fix shr and CSS 4 color mapsBasil L. Contovounesios2018-02-072-2/+5
| | | | | | | | | | | | | | | | | | * lisp/net/shr-color.el (shr-color-html-colors-alist): Fix typos. Add RebeccaPurple. * lisp/textmodes/css-mode.el (css--color-map): Add fuchsia-magenta and aqua-cyan aliases. * test/lisp/textmodes/css-mode-tests.el (css-test-property-values): Bump color count.
* | Fix iswitchb highlighting: don't mutate buffer nameDaniel Colascione2018-02-081-1/+1
| | | | | | | | | | * lisp/obsolete/iswitchb.el (iswitchb-completions): Copy buffer name before applying face
* | * lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Handle lambda!Stefan Monnier2018-02-081-23/+55
| | | | | | | | | | | | | | | | (cl--old-macroexpand): Remove. (cl--sm-macroexpand): Change its calling convention, so it can use advice-add. Extend re-binding treatment of vars so it applies to all var-introducing forms rather than only to 'let'. (cl-symbol-macrolet): Use advice-add rather than fset.
* | Remove unused duplicate of minibuffer-completion-contentsGlenn Morris2018-02-081-1/+2
| | | | | | | | | | | | | | * src/minibuf.c (Fminibuffer_completion_contents): Remove. Unused since introduction of minubuffer.el 2008-04-09. (syms_of_minibuf): Remove Sminibuffer_completion_contents. * lisp/minibuffer.el (minibuffer-completion-contents): Doc tweak.
* | * lisp/comint.el (comint-history-isearch-setup): Check if process is live.Juri Linkov2018-02-061-4/+11
| | | | | | | | | | Don't activate comint-history isearch when shell prompt is empty like in all *Async Shell Command* buffers. (Bug#30187)
* | * lisp/dired.el (dired-get-marked-files): Add new optional arg 'error'.Juri Linkov2018-02-063-20/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Call user-error when it's non-nil and result is empty (bug#30285). * lisp/dired-aux.el (dired-do-chxxx, dired-do-chmod) (dired-do-print, dired-do-async-shell-command) (dired-do-shell-command, dired-do-compress-to) (dired-mark-confirm, dired-do-create-files) (dired-do-isearch, dired-do-isearch-regexp) (dired-do-query-replace-regexp, dired-do-find-regexp): * lisp/dired-x.el (dired-do-find-marked-files): Set arg 'error' of dired-get-marked-files call to t.
* | ; Small fixes and indentationJuri Linkov2018-02-062-22/+22
| |
* | Support occur command operating on the region from Isearch.Juri Linkov2018-02-062-10/+13
| | | | | | | | | | | | | | | | | | | | * lisp/isearch.el (isearch-occur): Use region-bounds as region arg of occur. (isearch-query-replace): Use use-region-p. * lisp/replace.el (occur--region-start-line): Rename from occur--matches-threshold. (occur): Use complete lines when region is active for line-oriented occur. (occur-engine): Count lines either from occur--region-start-line or 1.
* | Support list-matching-lines-jump-to-current-line for context lines.Juri Linkov2018-02-051-47/+85
| | | | | | | | | | | | | | | | | | | | | | * lisp/replace.el (occur--orig-line-str): Remove. (occur): Remove occur--orig-line-str. (occur-engine): Use add-face-text-property to add the face list-matching-lines-current-line-face to the current line. Use previous-single-property-change to find occur--final-pos. (occur-context-lines): New args orig-line and multi-occur-p. Find the current line in context lines and add face to it. (Bug#30281)
* | Merge from origin/emacs-26Glenn Morris2018-02-054-18/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c787a49 (origin/emacs-26) * lisp/vc/vc-git.el (vc-git-print-log): Res... b654791 * doc/emacs/misc.texi (Interactive Shell): Refer to node "Min... f1102d2 Yet another round of fixing the Emacs manual 76b5a68 * etc/NEWS: Expunge the solecism "allow(s)" + infinitive b4ff8cc Two minor fixes in Antinews aafcd12 * etc/NEWS: Rename image-dired-thumb-job-limit a893924 * lisp/simple.el (async-shell-command, shell-command): Fix gr... 699081f Fix deferred display of async shell-command buffers d2d5e54 Mention remote file name completion in Emacs manual f589f5a Yest another round of manual copyedits 1ed4089 Update xdisp.c commentary e23de39 Fix Bug#30324 e1a9dc0 Recognize Org as builtin package (bug#30310) Conflicts: etc/NEWS
| * * lisp/vc/vc-git.el (vc-git-print-log): Restrict file scope to a single fileJuri Linkov2018-02-041-3/+5
| | | | | | | | | | | | | | when vc-git-print-log-follow is non-nil (bug#19045). (vc-git-print-log-follow): Doc fix. * etc/NEWS: Mention 'vc-git-print-log-follow'.
| * * lisp/simple.el (async-shell-command, shell-command): Fix grammarBasil L. Contovounesios2018-02-031-6/+6
| |
| * Fix deferred display of async shell-command buffersBasil L. Contovounesios2018-02-031-7/+13
| | | | | | | | | | | | * lisp/simple.el (shell-command): Display async shell buffer on process output for every, not just first, command invocation. Check buffer liveness, not name, before displaying. (bug#30213, bug#30280)
| * Fix Bug#30324Michael Albinus2018-02-031-2/+2
| | | | | | | | | | * lisp/net/rlogin.el (rlogin, rlogin-directory-tracking-mode): Adapt to changed remote file name syntax. (Bug#30324)
| * Recognize Org as builtin package (bug#30310)Glenn Morris2018-02-021-0/+1
| | | | | | | | | | * lisp/org/org.el: Add Version header so detected as builtin package. * test/lisp/org/org-tests.el: New file.
* | Fix inconsistency expanding "//" in TrampMichael Albinus2018-02-051-9/+11
| | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (File name completion): Adapt example expanding "//". * lisp/net/tramp.el (tramp-handle-substitute-in-file-name): "//" shall expand the localname only, even when on top of the local part. * test/lisp/net/tramp-tests.el (tramp-test04-substitute-in-file-name): Adapt test.
* | Fix handling of modifier keys on macOSPhilipp Stephani2018-02-041-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | * src/nsterm.m (keyDown:): Distinguish between shift-like and control-like modifier keys. Allow treating ⌘ as shift-like modifier (e.g. for the Gujarati – QUERTY input method, where ⌘ switches to QUERTY.) * lisp/cus-start.el (standard): Change nil to none for ns-command-modifier; update description. * etc/NEWS: Add NEWS entry.
* | Make tramp-archive fit for older EmacsenMichael Albinus2018-02-042-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-enabled) (tramp-archive-file-name-handler-alist) (tramp-archive-file-name-handler): Adapt docstring. (tramp-register-archive-file-name-handler): Remove it from `after-init-hook' when unloading. (tramp-archive-gvfs-host): New defsubst. (tramp-archive-dissect-file-name): Use it. * lisp/net/tramp-cmds.el (tramp-cleanup-all-connections): Check that `tramp-archive-enabled' is bound. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test42-auto-load): Check also that tramp-archive is not loaded when Tramp is loaded. (tramp-archive-test42-delay-load): Adapt test messages.
* | Prevent loading tramp-archive when it cannot be usedMichael Albinus2018-02-033-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/files.el (locate-dominating-file): Check, that FILE is a directory when traversing the tree. * lisp/net/tramp-archive.el (tramp-archive-enabled): New defvar. (tramp-archive-file-name-regexp): Protect against errors. (tramp-archive-file-name-handler) (tramp-register-archive-file-name-handler): Use it. (all) Call `tramp-register-archive-file-name-handler'. * lisp/net/tramp.el (tramp-register-file-name-handlers): Use `tramp-archive-enabled'. * test/lisp/net/tramp-archive-tests.el (all): Use `tramp-archive-enabled' instead of `tramp-gvfs-enabled'. (tramp-archive--test-emacs27-p): New defun. (tramp-archive-test42-auto-load): Skip for older Emacsen. (tramp-archive-test42-delay-load): Skip for older Emacsen. Test also behavior when `tramp-archive-enabled' is nil.
* | Autoload tramp-archiveMichael Albinus2018-02-031-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Archive file names): Do not require to load Tramp explicitly, this is autoloaded now also for file archives. * lisp/net/tramp-archive.el (tramp-archive-suffixes) (tramp-archive-compression-suffixes): Autoload them. (tramp-archive-autoload-file-name-regexp): New defmacro. (tramp-archive-file-name-regexp): Use it. (tramp-register-archive-file-name-handler): New defun. Call it in `after-init-hook'. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test40-file-system-info): Rename from `tramp-archive-test40-archive-file-system-info. (tramp-archive-test42-auto-load) (tramp-archive-test42-delay-load): New tests.
* | CC Mode: Fix an enum intro being parsed as defun-block-introAlan Mackenzie2018-02-022-12/+9
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-inside-bracelist-p): Return a bufpos rather than t for the enum case. (c-add-stmt-syntax, c-guess-continued-construct): Replace c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p, since the former does not recognize enum brace lists, but the latter does. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): Replace c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p.
* | Add support for module functions to C-h f (Bug#30163).Philipp Stephani2018-02-021-0/+2
| | | | | | | | | | | | | | | | * lisp/help-fns.el (help-fns-function-description-header): Handle module functions. * test/src/emacs-module-tests.el (module/describe-function-1): New test.
* | Handle quoted remote file names for file notificationsMichael Albinus2018-02-021-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-add-watch): Do not suppress other file name handlers when FILE is quoted. * test/lisp/filenotify-tests.el (file-notify-test-remote-temporary-file-directory): Beware quoted `temporary-file-directory'. * test/lisp/files-tests.el (files-tests-file-name-non-special-quote-unquote): Improve test.