]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAllow irc network symbols in erc-autojoin-channels-alist
Kevin Brubeck Unhammer [Thu, 16 Sep 2021 13:48:28 +0000 (15:48 +0200)]
Allow irc network symbols in erc-autojoin-channels-alist

* lisp/erc/erc-join.el (erc-autojoin-channels-alist): Explain the
extension.
(erc-autojoin-server-match): New function.
(erc-autojoin-channels): Use it.
(erc-autojoin-current-server): New function.
(erc-autojoin-add): Use it.
(erc-autojoin-remove): Ditto.

This can be useful when connecting to an IRC proxy like Weechat that
relays several networks under the same server. If we just keyed on the
server name, we would end up joining a channel on all networks
whenever we join one network on that server.

Networks are simply stored as symbols instead of regexes, since that's
how `erc-network' works.

The `erc-autojoin-add' function will still auto-add servers as strings
if the network doesn't have at least one entry in
`erc-autojoin-channels-alist'.

3 years ago; Normalize some header comments
Stefan Kangas [Thu, 16 Sep 2021 13:35:10 +0000 (15:35 +0200)]
; Normalize some header comments

3 years agoPrefer "website" to "homepage"
Stefan Kangas [Thu, 16 Sep 2021 13:33:35 +0000 (15:33 +0200)]
Prefer "website" to "homepage"

These days, a "home page" is understood to be only "the main web page
of a website" or "landing page", whereas a "website" is "a collection
of web pages and related content" (Wikipedia).

* doc/emacs/emacs.texi (Top):
* doc/emacs/package.texi (Package Menu):
* doc/lispintro/emacs-lisp-intro.texi (Top):
* doc/lispref/elisp.texi (Top):
* doc/lispref/tips.texi (Documentation Tips):
* doc/misc/ede.texi (ede-project):
* doc/misc/efaq-w32.texi (More information):
* doc/misc/gnus-faq.texi (FAQ 5-7):
* doc/misc/gnus.texi (About mairix):
* doc/misc/mairix-el.texi (About):
* doc/misc/reftex.texi (AUCTeX, Imprint):
* lisp/cedet/ede/base.el (ede-project):
* lisp/cedet/ede/system.el (ede-web-browse-home):
* lisp/emacs-lisp/package.el (package-menu-mode-menu)
(package-browse-url):
* lisp/erc/erc-button.el (erc-emacswiki-url):
* lisp/filesets.el (filesets-goto-homepage):
* lisp/net/mairix.el:
* lisp/net/webjump.el (webjump-sample-sites):
* lisp/obsolete/vc-arch.el:
* lisp/progmodes/idlw-shell.el (idlwave-shell-mode):
* lisp/progmodes/idlwave.el (idlwave, idlwave-mode):
* lisp/textmodes/reftex-vars.el (reftex):
Prefer "website" to "home page".

* doc/lispref/tips.texi (Documentation Tips):
Sort the "URL" header comment before "Homepage".

* lisp/emacs-lisp/lisp-mnt.el
(lm-website): Rename from 'lm-homepage'.
(lm-homepage): Make into alias for 'lm-website'.

3 years agoChange the erc debug logging format to be more repeatable
F. Jason Park [Thu, 16 Sep 2021 13:35:55 +0000 (15:35 +0200)]
Change the erc debug logging format to be more repeatable

* erc.el (erc-debug-irc-protocol): Fix line-ending mismatch between
incoming and outgoing logger lines without changing interface. Do this
by adding carriage returns to the latter to improve machine
readability. Change printed peer labels to most accurately reflect
logical endpoints.

(erc-debug-irc-protocol-time-format): Add new variable to support
timestamps in protocol logger output.

(erc-debug-irc-protocol-version): Add new variable to help tooling
track logging format independent of ERC and Emacs versions.

(erc-toggle-debug-irc-protocol): Add headers to protocol-log buffer
to aid future bug-reproduction tools. Clean up overlong lines (bug#50009).

3 years agoFix erc nick trimming
F. Jason Park [Thu, 16 Sep 2021 13:25:18 +0000 (15:25 +0200)]
Fix erc nick trimming

* lisp/erc/erc.el (erc-lurker-maybe-trim): Prevent warning from
showing up in third-party code using this function by autoloading
rx.el when needed.  Remove trailing chars appended for uniquifying
purposes when a nick is already taken. Special thanks to Mattias
Engdegård for making this more respectable (Bug#50005).

* test/lisp/erc/erc-tests.el: Add tests for the above and require
erc-networks.

3 years agoFix mistake in test for erc-ring-previous-command
F. Jason Park [Thu, 16 Sep 2021 13:20:59 +0000 (15:20 +0200)]
Fix mistake in test for erc-ring-previous-command

* test/lisp/erc/erc-tests.el (erc-ring-previous-command):
The variable erc-send-completed-hook was previously set to nil
permanently, which would affect other tests (bug#50005).

3 years agoDo interactive mode tagging for play/*.el
Stefan Kangas [Thu, 16 Sep 2021 12:47:51 +0000 (14:47 +0200)]
Do interactive mode tagging for play/*.el

3 years ago; * src/minibuf.c (Ftest_completion): Clarify doc string.
Eli Zaretskii [Thu, 16 Sep 2021 12:37:22 +0000 (15:37 +0300)]
; * src/minibuf.c (Ftest_completion): Clarify doc string.

3 years agoClarify use of early-init file
Eli Zaretskii [Thu, 16 Sep 2021 12:34:36 +0000 (15:34 +0300)]
Clarify use of early-init file

* doc/emacs/custom.texi (Early Init File): Clarify that using the
early-init file should be reserved to cases where it is absolutely
necessary.  (Bug#50491)

3 years agoClarify test-completion doc string
Lars Ingebrigtsen [Thu, 16 Sep 2021 12:18:30 +0000 (14:18 +0200)]
Clarify test-completion doc string

* src/minibuf.c (Ftest_completion): Clarify what it means to be a
valid completion (bug#50583).

3 years agoRemove references to dead packages
Stefan Kangas [Thu, 16 Sep 2021 11:58:38 +0000 (13:58 +0200)]
Remove references to dead packages

* etc/themes/manoj-dark-theme.el: Delete references to colortheme and
emacs-goodies.

3 years agoMake a redundant idlwave variable obsolete
Stefan Kangas [Thu, 16 Sep 2021 09:48:08 +0000 (11:48 +0200)]
Make a redundant idlwave variable obsolete

* lisp/progmodes/idlw-help.el (idlwave-help-browse-url-available):
Make obsolete.
(idlwave-help-check-locations): Don't use above variable.

3 years agoVarious minor checkdoc tweaks
Stefan Kangas [Thu, 16 Sep 2021 09:31:42 +0000 (11:31 +0200)]
Various minor checkdoc tweaks

* lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Add more
"good" words that are used a lot in practice, and where using them
doesn't really hurt the quality of the documentation.
(checkdoc-proper-noun-list): Add "dired", remove "ispell"; the
latter should not always be capitalized.
(checkdoc-common-verbs-wrong-voice): Add some more common words.
Don't check for "matches" as it leads to too many false positives and
almost no fixes in practice.
(checkdoc-this-string-valid-engine): Clarify comment.
(checkdoc-in-abbreviation-p): Ignore some less common or non-standard
abbreviations.

3 years agoDoc fix for y-or-n-p; trailing space is no longer needed
Stefan Kangas [Thu, 16 Sep 2021 07:23:51 +0000 (09:23 +0200)]
Doc fix for y-or-n-p; trailing space is no longer needed

* doc/lispref/minibuf.texi (Yes-or-No Queries):
* doc/lispref/os.texi (Suspending Emacs):
* doc/lispref/tips.texi (Programming Tips):
* doc/misc/gnus-faq.texi (FAQ 5-9):
* lisp/subr.el (y-or-n-p):
* src/fns.c (Fyes_or_no_p): Doc fix to reflect that a trailing space
is no longer needed; one is added or removed automatically.

3 years ago* doc/misc/pgg.texi: Clarify that its obsolete in the menu entry.
Stefan Kangas [Thu, 16 Sep 2021 00:33:08 +0000 (02:33 +0200)]
* doc/misc/pgg.texi: Clarify that its obsolete in the menu entry.

3 years agoRemove function obsolete since 22.1
Stefan Kangas [Wed, 15 Sep 2021 21:13:32 +0000 (23:13 +0200)]
Remove function obsolete since 22.1

* lisp/erc/erc-networks.el (erc-current-network): Remove function
obsolete since Emacs 22.1.

3 years ago; * etc/NEWS: Fix typo.
Basil L. Contovounesios [Wed, 15 Sep 2021 20:57:19 +0000 (21:57 +0100)]
; * etc/NEWS: Fix typo.

3 years agoDocumentation followup to a recent commit
Eli Zaretskii [Wed, 15 Sep 2021 19:01:21 +0000 (22:01 +0300)]
Documentation followup to a recent commit

* doc/lispref/tips.texi (Documentation Tips): Make the wording of
recommendation not to over-use \\[..] more future-proof.
(Bug#50599)

3 years agoEvaluate recent isearch-motion lambdas
Basil L. Contovounesios [Wed, 15 Sep 2021 18:37:08 +0000 (19:37 +0100)]
Evaluate recent isearch-motion lambdas

* lisp/isearch.el (beginning-of-buffer, end-of-buffer)
(scroll-up-command, scroll-down-command): Evaluate the lambdas
inside the isearch-motion properties of these commands.

3 years agocheckdoc: Don't warn about command substitutions by default
Stefan Kangas [Wed, 15 Sep 2021 06:18:20 +0000 (08:18 +0200)]
checkdoc: Don't warn about command substitutions by default

* lisp/emacs-lisp/checkdoc.el (checkdoc-max-keyref-before-warn):
Add new valid value nil meaning to never warn about too many command
substitutions, and use this value as the default.  This is no longer a
performance problem on modern machines.  (Bug#50599)
(checkdoc-this-string-valid-engine): Respect above new valid value
nil.

3 years ago* lisp/tab-line.el: Add context menu bound to down-mouse-3 like on tab bar.
Juri Linkov [Wed, 15 Sep 2021 16:09:33 +0000 (19:09 +0300)]
* lisp/tab-line.el: Add context menu bound to down-mouse-3 like on tab bar.

* lisp/tab-line.el: Bind tab-line down-mouse-3 to tab-line-context-menu.
(tab-line-tab-map): Rebind tab-line-select-tab from mouse-1 to down-mouse-1.
Bind down-mouse-3 to tab-line-tab-context-menu.
(tab-line-add-map): Rebind tab-line-new-tab from mouse-1 to down-mouse-1.
(tab-line-left-map, tab-line-right-map): Rebind mouse-1 to down-mouse-1.
(tab-line-tab-context-menu, tab-line-context-menu): New functions.
(tab-line-hscroll-right, tab-line-hscroll-left)
(tab-line-new-tab, tab-line-select-tab)
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab)
(tab-line-close-tab): Rename event args to 'event'.

3 years ago* lisp/tab-bar.el (tab-bar-format): Add new option tab-bar-format-menu-global
Juri Linkov [Wed, 15 Sep 2021 16:03:13 +0000 (19:03 +0300)]
* lisp/tab-bar.el (tab-bar-format): Add new option tab-bar-format-menu-global

(tab-bar-format-menu-global): New function.

3 years agoAdd docstrings to context menu functions, and add middle-separator
Juri Linkov [Wed, 15 Sep 2021 16:00:56 +0000 (19:00 +0300)]
Add docstrings to context menu functions, and add middle-separator

* lisp/mouse.el (context-menu-functions): Add context-menu-middle-separator
to default values.
(context-menu-middle-separator): New function.

* lisp/replace.el (occur-context-menu): Use middle-separator.

* lisp/progmodes/elisp-mode.el (elisp-context-menu):
* lisp/progmodes/prog-mode.el (prog-context-menu):
Use middle-separator and reorder menu items correspondingly.

3 years agoMerge branch 'feature/rcirc-update'
Philip Kaludercic [Wed, 15 Sep 2021 15:36:19 +0000 (17:36 +0200)]
Merge branch 'feature/rcirc-update'

3 years agoTweak python-hideshow-forward-sexp-function warning avoidance
Lars Ingebrigtsen [Wed, 15 Sep 2021 13:53:53 +0000 (15:53 +0200)]
Tweak python-hideshow-forward-sexp-function warning avoidance

* 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

3 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 15 Sep 2021 13:16:27 +0000 (15:16 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

3 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 15 Sep 2021 13:15:53 +0000 (15:15 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

3 years agoAvoid crashes due to clearing of a frame's face cache
Eli Zaretskii [Wed, 15 Sep 2021 13:14:30 +0000 (16:14 +0300)]
Avoid crashes due to clearing of a frame's face cache

* 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.

3 years ago* lisp/net/tramp-sh.el (tramp-methods): <sudo>: Change template. (Bug#50594)
Michael Albinus [Wed, 15 Sep 2021 13:14:24 +0000 (15:14 +0200)]
* lisp/net/tramp-sh.el (tramp-methods): <sudo>: Change template.  (Bug#50594)

3 years agoAvoid compiler warnings in comp.c on MS-Windows
Eli Zaretskii [Wed, 15 Sep 2021 13:09:45 +0000 (16:09 +0300)]
Avoid compiler warnings in comp.c on MS-Windows

* 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.

3 years agoFaster grep pattern for identifiers
Mattias Engdegård [Wed, 15 Sep 2021 11:47:15 +0000 (13:47 +0200)]
Faster grep pattern for identifiers

* 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.

3 years agoUpdate Unicode support to Unicode version 14.0.0
Eli Zaretskii [Wed, 15 Sep 2021 11:40:13 +0000 (14:40 +0300)]
Update Unicode support to Unicode version 14.0.0

* 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.

3 years ago* doc/misc/flymake.texi: Fix @include docstyle.texi
João Távora [Wed, 15 Sep 2021 09:22:26 +0000 (10:22 +0100)]
* doc/misc/flymake.texi: Fix @include docstyle.texi

3 years agoPython shell: rearrange printing of newline before output
Augusto Stoffel [Wed, 15 Sep 2021 08:02:34 +0000 (10:02 +0200)]
Python shell: rearrange printing of newline before output

* 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).

3 years agoMake bookmark fringe marks evaporate
Lars Ingebrigtsen [Wed, 15 Sep 2021 07:58:41 +0000 (09:58 +0200)]
Make bookmark fringe marks evaporate

* 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).

3 years agoMention `lisp-data-mode' in `emacs-lisp-mode' doc string
Lars Ingebrigtsen [Tue, 14 Sep 2021 12:58:37 +0000 (14:58 +0200)]
Mention `lisp-data-mode' in `emacs-lisp-mode' doc string

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Mention
`lisp-data-mode'.

3 years agoAdjust occur-context-menu and elisp-context-menu
Juri Linkov [Wed, 15 Sep 2021 07:20:42 +0000 (10:20 +0300)]
Adjust occur-context-menu and elisp-context-menu

* 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.

3 years agoAdd occur-related context-menu operations (bug#50552)
Philip Kaludercic [Wed, 15 Sep 2021 07:13:53 +0000 (10:13 +0300)]
Add occur-related context-menu operations (bug#50552)

* replace.el (occur-word-at-mouse): Add new command.
(occur-symbol-at-mouse): Add new command.
(occur-context-menu): Add new function.

3 years ago* lisp/window.el (display-buffer-in-previous-window): Add symbolp (bug#50576)
Juri Linkov [Wed, 15 Sep 2021 06:47:58 +0000 (09:47 +0300)]
* lisp/window.el (display-buffer-in-previous-window): Add symbolp (bug#50576)

3 years ago* lisp/tab-bar.el (tab-bar-close-other-tabs): Add arg ‘tab-number’.
Juri Linkov [Wed, 15 Sep 2021 06:30:11 +0000 (09:30 +0300)]
* lisp/tab-bar.el (tab-bar-close-other-tabs): Add arg ‘tab-number’.

(tab-bar-mouse-context-menu): Bind menu-item "Close other tabs" to
tab-bar-close-other-tabs with arg ‘tab-number’.

3 years ago* lisp/tab-bar.el: Rename args to consistent naming convention.
Juri Linkov [Wed, 15 Sep 2021 06:27:57 +0000 (09:27 +0300)]
* lisp/tab-bar.el: Rename args to consistent naming convention.

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’.

3 years ago* lisp/mh-e/mh-e.el: Simplify file commentary for a native package.
Stephen Gildea [Wed, 15 Sep 2021 03:26:42 +0000 (20:26 -0700)]
* lisp/mh-e/mh-e.el: Simplify file commentary for a native package.

3 years ago; Add a note
Dmitry Gutov [Wed, 15 Sep 2021 02:51:24 +0000 (05:51 +0300)]
; Add a note

3 years agoLocalize namespace-filtering code
Dmitry Gutov [Wed, 15 Sep 2021 02:33:06 +0000 (05:33 +0300)]
Localize namespace-filtering code

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.

3 years agoverilog-mode.el: Update verilog-mode from upstream.
Wilson Snyder [Wed, 15 Sep 2021 01:21:03 +0000 (21:21 -0400)]
verilog-mode.el: Update verilog-mode from upstream.

* 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.

3 years ago* test/Makefile.in (XDG_CONFIG_HOME): Don't export (bug#50577).
Glenn Morris [Tue, 14 Sep 2021 23:27:42 +0000 (16:27 -0700)]
* test/Makefile.in (XDG_CONFIG_HOME): Don't export (bug#50577).

3 years ago* doc/misc/flymake.texi: Avoid xrefs in @copying.
Glenn Morris [Tue, 14 Sep 2021 21:27:41 +0000 (14:27 -0700)]
* doc/misc/flymake.texi: Avoid xrefs in @copying.

This isn't really what @copying is for, and doesn't work with
makeinfo 4.13.

3 years agoFix interactive forms for rcirc-define-command
Philip Kaludercic [Tue, 14 Sep 2021 20:10:14 +0000 (22:10 +0200)]
Fix interactive forms for rcirc-define-command

* rcirc.el (rcirc-define-command): Handle string descriptors correctly

3 years agoUnset mode-line-process for all buffers on reconnecting
Philip Kaludercic [Tue, 14 Sep 2021 18:41:27 +0000 (20:41 +0200)]
Unset mode-line-process for all buffers on reconnecting

* rcirc.el (rcirc-sentinel): Add loop over all managed buffers

3 years agoRestore rcirc-target if possible
Philip Kaludercic [Tue, 14 Sep 2021 18:32:46 +0000 (20:32 +0200)]
Restore rcirc-target if possible

* rcirc.el (rcirc-process-message): Extract target from buffer name

3 years agoUnbreak make bootstrap (don't use cl-defun's &aux parameters)
João Távora [Tue, 14 Sep 2021 18:22:28 +0000 (19:22 +0100)]
Unbreak make bootstrap (don't use cl-defun's &aux parameters)

* lisp/progmodes/flymake.el (flymake--handle-report): Don't use &aux.

3 years agoDisplay server buffer after connecting
Philip Kaludercic [Tue, 14 Sep 2021 17:07:18 +0000 (19:07 +0200)]
Display server buffer after connecting

* rcirc.el (rcirc-display-server-buffer): Add new option
(rcirc): Respect rcirc-display-server-buffer

3 years agoAllow for multiple attempts when reconnecting
Philip Kaludercic [Tue, 14 Sep 2021 17:05:12 +0000 (19:05 +0200)]
Allow for multiple attempts when reconnecting

* doc/misc/rcirc.texi (rcirc commands): Mention rcirc-reconnect-attempts
* etc/NEWS: Document change
(rcirc-connect): Ensure no other process exists
(rcirc-reconnect-attempts): Add option
(rcirc-failed-attempts): Add local variable
(rcirc-reconnection-timer): Add local variable
(rcirc-reconnect): Add function
(rcirc-sentinel): Manage multiple reconnection attempts
(rcirc-process-server-response): Change user for error messages
(rcirc-mode): Don't set rcirc-last-connect-time
(reconnect): Extract functionality to rcirc-reconnect

3 years ago* rcirc.texi (Hacking and Tweaking): Add missing section to menu
Philip Kaludercic [Mon, 13 Sep 2021 17:08:28 +0000 (19:08 +0200)]
* rcirc.texi (Hacking and Tweaking): Add missing section to menu

3 years ago* rcirc.el (rcirc-server-alist): Add #emacs to default server list
Philip Kaludercic [Mon, 13 Sep 2021 15:23:23 +0000 (17:23 +0200)]
* rcirc.el (rcirc-server-alist): Add #emacs to default server list

Author:

3 years agocperl-mode.el: Allow non-ASCII Perl identifiers
Harald Jörg [Tue, 14 Sep 2021 15:53:52 +0000 (17:53 +0200)]
cperl-mode.el: Allow non-ASCII Perl identifiers

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.

3 years ago* lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Fix type.
Glenn Morris [Tue, 14 Sep 2021 15:05:29 +0000 (08:05 -0700)]
* lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Fix type.

3 years agoA further fix for toolbar visibility problems on macOS (bug#50534)
Alan Third [Tue, 14 Sep 2021 12:03:37 +0000 (13:03 +0100)]
A further fix for toolbar visibility problems on macOS (bug#50534)

* src/nsterm.m (ns_update_begin): Ensure the toolbar's visibility is
set correctly.

3 years agoFix recent changes in Flymake manual
Eli Zaretskii [Tue, 14 Sep 2021 13:47:40 +0000 (16:47 +0300)]
Fix recent changes in Flymake manual

* 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.

3 years agoMake `find-function-source-path' into obsolete alias
Lars Ingebrigtsen [Tue, 14 Sep 2021 11:44:15 +0000 (13:44 +0200)]
Make `find-function-source-path' into obsolete alias

* 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.

3 years agoRe-organize and rewrite parts of the Flymake manual
João Távora [Sun, 12 Sep 2021 21:16:35 +0000 (22:16 +0100)]
Re-organize and rewrite parts of the Flymake manual

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.

3 years agoAdd support for project-wide diagnostics in Flymake (bug#50244)
João Távora [Wed, 1 Sep 2021 22:45:53 +0000 (23:45 +0100)]
Add support for project-wide diagnostics in Flymake (bug#50244)

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.

3 years agoBump lisp/progmodes/project.el version to 0.7.1
João Távora [Mon, 13 Sep 2021 16:43:43 +0000 (17:43 +0100)]
Bump lisp/progmodes/project.el version to 0.7.1

Amont other things exposes the new project-buffers generic function to
ELPA users.

* lisp/progmodes/project.el (Version): Bump to 0.7.1

3 years agoKeep and report "foreign" diangnostics in flymake-cc Flymake backend
João Távora [Mon, 30 Aug 2021 15:24:25 +0000 (16:24 +0100)]
Keep and report "foreign" diangnostics in flymake-cc Flymake backend

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..

3 years agoAbbreviate Flymake backend name in flymake-show-diagnostics-buffer
João Távora [Fri, 3 Sep 2021 18:03:51 +0000 (19:03 +0100)]
Abbreviate Flymake backend name in flymake-show-diagnostics-buffer

* lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries):
(flymake-diagnostics-buffer-mode): Report abbreviated backend, too.

3 years agoUnbreak M-x compile-defun of functions using flymake-log
João Távora [Tue, 31 Aug 2021 17:32:58 +0000 (18:32 +0100)]
Unbreak M-x compile-defun of functions using flymake-log

* lisp/progmodes/flymake.el (flymake-log): Check if compilation unit
  is indeed a string before treating it as a file name.

3 years agoRefactor some Flymake functions
João Távora [Tue, 31 Aug 2021 17:43:12 +0000 (18:43 +0100)]
Refactor some Flymake functions

* 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.

3 years agoRename flymake--backend-state to flymake--state
João Távora [Sun, 29 Aug 2021 21:35:46 +0000 (22:35 +0100)]
Rename flymake--backend-state to flymake--state

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.

3 years agoProject File Commands manual clarification
Lars Ingebrigtsen [Tue, 14 Sep 2021 11:21:47 +0000 (13:21 +0200)]
Project File Commands manual clarification

* doc/emacs/maintaining.texi (Project File Commands): Clarify what
happens with the file name under point.

3 years agoFix incorrectly appearing toolbar on NS (bug#50534)
Alan Third [Mon, 13 Sep 2021 19:09:22 +0000 (20:09 +0100)]
Fix incorrectly appearing toolbar on NS (bug#50534)

* 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.

3 years agoFix libgccjit detection on macOS
Alan Third [Thu, 9 Sep 2021 21:33:01 +0000 (22:33 +0100)]
Fix libgccjit detection on macOS

* configure.ac: Combine the Homebrew and MacPorts detection so they
will not create nonsense flags if both are installed.

3 years ago* lisp/tab-bar.el: Close tab only on mouse-1, not down-mouse-1 (bug#41343)
Juri Linkov [Tue, 14 Sep 2021 06:42:11 +0000 (09:42 +0300)]
* lisp/tab-bar.el: Close tab only on mouse-1, not down-mouse-1 (bug#41343)

* 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.

3 years ago; * lisp/emacs-lisp/checkdoc.el: Fix typo in previous commit.
Stefan Kangas [Tue, 14 Sep 2021 06:15:15 +0000 (08:15 +0200)]
; * lisp/emacs-lisp/checkdoc.el: Fix typo in previous commit.

3 years ago; More minor docfixes found by checkdoc
Stefan Kangas [Tue, 14 Sep 2021 05:55:56 +0000 (07:55 +0200)]
; More minor docfixes found by checkdoc

3 years agoAdd user option to avoid checkdoc warning for unescaped left paren
Stefan Kangas [Mon, 13 Sep 2021 19:57:13 +0000 (21:57 +0200)]
Add user option to avoid checkdoc warning for unescaped left paren

* 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.

3 years agoMinor improvements to checkdoc
Stefan Kangas [Mon, 13 Sep 2021 05:17:50 +0000 (07:17 +0200)]
Minor improvements to checkdoc

* 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.

3 years agoUse the term "future history" rather than "default"
Dmitry Gutov [Mon, 13 Sep 2021 21:56:20 +0000 (00:56 +0300)]
Use the term "future history" rather than "default"

* 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.

3 years agoMake sure to return some valid project root
Dmitry Gutov [Mon, 13 Sep 2021 21:53:05 +0000 (00:53 +0300)]
Make sure to return some valid project root

* lisp/progmodes/project.el (project-prompt-project-dir):
If the user just pressed RET on prompt, prompt again.

3 years ago* lisp/progmodes/elisp-mode.el (elisp-context-menu): New function (bug#9054)
Juri Linkov [Mon, 13 Sep 2021 18:41:24 +0000 (21:41 +0300)]
* lisp/progmodes/elisp-mode.el (elisp-context-menu): New function (bug#9054)

(emacs-lisp-mode): Add elisp-context-menu to context-menu-functions.

3 years ago* lisp/isearch.el: Improve 'isearch-allow-motion' feature (bug#50466)
Juri Linkov [Mon, 13 Sep 2021 18:18:30 +0000 (21:18 +0300)]
* lisp/isearch.el: Improve 'isearch-allow-motion' feature (bug#50466)

* 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'.

3 years agoRemove duplication of `find` file pattern arguments
Mattias Engdegård [Mon, 13 Sep 2021 16:38:59 +0000 (18:38 +0200)]
Remove duplication of `find` file pattern arguments

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-derive-find-filepatterns): Avoid including the same
pattern twice.

3 years ago* Clean-up some unnecessary macro usage in comp.c
Andrea Corallo [Mon, 13 Sep 2021 14:43:33 +0000 (16:43 +0200)]
* Clean-up some unnecessary macro usage in comp.c

* src/comp.c (emit_static_object)
(Fcomp_native_driver_options_effective_p, add_driver_options)
(Fcomp__compile_ctxt_to_file, Fcomp_libgccjit_version): Clean-up
unenecessary 'defined (WINDOWSNT)' usage.

3 years agoContinue NEWS tag checking
Lars Ingebrigtsen [Mon, 13 Sep 2021 14:18:30 +0000 (16:18 +0200)]
Continue NEWS tag checking

3 years agoFix typo in previous files.el change
Lars Ingebrigtsen [Mon, 13 Sep 2021 13:32:20 +0000 (15:32 +0200)]
Fix typo in previous files.el change

3 years agoMention unibyte issues in insert-file-contents-literally doc string
Lars Ingebrigtsen [Mon, 13 Sep 2021 13:17:02 +0000 (15:17 +0200)]
Mention unibyte issues in insert-file-contents-literally doc string

* lisp/files.el (insert-file-contents-literally): Mention possible
issues with multibyte buffers (bug#50560).

3 years ago* doc/lispref/variables.texi (named-let): Document TCO
Stefan Monnier [Mon, 13 Sep 2021 13:14:05 +0000 (09:14 -0400)]
* doc/lispref/variables.texi (named-let): Document TCO

3 years agoFix the tests
Dmitry Gutov [Mon, 13 Sep 2021 12:47:45 +0000 (15:47 +0300)]
Fix the tests

* test/lisp/progmodes/xref-tests.el
(xref--xref-file-name-display-is-abs)
(xref--xref-file-name-display-is-nondirectory)
(xref--xref-file-name-display-is-relative-to-project-root):
Update for the latest change in xref.el.

3 years agoUse a fringe mark in bookmark instead of a whole background line
Lars Ingebrigtsen [Mon, 13 Sep 2021 11:35:53 +0000 (13:35 +0200)]
Use a fringe mark in bookmark instead of a whole background line

* lisp/bookmark.el (bookmark-face): Adjust colors.
(bookmark-fringe-mark): New bitmap.
(bookmark--fontify): Use a fringe instead of marking the whole line.
(bookmark--unfontify): Adjust to remove.
(bookmark--jump-via): Ditto.
(bookmark-set-fringe-mark): Renamed from bookmark-fontify.
(bookmark--set-fringe-mark, bookmark--remove-fringe-mark): Renamed
from --*fontify.  Callers adjusted.

3 years agoNEWS copy edits and tagging
Lars Ingebrigtsen [Mon, 13 Sep 2021 11:02:16 +0000 (13:02 +0200)]
NEWS copy edits and tagging

3 years agoCorrect nroff-mode NEWS entry after `M-o' changes
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:56:15 +0000 (12:56 +0200)]
Correct nroff-mode NEWS entry after `M-o' changes

3 years agoMention how to disable auto-fill-mode in the auto-fill section
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:41:34 +0000 (12:41 +0200)]
Mention how to disable auto-fill-mode in the auto-fill section

* doc/lispref/text.texi (Margins): Mention how to disable
auto-fill-mode.

3 years agoDocument backtrace-on-error-noninteractive in the --batch section
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:35:50 +0000 (12:35 +0200)]
Document backtrace-on-error-noninteractive in the --batch section

* doc/emacs/cmdargs.texi (Initial Options): Mention
backtrace-on-error-noninteractive.

3 years agoFurther NEWS tagging updates
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:32:10 +0000 (12:32 +0200)]
Further NEWS tagging updates

3 years agocompletions-annotations doc string clarification
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:20:57 +0000 (12:20 +0200)]
completions-annotations doc string clarification

* lisp/minibuffer.el (completions-annotations): Mention that it's
not always used.

3 years agoUpdate some more NEWS tagging
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:13:01 +0000 (12:13 +0200)]
Update some more NEWS tagging

3 years agoMention `benchmark-call' in the manual
Lars Ingebrigtsen [Mon, 13 Sep 2021 10:08:58 +0000 (12:08 +0200)]
Mention `benchmark-call' in the manual

* doc/lispref/debugging.texi (Profiling): Mention `benchmark-call'.

3 years agoUpdate some pcase NEWS tags for already-documented functions
Lars Ingebrigtsen [Mon, 13 Sep 2021 09:59:56 +0000 (11:59 +0200)]
Update some pcase NEWS tags for already-documented functions

3 years agoUpdate NEWS tagging for string helper functions
Lars Ingebrigtsen [Mon, 13 Sep 2021 09:58:56 +0000 (11:58 +0200)]
Update NEWS tagging for string helper functions

3 years agoDocument named-let and update some NEWS tags
Lars Ingebrigtsen [Mon, 13 Sep 2021 09:53:18 +0000 (11:53 +0200)]
Document named-let and update some NEWS tags

* doc/lispref/variables.texi (Local Variables): Document `named-let'.

3 years agoClarify bookmark-fontify NEWS entry
Lars Ingebrigtsen [Mon, 13 Sep 2021 08:40:56 +0000 (10:40 +0200)]
Clarify bookmark-fontify NEWS entry