aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | * lisp/dired.el (dired-readin): Don't bind inhibit-modification-hooksStefan Monnier2020-03-301-20/+24
| | | | | | | | Fixes bug#40332
* | Merge from origin/emacs-27Glenn Morris2020-03-304-10/+17
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | c6e0981b96 (origin/emacs-27) * lisp/image/image-converter.el: Fix cus... 461bd9cc20 Fix url-cookie.el for lexical binding f3ccfb1926 ; * src/decompress.c: Fix comment style. 1af03e7e92 ; * src/xfaces.c (syms_of_xfaces): Fix wording and typo. 93945fcd19 ; * test/lisp/calc/calc-tests.el: Fix mistake in last commit ee47e00f4e Don't suggest setting face-remapping-alist to a literal (B... c2b8ce4439 Calc: don't treat nil as an integer (bug#40155) e1f0e08922 * lisp/files.el (directory-files-recursively): Doc fix. (... 02b3820315 Document how to disable Tramp file archives
| * * lisp/image/image-converter.el: Fix customization of image-converter.Juri Linkov2020-03-301-0/+4
| | | | | | | | | | * lisp/image/image-converter.el (image-convert-p): Update image-converter-regexp when image-converter was customized (bug#39994).
| * Fix url-cookie.el for lexical bindingAndreas Schwab2020-03-291-1/+1
| | | | | | | | | | * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Use setq instead of set to modify lexical binding.
| * Calc: don't treat nil as an integer (bug#40155)Mattias Engdegård2020-03-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | Make Math-num-integerp return false for nil, following Math-integerp which was changed in the bignum reform. This fixes a crash in calc-graph-fast. Reported by Narendra Joshi. * lisp/calc/calc-macs.el (Math-num-integerp): Not true for nil. * test/lisp/calc/calc-tests.el (calc-Math-integerp): New tests.
| * * lisp/files.el (directory-files-recursively): Doc fix. (Bug#40202)Eli Zaretskii2020-03-251-7/+9
| |
| * Don't add repeated xlmns:xlink declarations in svg-createLars Ingebrigtsen2020-03-241-1/+2
| | | | | | | | | | | | * lisp/svg.el (svg-create): Fix previous unconditional addition of the xmlns:xlink declaration -- callers may already add one, and having it twice is something most svg libraries doesn't like.
* | Merge from origin/emacs-27Glenn Morris2020-03-301-0/+1
|\ \ | |/ | | | | 8db6b432bb Calc: Declare dynamic variable bound in lexbind code (bug#...
| * Calc: Declare dynamic variable bound in lexbind code (bug#40185)Mattias Engdegård2020-03-231-0/+1
| | | | | | | | * lisp/calc/calc.el: Declare math-comp-selected as dynamic.
* | Deprecate with-displayed-buffer-window, use body-function instead (bug#39822)Juri Linkov2020-03-304-77/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Temporary Displays): Remove defmac with-displayed-buffer-window. * doc/lispref/windows.texi (Buffer Display Action Alists): Add body-function. * lisp/window.el (with-displayed-buffer-window): Declare macro obsolete. (window--display-buffer): Call 'body-function' after displaying the buffer. * lisp/dired.el (dired-mark-pop-up): * lisp/files.el (save-buffers-kill-emacs): * lisp/minibuffer.el (minibuffer-completion-help): Replace with-displayed-buffer-window with with-current-buffer-window and add action alist entry 'body-function' with former macro body.
* | Support state changing VC operations on directories in Dired (bug#34949)Juri Linkov2020-03-306-35/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-vc-next-action): New command. (dired-vc-deduce-fileset): Rename from vc-dired-deduce-fileset in vc.el. * lisp/dired.el (dired-mode-map): Remap vc-next-action to dired-vc-next-action. * lisp/vc/vc-dir.el (vc-dir-mark-files): New function. (vc-dir-refresh): Run hook vc-dir-refresh-hook. * lisp/vc/vc.el (vc-deduce-fileset): Rename arg 'observer' to 'not-state-changing' and document it in docstring. (vc-dired-deduce-fileset): Rename to dired-vc-deduce-fileset in dired-aux.el. * lisp/cedet/ede.el (ede-turn-on-hook, ede-minor-mode): * lisp/desktop.el (desktop-minor-mode-table): Rename the long ago obsolete vc-dired-mode to vc-dir-mode.
* | Improve Tramp cache for asynchronous processesMichael Albinus2020-03-298-90/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-exec-path) (tramp-adb-get-device): * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-askquestion): * lisp/net/tramp-sh.el (tramp-remote-selinux-p, tramp-remote-acl-p) (tramp-open-connection-setup-interactive-shell) (tramp-maybe-open-connection, tramp-get-remote-path) (tramp-get-inline-compress, tramp-get-inline-coding): * lisp/net/tramp-smb.el (tramp-smb-get-cifs-capabilities) (tramp-smb-get-stat-capability): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-remote-acl-p) (tramp-sudoedit-remote-selinux-p): Cache property in main process. * lisp/net/tramp-cache.el (tramp-cache-undefined): New defconst. (tramp-get-hash-table, tramp-connection-property-p): Use it. (tramp-set-connection-property, tramp-flush-connection-property) (tramp-flush-connection-properties): Add sanity checks. (tramp-get-file-property, tramp-set-file-property) (tramp-get-connection-property, tramp-set-connection-property) (tramp-dump-connection-properties): Adapt docstring. * lisp/net/tramp-cmds.el (tramp-cleanup-connection): Delete all processes. * lisp/net/tramp-gvfs.el (tramp-gvfs-unmount): Use `tramp-cleanup-connection'. * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Use `bound-and-true-p'. * lisp/net/tramp.el (tramp-get-process): New defun.
* | * lisp/vc/vc-dir.el (vc-dir-root): New command (bug#12492, bug#34949).Juri Linkov2020-03-292-4/+14
| | | | | | | | | | * lisp/vc/vc-hooks.el (vc-menu-map): Change menu command from 'vc-dir' to 'vc-dir-root'.
* | Switch to literal mode with message when regexp is too big in char-fold searchJuri Linkov2020-03-292-9/+9
| | | | | | | | | | | | | | | | | | | | * lisp/char-fold.el (char-fold-to-regexp): Don't use regexp-quote when the length of regexp reaches 5000. (Bug#40216) * lisp/isearch.el (isearch-search): On big regexp in char-fold mode gracefully fall back to literal mode, try to search again and display momentary-message about switching to literal mode. (isearch--momentary-message): Add optional arg SECONDS.
* | * lisp/jit-lock.el (jit-lock-mode): Pass `local` to add-hookStefan Monnier2020-03-281-20/+11
| | | | | | | | | | | | The old code used local=nil knowing that add-hook would affect the local part only anyway. Remove this hideous assumption. Remove redundant `:group` args while we're at it.
* | * lisp/progmodes/ebrowse.el (ebrowse-tags-loop-call): RenameStefan Monnier2020-03-281-24/+22
| | | | | | | | | | | | | | | | | | | | Used to be called `ebrowse-tags-loop-form` and passed to `eval`. Now it's passed to `apply` instead, which is better for karma. (ebrowse-tags-loop-continue, ebrowse-tags-search) (ebrowse-tags-query-replace, ebrowse-tags-search-member-use): Adjust accordingly. (ebrowse-electric-position-mode-map): Move init into declaration. (ebrowse-electric-position-mode): Derive from special.
* | Turn compilation-error-case-fold-search into a defvarMattias Engdegård2020-03-281-4/+6
| | | | | | | | | | | | | | | | | | See bug#40119, and the discussion at https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00653.html * lisp/progmodes/compile.el (compilation-error-case-fold-search): Turn into a defvar. * etc/NEWS: Update.
* | Tramp cache fixesMichael Albinus2020-03-282-6/+8
| | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Flush the cache after the file has been written.
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Declare the type immediatelyStefan Monnier2020-03-271-1/+4
| |
* | * lisp/gnus/gnus-registry.el: Use lexical-bindingStefan Monnier2020-03-271-46/+43
| | | | | | | | | | | | (gnus-registry-install-shortcuts): Use a closure (with dynamic :documentation) (gnus-registry-user-format-function-M): Use define-obsolete-function-alias. (gnus-registry-article-marks-to-names): η-reduce.
* | * lisp/textmodes/tex-mode.el: Replace double-definition hack with an adviceStefan Monnier2020-03-271-33/+27
| | | | | | | | | | | | | | (tex-verbatim-environments): Add "Verbatim". (tex--guess-mode): Rename from tex-guess-mode and return the mode rather than calling it. (tex-mode): Replace second definition with an advice.
* | * lisp/progmodes/ebrowse.el: Prefer hash-tables to obarraysStefan Monnier2020-03-271-245/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove redundant :group args. Use `defvar-local` and `setq-local` where possible. (ebrowse-some): Use seq-some instead. (ebrowse-every): Use seq-every-p instead. (ebrowse-position): Use seq-position. (ebrowse--tree-table): Rename from `ebrowse--tree-obarray`. Change all users to use a hash-table rather than an obarray. (ebrowse-for-all-trees): Adjust to the table being a hash-table. (ebrowse-tree-table-as-alist): Rename from `ebrowse-tree-obarray-as-alist`. (ebrowse-build-tree-obarray): Rename from `ebrowse-build-tree-obarray`. (ebrowse-tree-mode): Remove redundant setting of `ebrowse--tree-obarray`. (ebrowse-set-tree-indentation, ebrowse-view-file-other-frame) (ebrowse-last-completion-table): Rename from ebrowse-last-completion-obarray. (ebrowse-position): Make it a proper struct.
* | Disable enable-local-variables for hunk-only in diff-syntax-fontify-propsJuri Linkov2020-03-271-1/+3
| | | | | | | | | | * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Let-bind enable-local-variables to nil when hunk-only is non-nil (bug#39190)
* | Fix integer overflow in forward-pointPaul Eggert2020-03-251-1/+5
| | | | | | | | | | | | * lisp/subr.el (forward-point): Rewrite in Lisp and move here ... * src/cmds.c (Fforward_point): ... from here. This fixes an integer overflow bug with (forward-point most-positive-fixnum).
* | Make compilation-mode regexp matching case-sensitive (bug#40119)Mattias Engdegård2020-03-251-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | The number of regexps is large, they are written independently of one another, and they frequently intersect. Using case-sensitive matching improves separation and performance, and is probably what everyone have being assuming was used by compilation-mode all along. * lisp/progmodes/compile.el (compilation-error-case-fold-search): New. (compilation-parse-errors): Bind case-fold-search to compilation-error-case-fold-search during matching. * etc/NEWS: Announce.
* | * lisp/textmodes/conf-mode.el (conf-mode): Fix last changeStefan Monnier2020-03-251-21/+25
| | | | | | | | | | | | `delay-mode-hooks` cannot be tested from within `define-derived-mode` because it's always non-nil in there, so arrange to test it before we enter the body.
* | Improve the UI of 'list-timers'Eli Zaretskii2020-03-252-5/+16
| | | | | | | | | | | | * lisp/emacs-lisp/timer-list.el (list-timers): Display both "Next" and "Repeat" in units of seconds, for consistency. (timer-list-mode): Add help-echo to column headers.
* | Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacsEli Zaretskii2020-03-252-17/+59
|\ \
| * | Rename dired-mark-region choices and ignore empty region.Juri Linkov2020-03-241-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired.el (dired-mark-region): Rename choices 'exclusive' to 'file', and 'inclusive' to 'line'. (dired-mark-if, dired-mark): Check for non-empty region explicitly instead of using use-region-p to ignore non-nil value of use-empty-active-region. (Bug#39902)
| * | Fix gravatar testsRobert Pluim2020-03-241-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/image/gravatar.el (gravatar--service-libravatar): Don't error when failing to parse email address, just return the default URL. * test/lisp/image/gravatar-tests.el (gravatar-build-url): Adjust for new default gravatar url.
| * | Add support for multiple Gravatar servicesPhilip K2020-03-241-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now supports Libravatar and Unicornify, next to Gravatar (Bug#39965). * lisp/image/gravatar.el (gravatar-base-url): Remove constant. (gravatar-service-alist): List supported services. (gravatar-service): Add user option to specify service, defaults to Libravatar. (gravatar--service-libravatar): New function, libravatar image host resolver implementation. (gravatar-build-url): Use alist gravatar-service-alist instead of gravatar-base-url. * etc/NEWS: Mention new gravatar service option.
* | | Fix sending signals and EOF to the inferior process in gdb-mi.elEli Zaretskii2020-03-241-4/+4
|/ / | | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb-io-interrupt, gdb-io-quit) (gdb-io-stop, gdb-io-eof): Send signal/EOF to the inferior process, not to GDB. (Bug#40210)
* | Don't add repeated xlmns:xlink declarations in svg-createLars Ingebrigtsen2020-03-241-1/+2
| | | | | | | | | | | | * lisp/svg.el (svg-create): Fix previous unconditional addition of the xmlns:xlink declaration -- callers may already add one, and having it twice is something most svg libraries doesn't like.
* | Make cl-concatenate an alias of seq-concatenateNoam Postavsky2020-03-231-3/+2
| | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use defalias instead of apply. This is simpler and more efficient.
* | Merge from origin/emacs-27Glenn Morris2020-03-236-47/+66
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | d66331aea4 (origin/emacs-27) Don't build the Gnulib 'utimens' module ... f2351a689b Add Harfbuzz dependency 8944310d7c Don't signal during backtrace unrewind (Bug#40088) 8709aaddd8 Fix a couple of problems in changelog generating functions 9ab85f087f Fix cl-concatenate (Bug#40180) 561e9fb91b Improve documentation of project.el commands b28a9a6cc3 Make svg images with links valid 7515252cce * lisp/tab-line.el (tab-line-new-button-show): New defcustom. # Conflicts: # etc/NEWS # nt/gnulib-cfg.mk
| * Fix a couple of problems in changelog generating functionsNoam Postavsky2020-03-222-35/+40
| | | | | | | | | | | | | | | | | | | | | | * lisp/vc/diff-mode.el (diff-add-log-current-defuns): If there is a scan-error when calling end-of-defun, go to end of hunk. This can easily happen since we are calling end-of-defun on a partial code fragment from a diff. * lisp/vc/log-edit.el (log-edit-generate-changelog-from-diff): Bind display-buffer-overriding-action around the log-edit-show-diff call only. Otherwise, it can affect, for example, debugger windows triggered by the diff-add-log-current-defuns call.
| * Fix cl-concatenate (Bug#40180)Noam Postavsky2020-03-221-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use apply, to avoid adding extra nesting of args. * test/lisp/emacs-lisp/cl-extra-tests.el (cl-concatenate): New test.
| * Improve documentation of project.el commandsEli Zaretskii2020-03-211-4/+7
| | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-find-regexp): Require 'grep' to be able to call 'grep-read-files'. (project-search, project-query-replace-regexp): Doc fixes. * doc/emacs/maintaining.texi (Projects): New section. * doc/emacs/emacs.texi (Top): Add "Projects" to the detailed menu.
| * Make svg images with links validZhu Zihao2020-03-201-1/+2
| | | | | | | | | | | | | | * lisp/svg.el (svg-create): Specify xlink namespace for svg images (bug#40010). Copyright-paperwork-exempt: yes
| * * lisp/tab-line.el (tab-line-new-button-show): New defcustom.Juri Linkov2020-03-201-6/+16
| | | | | | | | | | | | * lisp/tab-line.el (tab-line-format-template): Use tab-line-new-button-show. (tab-line-new-tab-choice): Remove choice 'nil' with "No button". (tab-line-separator): Add docstring.
| * Don't have exif bugging out on short stringsLars Ingebrigtsen2020-03-191-2/+19
| | | | | | | | | | | | | | * lisp/image/exif.el (exif--direct-ascii-value): New function (bug#40127). (exif--parse-directory): Use it to get the correct values for in-directory (i.e., shorter than 4 octets) strings.
* | Merge from origin/emacs-27Glenn Morris2020-03-2335-35/+35
|\ \ | |/ | | | | | | bed04c502c Use correct registry name for windows-1251 charset 1aa1529301 ERC: Update maintainer address
| * ERC: Update maintainer addressAmin Bandali2020-03-1835-35/+35
| |
* | * lisp/dired.el (dired-mark-region): New defcustom (bug#39902)Juri Linkov2020-03-233-18/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired.el (dired-mark-if): Use dired-mark-region. (dired-mark): Use dired-mark-region. Fix docstring. (dired-mark-files-regexp, dired-mark-files-containing-regexp) (dired-mark-symlinks, dired-mark-directories) (dired-mark-executables, dired-flag-auto-save-files) (dired-flag-backup-files): Mention dired-mark-region in docstring. * lisp/dired-aux.el (dired-compare-directories): * lisp/dired-x.el (dired-mark-unmarked-files, dired-mark-sexp): Mention dired-mark-region in docstring.
* | Revert "Signal user-error on duplicate package refresh" (Bug#39187)Stefan Kangas2020-03-221-4/+1
| | | | | | | | This reverts commit a6d87ea045d9df73f70765bedfb02522043efd9b.
* | Fix Bug#40156 in TrampMichael Albinus2020-03-211-1/+2
| | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): Copy to temp file only if FILENAME exists. (Bug#40156) * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Extend test.
* | Remove more XEmacs compat code from ediff*.elStefan Kangas2020-03-213-35/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/ediff-init.el (ediff-H-glyph): * lisp/vc/ediff-util.el (ediff-inferior-compare-regions) (ediff-setup-keymap): * lisp/vc/ediff-wind.el (ediff-control-frame-parameters) (ediff-prefer-iconified-control-frame) (ediff-setup-control-frame, ediff-xemacs-select-frame-hook): Remove XEmacs compat code and declare compatibility functions obsolete. * lisp/vc/ediff-init.el (ediff-temp-file-prefix): Redefine as obsolete variable alias for 'temporary-file-directory'. * lisp/vc/ediff-util.el (ediff-make-temp-file): Don't use obsolete variable name.
* | Remove obsolete XEmacs commentStefan Kangas2020-03-211-1/+0
| | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug--display-1): Remove comment regarding an XEmacs exclusive variable.
* | Declare some <package>-version variables obsoleteStefan Kangas2020-03-2114-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are not used for anything these days and can therefore be removed. Package developers should check the Emacs version instead. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html * lisp/calendar/icalendar.el (icalendar-version): * lisp/dframe.el (dframe-version): * lisp/emacs-lisp/checkdoc.el (checkdoc-version): * lisp/emulation/edt.el (edt-version): * lisp/international/mule.el (mule-version) (mule-version-date): * lisp/linum.el (linum-version): * lisp/play/bubbles.el (bubbles-version): * lisp/speedbar.el (speedbar-version): * lisp/textmodes/remember.el (remember-version): * lisp/url/url-vars.el (url-version): * lisp/woman.el (woman-version): Declare obsolete. * lisp/emacs-lisp/checkdoc.el (checkdoc-start-section): * lisp/speedbar.el (speedbar-mode): * lisp/url/url-about.el (url-about-protocols): * lisp/url/url-http.el (url-http--user-agent-default-string): * lisp/url/url-news.el (url-news-fetch-message-id): * lisp/woman.el (woman-menu, woman-mode): Stop using variables declared obsolete above.
* | Add "Old-" prefix to "Version" header in some casesStefan Kangas2020-03-2111-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These version numbers are historical accidents and not relevant today. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html * lisp/calendar/icalendar.el: * lisp/emacs-lisp/checkdoc.el: * lisp/hippie-exp.el: * lisp/linum.el: * lisp/master.el: * lisp/progmodes/cwarn.el: * lisp/repeat.el: * lisp/ruler-mode.el: * lisp/textmodes/remember.el: * lisp/wdired.el: * lisp/woman.el: Change "Version" header to "Old-Version".