summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Remove some compat code from CEDETStefan Kangas2020-05-161-19/+19
| | | | | | | | | | | | | * lisp/cedet/data-debug.el (data-debug-overlay-properties) (data-debug-overlay-p, dd-propertize): Redefine as obsolete function aliases. (data-debug-insert-overlay-props, data-debug-insert-hash-table) (data-debug-insert-hash-table-button) (data-debug-insert-widget-properties, data-debug-insert-widget) (data-debug-insert-symbol-from-point) (data-debug-insert-symbol-button, data-debug-insert-string) (data-debug-insert-number, data-debug-thing-alist): Don't use obsolete names.
* Remove Emacs 22 compat code from abbrev.elStefan Kangas2020-05-161-5/+1
| | | | | * lisp/abbrev.el (write-abbrev-file): Remove Emacs 22 compatibility code.
* ; * lisp/htmlfontify.el: Minor fix in file headers.Stefan Kangas2020-05-161-3/+0
|
* Remove Emacs 22 compat code from ediff-vers.elStefan Kangas2020-05-161-15/+10
| | | | | | | | * lisp/vc/ediff-vers.el (ediff-vc-revision-other-window) (ediff-vc-working-revision): Redefine Emacs 22 compatibility aliases as obsolete function aliases. (ediff-vc-internal, ediff-vc-merge-internal): Don't use the now obsolete aliases.
* Remove some XEmacs compat code from semanticStefan Kangas2020-05-162-8/+5
| | | | | | | | | * lisp/cedet/semantic/wisent/comp.el (wisent-ISVALID-TOKEN) (wisent-parse-nonterminals): * lisp/cedet/semantic/wisent/wisent.el (wisent-item-to-string): Remove XEmacs compatibility code. (wisent-char-p): Redefine as obsolete function alias for 'characterp'.
* * lisp/textmodes/bibtex.el: Fix bug#41285 (paren typo)Stefan Monnier2020-05-161-3/+3
|
* Introduce process-file-return-signal-stringMichael Albinus2020-05-164-6/+41
| | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Synchronous Processes): Describe `process-file-return-signal-string'. * doc/misc/tramp.texi: Adapt Tramp and Emacs version numbers. (Remote processes): Describe `process-file-return-signal-string' and $INSIDE_EMACS. * etc/NEWS: Describe `process-file-return-signal-string'. Fix typos. * lisp/simple.el (process-file-return-signal-string): New user option. * lisp/net/tramp-adb.el (tramp-adb-handle-process-file): * lisp/net/tramp-sh.el (tramp-sh-handle-process-file): Use it. * lisp/net/tramp.el (tramp-get-signal-strings): New defun. * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.
* * lisp/progmodes/project.el (project-try-vc): Fix regexp typo.Stefan Monnier2020-05-151-1/+10
|
* Fix submodules, second tryDmitry Gutov2020-05-161-5/+3
| | | | | * lisp/progmodes/project.el (project-try-vc): Call the backend directly instead of binding default-directory.
* CC Mode: Fix bug #40052, where a very large macro was too slow in scrollingAlan Mackenzie2020-05-152-8/+23
| | | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-end-of-macro): Fix faulty cache handling, where the upper bound of c-macro-cache was never being set. (c-forward-comment-minus-1): New macro which terminates unwanted indefinite backward searching with lots of escaped newlines in c-backward-single-comment. (c-backward-single-comment, c-backward-comments): Use the new macro above. * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings) (c-after-change-mark-abnormal-strings, c-after-change-escape-NL-in-string): Optimize three regexps by using shy groups, thus preventing regexp stack overflow while handling the large C Macro.
* Fix Git submodules detection breakageDmitry Gutov2020-05-151-4/+5
| | | | | * lisp/progmodes/project.el (project-try-vc): Use the absolute name of .git both times.
* * lisp/progmodes/xref.el: Fix first line syntaxStefan Monnier2020-05-151-6/+6
| | | | (xref--find-ignores-arguments): Simplify.
* Use lexical-binding in autoconf.el and add testsSimen Heggestøyl2020-05-151-1/+1
| | | | | | | * lisp/progmodes/autoconf.el: Use lexical-binding. * test/lisp/progmodes/autoconf-tests.el: New file with tests for autoconf.el.
* Calc: GCD(0,x)=GCD(x,0)=|x|, not x (bug#41279)Mattias Engdegård2020-05-151-2/+2
| | | | | | | Reported by David Ongaro. * lisp/calc/calc-comb.el (calcFunc-gcd): Fix GCD simplification. * test/lisp/calc/calc-tests.el (calc-gcd, calc-sum-gcd): New tests.
* Delete libraries obsolete since 23.1 and 23.2Stefan Kangas2020-05-156-1616/+1
| | | | | | | | | | | | | | | | | | | Emacs 23.2 was released 10 years ago. old-whitespace.el has a replacement in whitespace.el and is no longer relevant. The other libraries implement compatibility with Lucid Emacs, a modified version of Emacs last released in the 1990s. * lisp/obsolete/ledit.el: * lisp/obsolete/lmenu.el: * lisp/obsolete/lucid.el: * lisp/obsolete/old-whitespace.el: Delete files. These libraries have been obsolete since Emacs 23.1 or 23.2. * etc/NEWS: Announce their deletion. * admin/authors.el (authors-ignored-files) (authors-fixed-entries, authors-valid-file-names): * lisp/emulation/viper.el (viper-mode): * lisp/ffap.el (ffap-menu-ask): Remove references to deleted files.
* ; Tweak version numbers in lisp/progmodes/xref.elJoão Távora2020-05-151-2/+2
| | | | | | | | Hopefully this aids in getting the package correctly listed in GNU ELPA. * lisp/progmodes/xref.el (Version): Bump to 1.0.1 (Package-Requires): Require project 0.1.1.
* Improve detection of Git submodulesDmitry Gutov2020-05-151-3/+18
| | | | | | * lisp/progmodes/project.el (project-try-vc): Improve detection of Git submodules (https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02008.html).
* ; Fix warning in last changeTino Calancha2020-05-141-2/+2
| | | | | * lisp/arc-mode.el (archive--summarize-descs): Use file-modes-number-to-symbolic.
* Combine archive-int-to-mode and tar-grind-file-modeTino Calancha2020-05-143-39/+26
| | | | | | | | | | | | | | | | | | | | | Add a new function, file-modes-number-to-symbolic. Make archive-int-to-mode and obsolete alias of it; use it to define tar-grind-file-mode (Bug#27952). * lisp/files.el (file-modes-number-to-symbolic): New defun. * lisp/arc-mode.el (archive-int-to-mode): Make it an obsolete alias. * lisp/tar-mode.el (tar-grind-file-mode): Use file-modes-number-to-symbolic. * test/lisp/arc-mode-tests.el (arc-mode-test-archive-int-to-mode) * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): Update test. * test/lisp/files-tests.el (files-tests-file-modes-symbolic-to-number) (files-tests-file-modes-number-to-symbolic): New tests. * doc/lispref/files.texi (Changing Files): Document the new funtion. * etc/NEWS (Lisp Changes in Emacs 28.1): Announce it.
* Fix customisation of mouse-drag-and-drop-region (bug#41251)Mattias Engdegård2020-05-141-1/+1
| | | | | | Reported by David Ponce. * lisp/mouse.el (mouse-drag-and-drop-region): Add missing unquote.
* Calc: fix LU decomposition for non-numeric matrices (bug#41223)Mattias Engdegård2020-05-141-1/+1
| | | | | | | | | Computing determinant and inverse for on some matrices containing non-numeric elements failed or gave the wrong result. Reported by Mauro Aranda. * lisp/calc/calc-mtx.el (math-do-matrix-lud): Don't use zero as pivot. * test/lisp/calc/calc-tests.el (calc-matrix-determinant): New test.
* ; Fix warning after last change in cal-julian.elStefan Kangas2020-05-141-8/+12
| | | | | | * lisp/calendar/cal-julian.el (diary-julian-date) (diary-astro-day-number): Silence byte-compiler warning about variable 'declared after its first use'.
* Fix some oddities, uncovered by Tramp testsMichael Albinus2020-05-132-8/+12
| | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Prevent crash for older Emacsen. * lisp/net/tramp.el (tramp-process-running-p): Simplify. * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test. (tramp-test33-environment-variables): Unset "INSIDE_EMACS" initially.
* Turn Eldoc, Xref and Project into GNU ELPA :core packagesJoão Távora2020-05-135-4/+22
| | | | | | | | | | | | | | | | The new packages state they require Emacs 26.3 to function, but a small part of project.el breaks this "soft" rule: the two functions requiring fileloop.el are incompatible with Emacs 26.3. * lisp/jsonrpc.el: Tweak comment near Package-Requires. * lisp/emacs-lisp/eldoc.el: Add Version and Package-Requires. * lisp/progmodes/flymake.el: Add comment near Package-Requires. * lisp/progmodes/project.el: Add Version and Package-Requires. * lisp/progmodes/xref.el: Add Version and Package-Requires.
* Use lexical-binding in t-mouse.elStefan Kangas2020-05-131-1/+1
| | | | * lisp/t-mouse.el: Use lexical-binding.
* ; Fix warning in last changeBasil L. Contovounesios2020-05-131-1/+1
| | | | | * lisp/play/animate.el (animate-place-char): Silence 'unused lexical variable' warning.
* Use lexical-binding in animate.el and add testsStefan Kangas2020-05-131-1/+1
| | | | | * lisp/play/animate.el: Use lexical-binding. * test/lisp/play/animate-tests.el: New file.
* Use lexical-binding in dissociate.el and add testsStefan Kangas2020-05-131-1/+1
| | | | | * lisp/play/dissociate.el: Use lexical-binding. * test/lisp/play/dissociate-tests.el: New file.
* Use lexical-binding in cal-julian.el and add testsStefan Kangas2020-05-131-1/+1
| | | | | * lisp/calendar/cal-julian.el: Use lexical-binding. * test/lisp/calendar/cal-julian-tests.el: New file.
* Use proper digraphs in Bahá’í month namesPaul Eggert2020-05-121-2/+2
| | | | | | | * lisp/calendar/cal-bahai.el (calendar-bahai-month-name-array): There doesn’t seem to be any disagreement in the sources I consulted that “Mas͟híyyat” and “S͟haraf” both need an “s͟h” digraph instead of plain “sh”.
* * lisp/emacs-lisp/syntax.el: Fix bug#41195Stefan Monnier2020-05-121-6/+18
| | | | | | | | Allow use of `syntax-ppss-flush-cache` in `syntax-propertize-function`. (syntax-propertize--inhibit-flush): New var. (syntax-propertize): Bind it. (syntax-ppss-flush-cache): Test it.
* Revert "Inhibit modification hooks when saving eieio-persistent's"Michael Heerdegen2020-05-121-2/+1
| | | | This reverts commit c59e878439833d89998e03134ee9060f9c449fd9.
* Support sorting timer-list-mode by column (Bug#40854)Stefan Kangas2020-05-121-4/+31
| | | | | | | * lisp/emacs-lisp/timer-list.el (timer-list-mode) (timer-list--idle-predicate, timer-list--next-predicate) (timer-list--repeat-predicate) (timer-list--function-predicate): Add support for sorting by column.
* Base timer-list-mode on tabulated-list-mode (Bug#40854)Stefan Kangas2020-05-121-56/+49
| | | | | | | | * lisp/emacs-lisp/timer-list.el (list-timers) (timer-list-mode): Inherit from 'tabulated-list-mode' instead of 'special-mode' and make the necessary changes to support that. * doc/lispref/os.texi (Timers): Update documentation.
* Fix bug #40992 whilst still allowing breakpoint highlights in edebugAlan Mackenzie2020-05-111-15/+38
| | | | | | | | | | | | | | | | | | | | | | | Strategy: when an instrumented function gets re-evaluated, save the former value of its symbol's `edebug' property in the new propery `ghost-edebug'. If this function is still being edebugged, edebug will then access its info from this new property. Also fix the bug whereby compile-defun'ing an instrumented function prevents the function being re-instrumented by I (edebug-instrument-callee). * lisp/emacs-lisp/edebug.el (edebug-get-edebug-or-ghost): New function. (edebug-read-and-maybe-wrap-form1): save value of `edebug' property in 'ghost-edebug'. (edebug-make-form-wrapper): Set value of `ghost-edebug' to nil. (edebug-make-form-wrapper, edebug-find-stop-point, edebug-next-break-point) (edebug-modify-breakpoint, edebug--overlay-breakpoints, edebug-set-breakpoint) (edebug-unset-breakpoints, edebug-toggle-disable-breakpoint) (edebug--backtrace-goto-source, edebug-display-freq-count) (edebug-set-conditional-breakpoint): Use edebug-get-edebug-or-ghost to access edebug information. (edebug-instrument-function): Also check a function is a cons before declaring it "already instrumented".
* * lisp/emacs-lisp/pcase.el (pcase--fgrep): Look inside vectorsStefan Monnier2020-05-111-4/+9
|
* ; Fix last change to bibtex.elBasil L. Contovounesios2020-05-111-0/+1
| | | | | | * lisp/textmodes/bibtex.el (bibtex-autokey-before-presentation-function): Bump :version tag now that nil is no longer a valid value.
* * lisp/textmodes/bibtex.el: Avoid `eval`Stefan Monnier2020-05-111-50/+59
| | | | | | | | In the top-level construction of the entry-type commands, use `defalias` instead of (eval `(defun ...)). (bibtex-insert-kill): Strength reduce `eval` => `symbol-value`. (bibtex-autokey-before-presentation-function): Avoid nil value.
* * lisp/subr.el (dolist, dotimes, combine-change-calls): Cosmetic tweaksStefan Monnier2020-05-111-9/+9
| | | | | | (dolist, dotimes): Adjust comment since testing `lexical-binding` is supposed to be reliable. (combine-change-calls): Add debug and indent specs.
* * lisp/emacs-lisp/syntax.el (syntax-propertize): Use run-hook-wrappedStefan Monnier2020-05-111-17/+21
| | | | | This way we avoid making assumptions about the content of syntax-propertize-extend-region-functions
* * lisp/ielm.el: Handle corner case where */**/*** are not yet boundStefan Monnier2020-05-111-18/+13
| | | | | | Remote redundant :group args. (ielm-eval-input): Use bound-and-true-p for */**/***
* Map "mail/compose" icon to "mail-message-new" in GTKDmitry Gutov2020-05-111-1/+1
| | | | * lisp/term/x-win.el (x-gtk-stock-map): One more icon mapping.
* Use the "modern" toolbars in Gnus againDmitry Gutov2020-05-111-3/+3
| | | | | | * lisp/gnus/gmm-utils.el (gmm-tool-bar-style): Undo the breakage from commit d88118db37dd (https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg02094.html).
* Use better icons on GTK in message-mode and isearchDmitry Gutov2020-05-112-4/+6
| | | | | | | | * lisp/gnus/message.el (message-tool-bar-retro): Use non-Gnus-specific icon. * lisp/term/x-win.el (x-gtk-stock-map): Use more themed icons (bug#40990).
* * lisp/emacs-lisp/pcase.el: Don't bind unused vars in branchesStefan Monnier2020-05-101-20/+27
| | | | | | | (pcase--fgrep): Change calling convention to take bindings rather than just variables. (pcase--funcall, pcase--eval): Adjust to this new calling convention. (pcase--expand): Use `pcase--fgrep` to bind only the vars that are used.
* * lisp/emacs-lisp/eieio.el (eieio pcase macro): Fix last-minute typoStefan Monnier2020-05-101-1/+1
|
* Prefer function-put over put for setting browse-url-browser-kind.Tassilo Horn2020-05-101-38/+41
| | | | | * lisp/net/browse-url.el: Prefer `function-put' over `put' for setting `browse-url-browser-kind' symbol property.
* * lisp/emacs-lisp/eieio.el (eieio pcase macro): Remove unused var `is`Stefan Monnier2020-05-101-10/+9
|
* Use lexical-binding in glasses.el and add testsSimen Heggestøyl2020-05-101-10/+1
| | | | | | | | | | | | | * lisp/progmodes/glasses.el: Use lexical-binding. (glasses-separator, glasses-original-separator, glasses-face) (glasses-separate-parentheses-p) (glasses-separate-parentheses-exceptions) (glasses-separate-capital-groups, glasses-uncapitalize-p) (glasses-uncapitalize-regexp, glasses-convert-on-write-p): Remove redundant :group args. * test/lisp/progmodes/glasses-tests.el: New file with tests for glasses.el.
* Allow underscores in CSS variable namesSimen Heggestøyl2020-05-101-1/+1
| | | | | | | | | | | | | | * lisp/textmodes/css-mode.el (css-nmchar-re): Allow underscores in variable names (and in identifiers in general). * test/manual/indent/css-mode.css: Add some examples of variable names with underscores in them. * test/manual/indent/less-css-mode.less: Add some examples of variable names with underscores in them. * test/manual/indent/scss-mode.scss: Add some examples of variable names with underscores in them.