aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Clarify wording in my last commitStefan Kangas2020-05-191-1/+1
| | | | | | | | | | * lisp/mouse.el (mouse-drag-and-drop-region-show-tooltip): Clarify wording of integer option. Suggested by Eli Zaretskii.
* | Improve password-cache-add example in commentPaul Eggert2020-05-181-1/+2
| | | | | | | | | | * lisp/password-cache.el: Improve comment. See Andreas Schwab in: https://lists.gnu.org/r/emacs-devel/2020-05/msg02422.html
* | Redo RCS Id for pdumperPaul Eggert2020-05-181-4/+0
| | | | | | | | | | | | * lisp/version.el: Don’t put an RCS Id style string into the executable via purecopy, as this does not work with the pdumper. * src/emacs.c (RCS_Id): New constant, for 'ident'.
* | CC Mode: Allow "static" etc. to be placed after a declaration's type nameAlan Mackenzie2020-05-181-2/+8
| | | | | | | | | | | | | | Fixes bug #41284. * lisp/progmodes/cc-langs.el (c-type-decl-prefix-key): include additionally c-modifier-kwds in the set of keywords at the base of this lang-const.
* | Use lexical-binding in webjump.el and add testsSimen Heggestøyl2020-05-181-3/+2
| | | | | | | | | | | | | | * lisp/net/webjump.el: Use lexical-binding. (webjump-read-url-choice): Remove redundant 'function' around lambda. * test/lisp/net/webjump-tests.el: New file with tests for webjump.el.
* | Fix calculator entry of numbers with negative exponents (bug#41347)Mattias Engdegård2020-05-181-6/+4
| | | | | | | | | | | | | | * lisp/calculator.el (calculator-string-to-number): Remove obsolete string transformations preventing entry of 1e-3 etc. Keep one transformation to allow entry of "1.e3". Reported by Chris Zheng.
* | Update the package versionDmitry Gutov2020-05-181-5/+9
| | | | | | | | | | | | * lisp/progmodes/project.el: Update the package version. (project-vc-merge-submodules): Update the docstring. (project-try-vc): Add a FIXME.
* | Add user option project-vc-merge-submodulesDmitry Gutov2020-05-181-24/+39
| | | | | | | | | | | | | | * lisp/progmodes/project.el (project-vc): Update the docstring. (project-vc-merge-submodules): New user option. (project-try-vc): Use it. (project--submodule-p): Extract from project-try-vc.
* | vc-working-revision: Bind default-directoryDmitry Gutov2020-05-181-1/+1
| | | | | | | | | | | | | | * lisp/vc/vc-hooks.el (vc-working-revision): Bind default-directory to be on the safe side. Suggested by Ilya Ostapyshyn (https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02301.html).
* | Don’t attempt to modify constant stringsPaul Eggert2020-05-172-7/+12
| | | | | | | | | | | | | | These attempts were found by ‘make compile-always’. * lisp/language/tibet-util.el (tibetan-obsolete-glyphs): * lisp/org/org-agenda.el (org-agenda-get-restriction-and-command): Don’t try to modify string constants.
* | Fix minor issues with mouse-drag-and-drop-region-show-tooltipStefan Kangas2020-05-171-3/+7
| | | | | | | | | | | | | | | | | | * lisp/mouse.el (mouse-drag-and-drop-region-show-tooltip): Fix defcustom type to allow all valid values. Suggested by David Ponce. (Bug#41351) (mouse-drag-and-drop-region): Fix bug where setting `drag-and-drop-region-show-tooltip' to 0 would still show a tooltip.
* | Don’t attempt to modify constant stringsPaul Eggert2020-05-164-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/bookmark.el (bookmark-bmenu-set-header): Use copy-sequence instead of concat, for clarity. Also, the byte-compiler optimizes (concat "a" "b") into "ab". * lisp/button.el (make-text-button): * test/lisp/erc/erc-track-tests.el (erc-track--erc-faces-in): * test/lisp/password-cache-tests.el: (password-cache-tests-add-and-remove) (password-cache-tests-read-from-cache) (password-cache-tests-in-cache-p, password-cache-tests-read) (password-cache-tests-reset) (password-cache-tests-add/expires-key) (password-cache-tests-no-password-cache): Don’t attempt to modify constant strings. * lisp/progmodes/elisp-mode.el (elisp--xref-format) (elisp--xref-format-extra): Don’t attempt to modify constant strings via put-text-property. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-across-ref): Don’t attempt to modify constant vectors or strings.
* | ; Bump the project.el version to trigger a new releaseDmitry Gutov2020-05-171-1/+1
| |
* | Don’t attempt to modify constant consesPaul Eggert2020-05-166-24/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From a patch privately suggested by Mattias Engdegård on 2020-05-11 in a followup to Bug#40671. * admin/charsets/cp51932.awk: * admin/charsets/eucjp-ms.awk: Generate code that does not modify constant conses. * doc/misc/emacs-mime.texi (Encoding Customization): * lisp/emacs-lisp/byte-opt.el (byte-compile-side-effect-free-ops): * lisp/frameset.el (frameset-persistent-filter-alist): * lisp/gnus/gnus-sum.el (gnus-article-mode-line-format-alist): Use append instead of nconc. * lisp/language/japanese.el (japanese-ucs-cp932-to-jis-map) (jisx0213-to-unicode): Use mapcar instead of mapc. * lisp/language/lao-util.el (lao-transcription-consonant-alist) (lao-transcription-vowel-alist): * lisp/language/tibetan.el (tibetan-subjoined-transcription-alist): Use copy-sequence. * test/src/fns-tests.el (fns-tests-nreverse): (fns-tests-sort, fns-tests-collate-sort) (fns-tests-string-version-lessp, fns-tests-mapcan): Use copy-sequence, vector, and list.
* | Merge from origin/emacs-27Glenn Morris2020-05-164-10/+10
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b4937f64cd (origin/emacs-27) Improve documentation of manually instal... efd4e973a4 Reflect the emacs-devel ELPA/MELPA dispute in FAQ 28541674cd Consider face inheritance when checking region face backgr... e75f6be6cc Fix dired default file operation (bug#41261) 406fb0746c Fix documentation related to 'command-switch-alist'. 747e0a2523 Improve ediff readability in misterioso theme (Bug#41221) 48830c73e7 Fix a crash in handle_display_spec a37290a6f9 In x_hide_tip reset tip_last_frame for GTK+ tooltips only ... 3d81995692 Fix docstring of flymake-make-diagnostic (bug#40351) 632aa9d57a Go back to “Bahá’í” e2406ff60f * lisp/dired.el (dired-toggle-marks): Doc fix. (Bug#41097) # Conflicts: # doc/emacs/building.texi
| * Consider face inheritance when checking region face background.Tassilo Horn2020-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | Some themes (like dracula) make the region face inherit from some other face. If the background color of the region was inherited, `indicate-copied-region' did the switch-point-and-mark-twice dance which is not visible in case the region is highlighted. It just looked like Emacs would hang for a second after M-w. * lisp/simple.el (indicate-copied-region): Consider face inheritance when checking region face background.
| * Fix dired default file operation (bug#41261)Leo Vivier2020-05-151-4/+3
| | | | | | | | | | * lisp/dired-aux.el (dired-dwim-target-directories): Restore pre-emacs-27 behavior of 'dired-dwim-target'.
| * Fix docstring of flymake-make-diagnostic (bug#40351)João Távora2020-05-121-3/+4
| | | | | | | | * lisp/progmodes/flymake.el (flymake-make-diagnostic): Fix docstring
| * * lisp/dired.el (dired-toggle-marks): Doc fix. (Bug#41097)Eli Zaretskii2020-05-101-2/+2
| |
* | Remove stale commentsStefan Kangas2020-05-162-6/+0
| | | | | | | | | | | | * lisp/printing.el (pr-create-interface): * lisp/progmodes/ebnf2ps.el (ebnf-eps-filename, ebnf-trim-right): Remove old comments about Emacs 21/22 compatibility.
* | 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-modebug27952_combine-tar-grind-file-mode_archive-int-to-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”.