summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Tweak python-hideshow-forward-sexp-function warning avoidanceLars Ingebrigtsen2021-09-151-2/+1
| | | | | | | * lisp/progmodes/python.el (python-hideshow-forward-sexp-function): Avoid compilation warning in a more standard way. Problem reported in https://thedailywtf.com/articles/the-programmer-s-motto-and-other-comments
* Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2021-09-153-9/+11
|\
| * Avoid crashes due to clearing of a frame's face cacheEli Zaretskii2021-09-153-9/+11
| | | | | | | | | | | | | | | | | | * src/xfaces.c (clear_face_cache): Don't clear fonts and faces of a frame that is being redisplayed, just because it's time for some routine maintenance. (Bug#50571) * src/xdisp.c (redisplay_internal): * src/frame.h (struct frame) <inhibit_clear_image_cache>: Update commentary of using this struct member.
* | Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2021-09-151-4/+16
|\|
| * Avoid compiler warnings in comp.c on MS-WindowsEli Zaretskii2021-09-151-4/+16
| | | | | | | | | | | | * src/comp.c (DEF_DLL_FN, init_gccjit_functions): Don't load and don't define functions/macros if libgccjit doesn't have them, to avoid compiler warnings.
* | * lisp/net/tramp-sh.el (tramp-methods): <sudo>: Change template. (Bug#50594)Michael Albinus2021-09-151-4/+5
|/
* Faster grep pattern for identifiersMattias Engdegård2021-09-151-9/+2
| | | | | | | * lisp/cedet/semantic/symref/grep.el (semantic-symref-perform-search): Use the `-w` flag instead of wrapping the pattern in regexps that make matching much slower. This speeds up `xref-find-references` by about 3× on macOS.
* Update Unicode support to Unicode version 14.0.0Eli Zaretskii2021-09-1516-560/+1814
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/unidata/copyright.html: * admin/unidata/UnicodeData.txt: * admin/unidata/Blocks.txt: * admin/unidata/BidiBrackets.txt: * admin/unidata/BidiMirroring.txt: * admin/unidata/IVD_Sequences.txt: * admin/unidata/NormalizationTest.txt: * admin/unidata/SpecialCasing.txt: * test/manual/BidiCharacterTest.txt: Updated files from Unicode 14.0. * lisp/international/fontset.el (script-representative-chars): Add new scripts. (otf-script-alist): Update from latest version. (setup-default-fontset): Add new scripts. * lisp/international/characters.el: Update syntax and category tables for new characters and scripts. (char-width-table): Update for changes in Unicode 14.0. * lisp/international/mule-cmds.el (ucs-names): Update used and unused ranges per Unicode 14.0. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part1) (ucs-normalize-tests--failing-lines-part2): Update per the test results. * doc/lispref/nonascii.texi (Character Properties): Update Unicode version number. * etc/NEWS: Announce support for Unicode 14.0. * admin/notes/unicode: Minor copyedits.
* * doc/misc/flymake.texi: Fix @include docstyle.texiJoão Távora2021-09-151-1/+1
|
* Python shell: rearrange printing of newline before outputAugusto Stoffel2021-09-151-4/+8
| | | | | | | | | | * progmodes/python.el (python-shell-output-filter-in-progress) (python-shell-output-filter-buffer): Move defvars to avoid compiler warnings. (python-shell-eval-setup-code): Don't print a newline in __PYTHON_EL_eval. (python-shell-send-string): Insert newline before output when applicable (bug#50514).
* Make bookmark fringe marks evaporateLars Ingebrigtsen2021-09-151-1/+2
| | | | | | * lisp/bookmark.el (bookmark--set-fringe-mark): Make the bookmark evaporate when a buffer is erased (like, for instance, when doing `revert-buffer' in a vc buffer).
* Mention `lisp-data-mode' in `emacs-lisp-mode' doc stringLars Ingebrigtsen2021-09-152-0/+4
| | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Mention `lisp-data-mode'.
* Adjust occur-context-menu and elisp-context-menuJuri Linkov2021-09-152-7/+10
| | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-context-menu): Add separator only when there is a symbol at mouse click. * lisp/replace.el (occur-context-menu): Insert items in the middle of the menu after mark-whole-buffer.
* Add occur-related context-menu operations (bug#50552)Philip Kaludercic2021-09-151-0/+27
| | | | | | * replace.el (occur-word-at-mouse): Add new command. (occur-symbol-at-mouse): Add new command. (occur-context-menu): Add new function.
* * lisp/window.el (display-buffer-in-previous-window): Add symbolp (bug#50576)Juri Linkov2021-09-151-1/+2
|
* * lisp/tab-bar.el (tab-bar-close-other-tabs): Add arg ‘tab-number’.Juri Linkov2021-09-151-6/+21
| | | | | (tab-bar-mouse-context-menu): Bind menu-item "Close other tabs" to tab-bar-close-other-tabs with arg ‘tab-number’.
* * lisp/tab-bar.el: Rename args to consistent naming convention.Juri Linkov2021-09-151-65/+65
| | | | | | | | | | | | | | | | Use the same naming scheme for function arguments. Use the term "index" when arguments count from 0, and the term "number" when arguments count from 1. * lisp/tab-bar.el (tab-bar-select-tab): Rename ‘arg’ to ‘tab-number’. (tab-bar-move-tab-to): Rename ‘from-index’ to ‘from-number’ and ‘to-index’ to ‘to-number’. (tab-bar-move-tab-to-frame): Rename ‘from-index’ to ‘from-number’ and ‘to-index’ to ‘to-number’. (tab-bar-new-tab-to): Rename ‘to-index’ to ‘tab-number’. (tab-bar-close-tab): Rename ‘arg’ to ‘tab-number’ and ‘to-index’ to ‘to-number’. (tab-bar-rename-tab): Rename ‘arg’ to ‘tab-number’. (tab-bar-change-tab-group): Rename ‘arg’ to ‘tab-number’.
* * lisp/mh-e/mh-e.el: Simplify file commentary for a native package.Stephen Gildea2021-09-141-11/+2
|
* ; Add a noteDmitry Gutov2021-09-151-0/+2
|
* Localize namespace-filtering codeDmitry Gutov2021-09-152-191/+184
| | | | | | | | | | | | | | | | | To be able to filter results coming from elisp-xref-find-def-functions, and for general ease of understanding. * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): Undo the previous change. (xref-backend-apropos): Update accordingly. (elisp--xref-filter-definitions): New function. (xref-backend-definitions): Use it to post-filter the results coming from elisp--xref-find-definitions. * test/lisp/progmodes/elisp-mode-tests.el (find-defs-minor-defvar-c): New test. (find-defs-defun-defvar-el): Update test.
* verilog-mode.el: Update verilog-mode from upstream.Wilson Snyder2021-09-141-42/+54
| | | | | | | | | | | | | | | | | | * lisp/progmodes/verilog-mode.el: (verilog-basic-complete-re) (verilog-behavioral-block-beg-re, verilog-defun-keywords) (verilog-defun-level-generate-only-re, verilog-defun-level-re) (verilog-endcomment-reason-re, verilog-indent-re) (verilog-keywords, verilog-no-indent-begin-re) (verilog-set-auto-endcomments): Support Verilog-A `analog` blocks (#1738). Reported by Dan McMahill. (verilog-read-defines): Fix verilog-read-defines to work with SystemVerilog types (#1734). Reported by Shareef Jalloq. (verilog-indent-declaration, verilog-pretty-declarations): Fix leaving extra spaces before tabs on lining up declarations. (#1723) Reported by TAKAI Kousuke. (verilog-auto-inst, verilog-auto-inst-port) (verilog-read-auto-template-middle, verilog-read-sub-decls-line): Support AUTONOHOOKUP to not AUTOWIRE hookup AUTO_TEMPLATE signals. (#1526) Reported by firefoxtc.
* * test/Makefile.in (XDG_CONFIG_HOME): Don't export (bug#50577).Glenn Morris2021-09-141-1/+1
|
* * doc/misc/flymake.texi: Avoid xrefs in @copying.Glenn Morris2021-09-141-17/+20
| | | | | This isn't really what @copying is for, and doesn't work with makeinfo 4.13.
* Unbreak make bootstrap (don't use cl-defun's &aux parameters)João Távora2021-09-141-41/+40
| | | | * lisp/progmodes/flymake.el (flymake--handle-report): Don't use &aux.
* cperl-mode.el: Allow non-ASCII Perl identifiersHarald Jörg2021-09-143-100/+545
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace all "A-Z" regexp literals with unicode-aware rx constructs wherever Perl allows non-ASCII identifiers. * lisp/progmodes/cperl-mode.el (cperl-after-sub-regexp) (cperl-after-label. cperl-sniff-for-indent) (cperl-find-pods-heres, cperl-indent-exp) (cperl-fix-line-spacing, cperl-imenu--create-perl-index) (cperl-init-faces, cperl-find-tags): Replace ASCII regex literals by unicode-aware rx constructs. (cperl-init-faces): Eliminate unused lexical `font-lock-anchored'. (cperl-have-help-regexp, cperl-word-at-point-hard): Allow non-ASCII word characters. * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-fontify-special-variables): New test for $^T and $^{VARNAME}. (cperl-test-ws-rx cperl-test-ws+-rx), (cperl-test-version-regexp, cperl-test-package-regexp): Skip for perl-mode. (cperl-test-identifier-rx, cperl--test-unicode-setup) (cperl-test-unicode-labels, cperl-test-unicode-sub) (cperl-test-unicode-varname) (cperl-test-unicode-varname-list, cperl-test-unicode-arrays) (cperl-test-unicode-hashes, cperl-test-unicode-hashref) (cperl-test-unicode-proto, cperl-test-unicode-fhs) (cperl-test-unicode-hashkeys, cperl-test-word-at-point): New tests for unicode identifiers. (cperl-test-imenu-index): Add a unicode identifier to the test. * test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add a function with non-ASCII name for imenu tests.
* * lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Fix type.Glenn Morris2021-09-141-1/+1
|
* A further fix for toolbar visibility problems on macOS (bug#50534)Alan Third2021-09-141-5/+3
| | | | | * src/nsterm.m (ns_update_begin): Ensure the toolbar's visibility is set correctly.
* Fix recent changes in Flymake manualEli Zaretskii2021-09-141-23/+23
| | | | | | | * doc/misc/flymake.texi: Fix typos. Downcase the first word of each index entry, for more reliable sorting. (Starting Flymake, Finding diagnostics, Troubleshooting): Fix typos.
* Make `find-function-source-path' into obsolete aliasLars Ingebrigtsen2021-09-143-31/+34
| | | | | | | | | | | * lisp/finder.el (finder-commentary): Adjust usage. * lisp/emacs-lisp/find-func.el (find-function-source-path): Made into obsolete alias (bug#50508). (find-library-source-path): New name. (find-library-name, find-library, find-function-noselect) (find-variable-noselect, find-definition-noselect): Adjust usage and update doc strings.
* Re-organize and rewrite parts of the Flymake manualJoão Távora2021-09-141-92/+125
| | | | | | | | | | | bug#50244 * doc/misc/flymake.texi (Starting Flymake): New section. (Finding diagnostics): New section, now contains info previously in "Listing diagnostics" (Mode line status): Renamed from "Mode-line syntax check status" (Troubleshooting): Renamed from "Backend exceptions". (Flymake error types): Tweak phrasing.
* Add support for project-wide diagnostics in Flymake (bug#50244)João Távora2021-09-143-167/+545
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done with two new concepts: "foreign diagnostics" and "list-only diagnostics". The manual has been updated with a description of these new concepts. * doc/misc/flymake.texi (Flymake utility functions): Explain creation of foreign diagnostics. (Foreign and list-only diagnostics): New subsection. (Listing diagnostics): New subsection. * lisp/progmodes/flymake.el (Version): Bump to 1.2.1 (project): Require project. (flymake--diag): Add new slots 'orig-beg' and 'orig-end'. Rename 'buffer' slot to 'locus'. (flymake-make-diagnostic): Rework docstring. Accept stringp LOCUS arg. (flymake-diagnostic-beg, flymake-diagnostic-end) (flymake-diagnostic-buffer): Simplify definition. (flymake--equal-diagnostic-p): New helper (flymake--highlight-line): Rework. Accept FOREIGN arg. (flymake--state): Work docstring. Add new slot 'foreign-diags' (flymake--handle-report): Call flymake--update-diagnostics-listings. (flymake--handle-report): New helper. (flymake--mode): Forward declare. (flymake--handle-report): Rework for foreign diagnostics. (flymake-mode): When turning on, notice any Flymake diagnostics for current buffer. When turning off update diagnostics listings. (flymake-kill-buffer-hook): Turn off flymake explicitly before killing. (flymake--mode-line-counter): Use flymake-diagnostics to collect diagnostics. (flymake-show-diagnostic): Visit buffer of file-specific diagnostic. (flymake--tabulated-entries-1): New helper extracted from flymake--diagnostic-buffer-entries. (flymake--diagnostics-buffer-entries): Rework. (flymake--diagnostics-base-tabulated-list-format): New helper. (flymake--diagnostics-buffer-name): Adjust. (flymake-list-only-diagnostics): New variable. (flymake--project-diagnostic-list-project): New variable. (flymake--clear-list-only-diagnostics): New helper. (flymake-project-diagnostics-mode): New major mode. (flymake--project-diagnostics) (flymake--project-diagnostics-entries) (flymake--project-diagnostics-buffer): New helpers. (flymake-show-project-diagnostics): New command. (flymake--update-diagnostics-listings): New helper. (flymake-show-buffer-diagnostics): Renamed from flymake-diagnostics-buffer. * etc/NEWS: Mention change.
* Bump lisp/progmodes/project.el version to 0.7.1João Távora2021-09-141-1/+1
| | | | | | | Amont other things exposes the new project-buffers generic function to ELPA users. * lisp/progmodes/project.el (Version): Bump to 0.7.1
* Keep and report "foreign" diangnostics in flymake-cc Flymake backendJoão Távora2021-09-143-14/+32
| | | | | | | | | | | | | | | | This includes diagnostics for .h files that sprang up when checking a c file. Those diagnostics are reported to the Flymake infrastructure which does not (yet) do anything with them. This includes a change to the test fixtures, too. * lisp/progmodes/flymake-cc.el (flymake-cc--make-diagnostics): Rework * test/lisp/progmodes/flymake-resources/another-problematic-file.c: New file. * test/lisp/progmodes/flymake-resources/some-problems.h: Add a function declaration..
* Abbreviate Flymake backend name in flymake-show-diagnostics-bufferJoão Távora2021-09-141-0/+10
| | | | | * lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries): (flymake-diagnostics-buffer-mode): Report abbreviated backend, too.
* Unbreak M-x compile-defun of functions using flymake-logJoão Távora2021-09-141-1/+1
| | | | | * lisp/progmodes/flymake.el (flymake-log): Check if compilation unit is indeed a string before treating it as a file name.
* Refactor some Flymake functionsJoão Távora2021-09-141-91/+109
| | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake-diagnostic-buffer): New helper. (flymake-diagnostic-beg, flymake-diagnostic-end): Tweak docstring. (flymake--handle-report): Simplify. (flymake--publish-diagnostics): Helper for flymake--handle-report. (flymake--mode-line-counter, flymake-show-diagnostic) (flymake--diagnostics-buffer-entries): Use flymake-diagnostic-buffer, flymake-diagonstic-type, flymake-diagnostic-beg.
* Rename flymake--backend-state to flymake--stateJoão Távora2021-09-141-36/+36
| | | | | | | | | | | | | | | | | | | The previous name was confusing and akward and dreadful to type and read. * lisp/progmodes/flymake.el (flymake--state): Rename from flymake--backend-state. (flymake--with-backend-state): Use flymake--state. (flymake--handle-report): Use flymake--state. (flymake--collect): Use flymake--state. (flymake-running-backends): Use flymake--state. (flymake--disable-backend): Use flymake--state. (flymake--run-backend): Use flymake--state. (flymake-start): Use flymake--state. (flymake-mode): Use flymake--state. (flymake--mode-line-title): Use flymake--state. (flymake--mode-line-exception): Use flymake--state. (flymake--mode-line-counter): Use flymake--state.
* Project File Commands manual clarificationLars Ingebrigtsen2021-09-142-1/+4
| | | | | * doc/emacs/maintaining.texi (Project File Commands): Clarify what happens with the file name under point.
* Fix incorrectly appearing toolbar on NS (bug#50534)Alan Third2021-09-142-3/+2
| | | | | | | | | * src/nsmenu.m (update_frame_tool_bar): Ensure both sides of the test are booleans. * src/nsterm.m ([EmacsWindow createToolbar:]): Make the toolbar non-visible initially, in case things get out of sync. Remove call to update_frame_tool_bar: the window isn't yet associated with the view, so it will return immediately.
* Fix libgccjit detection on macOSAlan Third2021-09-141-30/+34
| | | | | * configure.ac: Combine the Homebrew and MacPorts detection so they will not create nonsense flags if both are installed.
* * lisp/tab-bar.el: Close tab only on mouse-1, not down-mouse-1 (bug#41343)Juri Linkov2021-09-141-10/+25
| | | | | | | | * lisp/tab-bar.el (tab-bar-mouse-select-tab): Don't close the tab when clicked on the close button. (tab-bar-mouse-close-tab-from-button): New function. (tab-bar-map): Bind [mouse-1] to 'tab-bar-mouse-close-tab-from-button'. (tab-bar-mouse-move-tab): Do nothing on non-tab events.
* ; * lisp/emacs-lisp/checkdoc.el: Fix typo in previous commit.Stefan Kangas2021-09-141-1/+1
|
* ; More minor docfixes found by checkdocStefan Kangas2021-09-1469-228/+228
|
* Add user option to avoid checkdoc warning for unescaped left parenStefan Kangas2021-09-142-10/+26
| | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-column-zero-backslash-before-paren): New user option to avoid warning on unescaped left parenthesis in column zero. (checkdoc-this-string-valid-engine): Respect above new option.
* Minor improvements to checkdocStefan Kangas2021-09-141-7/+9
| | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Add ignored values. (checkdoc-proper-noun-list): Remove XEmacs from list of words to capitalize; there is little need to insist on consistency here. (checkdoc-in-abbreviation-p): Add abbreviation "etc." and sort entries alphabetically.
* Use the term "future history" rather than "default"Dmitry Gutov2021-09-141-15/+21
| | | | | | | | | * lisp/progmodes/project.el (project-find-file, project-or-external-find-file): Update docstring. (project--read-file-cpd-relative, project--read-file-absolute) (project--completing-read-strict): Rename DEFAULT to MB-DEFAULT. (project-find-file-in): Rename FILENAME to SUGGESTED-FILENAME.
* Make sure to return some valid project rootDmitry Gutov2021-09-141-1/+4
| | | | | * lisp/progmodes/project.el (project-prompt-project-dir): If the user just pressed RET on prompt, prompt again.
* * lisp/progmodes/elisp-mode.el (elisp-context-menu): New function (bug#9054)Juri Linkov2021-09-131-1/+22
| | | | (emacs-lisp-mode): Add elisp-context-menu to context-menu-functions.
* * lisp/isearch.el: Improve 'isearch-allow-motion' feature (bug#50466)Juri Linkov2021-09-131-9/+20
| | | | | | | | | | | | | * lisp/isearch.el: Add recenter to 'isearch-motion' property of 'end-of-buffer' to maximize the number of search hits on the screen. In 'isearch-motion' property of 'scroll-up-command' use 'recenter 0' for the first line of the screen. (isearch-beginning-of-buffer) (isearch-end-of-buffer): Sync logic from 'isearch-allow-motion' part of isearch-pre-command-hook. Direct users to isearch-allow-motion in the docstrings. (isearch-pre-command-hook): Don't override shifted 'isearch-yank-on-move' in 'isearch-allow-motion'.
* Remove duplication of `find` file pattern argumentsMattias Engdegård2021-09-131-1/+1
| | | | | | * lisp/cedet/semantic/symref/grep.el (semantic-symref-derive-find-filepatterns): Avoid including the same pattern twice.