Eli Zaretskii [Sun, 4 Apr 2021 07:10:00 +0000 (10:10 +0300)]
Fix unexec compilation
* src/pdumper.c (thaw_hash_tables): Now conditioned by
HAVE_PDUMPER.
(init_pdumper_once): No-op unless HAVE_PDUMPER. Reported by
Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>.
Eli Zaretskii [Sun, 4 Apr 2021 06:41:44 +0000 (09:41 +0300)]
Fix recent changes regarding frame-scale-factor
* src/frame.c (Fframe_scale_factor): Make more robust and avoid
compiler warning while at that. Doc fix.
İ. Göktuğ Kayaalp [Sun, 4 Apr 2021 02:14:29 +0000 (04:14 +0200)]
Fix build error in frame.h on non-NS
* src/frame.h (FRAME_SCALE_FACTOR): Fix syntax of macro in
previous change.
Alan Third [Sat, 3 Apr 2021 22:23:54 +0000 (23:23 +0100)]
Make new SVG widgets match character height (bug#47074)
* etc/images/checkbox-mixed.svg:
* etc/images/checked.svg:
* etc/images/radio-checked.svg:
* etc/images/radio-mixed.svg:
* etc/images/radio.svg:
* etc/images/unchecked.svg: Use viewBox and set height to 1em.
Alan Third [Sun, 28 Mar 2021 16:52:57 +0000 (17:52 +0100)]
Set CSS for SVG files
* src/dispextern.h (struct image): Add font details required for the CSS.
* src/image.c (free_image): Free the font family string.
(search_image_cache):
(uncache_image): Make image caching understand the font details.
(lookup_image): Handle the font details when generating the image and
looking up the cache.
(svg_css_length_to_pixels): Handle 'em' when we know the font size.
(svg_load_image): Generate the CSS and apply it to the SVG.
(enum svg_keyword_index):
(svg_format):
(syms_of_image): Add ':css' attribute.
* doc/lispref/display.texi (SVG Images): Add details of new svg image
attributes.
Alan Third [Thu, 1 Apr 2021 22:23:19 +0000 (23:23 +0100)]
Fix NSTRACE failure
* src/nsterm.m ([EmacsSurface getContext]): Remove unneeded '@' symbol.
Alan Third [Wed, 24 Mar 2021 22:50:03 +0000 (22:50 +0000)]
Implement frame-scale-factor
* src/frame.c (Fframe_scale_factor): New function.
(syms_of_frame): Add frame-scale-factor.
* src/frame.h: Add FRAME_SCALE_FACTOR.
* src/image.c: Move FRAME_SCALE_FACTOR to frame.h.
Stefan Kangas [Sat, 3 Apr 2021 19:53:06 +0000 (21:53 +0200)]
Add SVG icons for customize buffers
* etc/images/checkbox-mixed.svg:
* etc/images/checked.svg:
* etc/images/down.svg:
* etc/images/left.svg:
* etc/images/radio-checked.svg:
* etc/images/radio-mixed.svg:
* etc/images/radio.svg:
* etc/images/right.svg:
* etc/images/unchecked.svg:
* etc/images/up.svg: New files from the Adwaita Icon Theme (made by
the GNOME project). The background color was changed from gray to
none to use the same colors as the current face instead. (Bug#47074)
* etc/images/README: Add license information for the above new files.
* lisp/wid-edit.el (widget-image-conversion): Prefer SVG if it exists.
(radio-button): Rename radio buttons to "radio-checked" and
"radio". These files did not exist before.
Stefan Monnier [Sat, 3 Apr 2021 18:15:43 +0000 (14:15 -0400)]
* lisp/vcursor.el: Use lexical-binding
Remove redundant `:group` args.
(vcursor): Remove unused var declaration.
Michael Albinus [Sat, 3 Apr 2021 16:25:27 +0000 (18:25 +0200)]
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
Fix code finding //DIRED//.
Stefan Kangas [Sat, 3 Apr 2021 10:13:52 +0000 (12:13 +0200)]
; Remove some redundant installation instructions
Michael Albinus [Sat, 3 Apr 2021 10:26:14 +0000 (12:26 +0200)]
* test/lisp/filenotify-tests.el (file-notify--test-timeout): Change timing.
; * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
; Remove test message.
Stefan Kangas [Sat, 3 Apr 2021 02:25:59 +0000 (04:25 +0200)]
* lisp/pixel-scroll.el: Use lexical-binding.
Stefan Kangas [Fri, 2 Apr 2021 23:21:32 +0000 (01:21 +0200)]
Replace two functions with seq-subseq
* lisp/emacs-lisp/seq.el (seq-subseq): Add autoload cookie.
* lisp/eshell/esh-util.el (eshell-sublist): Redefine using seq-subseq
and make obsolete. Update callers.
* lisp/wid-edit.el (widget-sublist): Redefine as obsolete function
alias for seq-subseq. Update callers.
Stefan Kangas [Fri, 2 Apr 2021 23:06:56 +0000 (01:06 +0200)]
Remove redundant #' before lambda in eshell/*.el
* lisp/eshell/em-dirs.el (eshell-dirs-initialize):
* lisp/eshell/em-pred.el (eshell-predicate-alist)
(eshell-modifier-alist):
* lisp/eshell/em-script.el (eshell-script-initialize):
* lisp/eshell/eshell.el (eshell-command): Remove redundant #' before
lambda.
Stefan Monnier [Fri, 2 Apr 2021 23:51:41 +0000 (19:51 -0400)]
* lisp/progmodes/simula.el: Use lexical-binding
(simula-tab-always-indent): Mark as obsolete.
(simula-mode-map): Don't bind TAB.
(simula-indent-command): Mark as obsolete.
(hilit-set-mode-patterns): Remove obsolete support for hilit19.
(simula-mode-syntax-table): Move initialization code into the declaration.
Stefan Kangas [Fri, 2 Apr 2021 22:50:55 +0000 (00:50 +0200)]
Use lexical-binding in recentf.el
* lisp/recentf.el: Use lexical-binding. Doc fix.
(recentf-save-file): Strength reduce 'eval' to 'symbol-value'.
(recentf-trunc-list): Make into obsolete function alias for
'seq-take'. Update callers.
(recentf-show-file-shortcuts-flag): Doc fix.
(recentf-menu-elements, recentf-make-menu-items)
(recentf-make-menu-item, recentf-dialog-mode-map)
(recentf-dialog, recentf-open-files-item)
(recentf-open-files-items, recentf-open-files)
(recentf-load-list): Quote function symbols as such.
(recentf-relative-filter, recentf-file-name-nondir): Remove
redundant #' before lambda.
Stefan Kangas [Fri, 2 Apr 2021 17:32:32 +0000 (19:32 +0200)]
Remove references to very old versions of Emacs from eintr
* doc/lispintro/emacs-lisp-intro.texi (Making Errors)
(Void Function, Void Variable, Wrong Type of Argument, debug)
(debug-on-entry): Remove commented out references to Emacs 20 or
earlier.
* doc/lispintro/emacs-lisp-intro.texi (what-line)
(print-elements-of-list, debug, X Axis Tic Marks): Don't call version
22 or earlier a "recent" version of Emacs.
Stefan Kangas [Fri, 2 Apr 2021 14:33:01 +0000 (16:33 +0200)]
* doc/misc/woman.texi (Introduction): Remove reference to old Emacs.
Stefan Kangas [Fri, 2 Apr 2021 11:22:16 +0000 (13:22 +0200)]
Remove redundant #' before lambda in textmodes/*.el
* lisp/textmodes/fill.el:
* lisp/textmodes/ispell.el (ispell-find-enchant-dictionaries):
* lisp/textmodes/rst.el (rst-re, rst-Ado-position)
(rst-Hdr-member-ado, rst-mode-abbrev-table)
(rst-preferred-adornments, rst-new-preferred-hdr)
(rst-classify-adornment, rst-ttl-at-point, rst-hdr-hierarchy)
(rst-all-ttls-with-level, rst-get-previous-hdr)
(rst-adjust-region, rst-preferred-bullets, rst-find-begs)
(rst-straighten-bullets-region, rst-stn-containing-point)
(rst-toc-update, rst-forward-section, rst-shift-region)
(rst-enumerate-region, rst-bullet-list-region)
(rst-line-block-region, rst-forward-indented-block): Remove redundant #'
before lambda.
Stefan Monnier [Fri, 2 Apr 2021 13:40:22 +0000 (09:40 -0400)]
* doc/misc/reftex.texi: Remove outdated instructions
(Building and Installing, Installation with make)
(Installation by Hand, Loading @RefTeX{}): Delete sections.
(Entering @RefTeX{} Mode): Merge into its parent.
(AUCTeX): Point to GNU ELPA for installation.
(Problems and Work-Arounds): Remove XEmacs-specific item.
Arash Esbati [Tue, 30 Mar 2021 17:59:15 +0000 (19:59 +0200)]
Delete XEmacs-only definition
* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Remove
XEmacs compat code.
Juri Linkov [Fri, 2 Apr 2021 08:25:05 +0000 (11:25 +0300)]
* lisp/progmodes/xref.el: Change xref-file-name-display and xref-match face.
* lisp/progmodes/xref.el (xref-file-name-display): Change the default value
to 'project-relative' (bug#47012).
(xref-match)<face>: Inherit from 'match'.
Dmitry Gutov [Thu, 1 Apr 2021 22:24:57 +0000 (01:24 +0300)]
Fix C-u project-find-regexp's default dir
* lisp/progmodes/project.el (project-find-regexp):
Default read-directory-name to the current default-directory when
called with C-u (bug#47012).
Stefan Monnier [Thu, 1 Apr 2021 22:16:52 +0000 (18:16 -0400)]
* lisp/progmodes/cfengine.el: Use lexical-binding
Stefan Monnier [Thu, 1 Apr 2021 21:23:55 +0000 (17:23 -0400)]
* lisp/progmodes/dcl-mode.el: Clarify what is meant by DCL
Stefan Kangas [Thu, 1 Apr 2021 20:04:21 +0000 (22:04 +0200)]
Remove redundant #' before lambda in {mail,net,url}/*.el
* lisp/mail/mail-extr.el:
* lisp/mail/rmail.el (rmail-start-mail):
* lisp/net/gnutls.el (gnutls-boot-parameters):
* lisp/net/imap.el (imap-starttls-open):
* lisp/net/pop3.el (pop3-list):
* lisp/url/url-cookie.el (url-cookie-save-interval):
* lisp/url/url-history.el (url-history-save-interval)
(url-history-track):
* lisp/url/url-mailto.el (url-mailto): Remove redundant #' before lambda.
Stefan Kangas [Thu, 1 Apr 2021 17:57:05 +0000 (19:57 +0200)]
; Remove spurious comment in last commit
Stefan Kangas [Thu, 1 Apr 2021 17:55:32 +0000 (19:55 +0200)]
Use lexical-binding in executable.el and add tests
* lisp/progmodes/executable.el: Use lexical-binding.
* test/lisp/progmodes/executable-tests.el: New file.
Stefan Kangas [Thu, 1 Apr 2021 14:24:12 +0000 (16:24 +0200)]
Remove redundant #' before lambda in progmodes/*.el
* lisp/progmodes/cc-styles.el (c-set-offset):
* lisp/progmodes/ebnf-yac.el (ebnf-yac-token-table):
* lisp/progmodes/ebnf2ps.el (ebnf-format-float, ebnf-map-name):
* lisp/progmodes/grep.el (lgrep, rgrep-default-command):
* lisp/progmodes/inf-lisp.el:
* lisp/progmodes/octave.el (octave-lookfor):
* lisp/progmodes/python.el (python-pdbtrack-tracking-finish): Remove
redundant #' before lambda.
Stefan Kangas [Thu, 1 Apr 2021 13:23:01 +0000 (15:23 +0200)]
Remove redundant #' before lambda in international/*.el
* lisp/international/characters.el:
(use-cjk-char-width-table, update-glyphless-char-display):
* lisp/international/fontset.el (build-default-fontset-data)
(generate-fontset-menu):
* lisp/international/latin1-disp.el (latin1-display-reset):
* lisp/international/mule-cmds.el
(select-safe-coding-system-interactively):
* lisp/international/mule-diag.el (sort-listed-character-sets)
(font-show-log):
* lisp/international/mule.el (char-displayable-p):
* lisp/international/quail.el (quail-keyboard-layout-type)
(quail-update-translation, quail-find-key):
* lisp/international/titdic-cnv.el (tsang-quick-converter)
(ziranma-converter): Remove redundant #' before lambda.
Glenn Morris [Thu, 1 Apr 2021 13:26:57 +0000 (06:26 -0700)]
; Auto-commit of loaddefs files.
Eli Zaretskii [Thu, 1 Apr 2021 12:59:28 +0000 (15:59 +0300)]
GNUmakefile: Fix last change.
Eli Zaretskii [Thu, 1 Apr 2021 12:57:55 +0000 (15:57 +0300)]
Fix 'extraclean' targets
* GNUmakefile: Add description of 'extraclean'.
* Makefile.in (extraclean_dirs): Add lwlib.
* lwlib/Makefile.in (clean mostlyclean extraclean): Add
'extraclean' target.
* lisp/Makefile.in (extraclean): Remove ${loaddefs}, not just
${LOADDEFS}. Delete all backup and autosave files.
Stefan Kangas [Thu, 1 Apr 2021 09:07:06 +0000 (11:07 +0200)]
Use lexical-binding in epg-config.el and add tests
* lisp/epg-config.el: Use lexical-binding.
(epg-find-configuration): Improve error message.
* test/lisp/epg-config-tests.el: New file.
Stefan Kangas [Thu, 1 Apr 2021 08:34:39 +0000 (10:34 +0200)]
Use lexical-binding in isearchb.el
* lisp/isearchb.el: Use lexical-binding. Remove redundant :group
args.
Stefan Kangas [Thu, 1 Apr 2021 08:23:21 +0000 (10:23 +0200)]
Remove redundant #' before lambda in Gnus
* lisp/gnus/gnus-group.el (gnus-group-list-cached)
(gnus-group-list-dormant, gnus-group-list-ticked):
* lisp/gnus/gnus-registry.el (gnus-registry-remove-extra-data):
* lisp/gnus/gnus-score.el (gnus-score-edit-file-at-point):
* lisp/gnus/gnus-sum.el (gnus-fetch-headers):
* lisp/gnus/mm-partial.el (mm-inline-partial):
* lisp/gnus/nnselect.el (nnselect-uncompress-artlist)
(numbers-by-group, nnselect-request-expire-articles)
(nnselect-request-update-info, nnselect-request-thread):
* lisp/gnus/nnvirtual.el (nnvirtual-request-expire-articles):
* lisp/gnus/spam-stat.el (spam-stat-score-buffer): Remove redundant #'
before lambda.
Stefan Kangas [Wed, 31 Mar 2021 23:26:52 +0000 (01:26 +0200)]
Use lexical-binding in avoid.el
* lisp/avoid.el: Use lexical-binding. Remove redundant :group args.
(mouse-avoidance-fancy): Quote function symbol as such.
Stefan Kangas [Wed, 31 Mar 2021 16:17:15 +0000 (18:17 +0200)]
Use emacs-version instead of obsolete version variables
* lisp/calendar/icalendar.el (icalendar-version):
* lisp/dframe.el (dframe-version):
* lisp/emacs-lisp/checkdoc.el (checkdoc-version):
* lisp/emulation/edt.el (edt-version):
* lisp/international/mule.el (mule-version):
* lisp/linum.el (linum-version):
* lisp/play/bubbles.el (bubbles-version):
* lisp/textmodes/remember.el (remember-version):
* lisp/url/url-vars.el (url-version):
* lisp/woman.el (woman-version): Use emacs-version instead of obsolete
version variables.
Stefan Monnier [Wed, 31 Mar 2021 22:39:52 +0000 (18:39 -0400)]
* lisp/strokes.el: Use lexical-binding. Remove redundant `:group` args
(strokes-char-table): Move initialization into declaration.
Stefan Monnier [Wed, 31 Mar 2021 22:27:14 +0000 (18:27 -0400)]
* lisp/forms.el: Use lexical-binding. Remove redundant `:group` args
(forms--process-format-list, forms--debug): Strength-reduce `eval`
to `symbol-value`.
Stefan Monnier [Wed, 31 Mar 2021 22:15:28 +0000 (18:15 -0400)]
* lisp/progmodes/dcl-mode.el: Use lexical-binding
(dcl-guess-option-value, dcl-save-local-variable)
(dcl-save-nondefault-options): Strength-reduce `eval` to `symbol-value`.
Michael Albinus [Wed, 31 Mar 2021 19:12:09 +0000 (21:12 +0200)]
; Fix last change
Michael Albinus [Wed, 31 Mar 2021 19:09:55 +0000 (21:09 +0200)]
* lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
Make assumption for emba.
Stefan Kangas [Wed, 31 Mar 2021 10:59:11 +0000 (12:59 +0200)]
Use lexical-binding in progmodes/inf-lisp.el
* lisp/progmodes/inf-lisp.el: Use lexical-binding. Doc fixes.
(inferior-lisp-mode-map, lisp-mode-map)
(inferior-lisp-install-letter-bindings): Quote function symbols as such.
(inferior-lisp-menu, lisp-compile-string, lisp-eval-string)
(lisp-show-variable-documentation): Doc fixes.
Michael Albinus [Wed, 31 Mar 2021 09:37:35 +0000 (11:37 +0200)]
; * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter):
; Instrument for emba.
Stefan Kangas [Wed, 31 Mar 2021 06:25:24 +0000 (08:25 +0200)]
Use lexical-binding in scroll-all.el
* lisp/scroll-all.el: Use lexical-binding.
(scroll-all-scroll-down-all, scroll-all-scroll-up-all)
(scroll-all-page-down-all, scroll-all-page-up-all)
(scroll-all-beginning-of-buffer-all)
(scroll-all-end-of-buffer-all): Doc fixes.
Stefan Kangas [Wed, 31 Mar 2021 06:05:58 +0000 (08:05 +0200)]
* lisp/dynamic-setting.el: Use lexical-binding.
Luke Lee [Wed, 31 Mar 2021 03:22:47 +0000 (11:22 +0800)]
Fix incorrect regular expression for more general text replacements.
* lisp/progmodes/hideif.el (hif-evaluate-macro): fix regexp to trim
off leading/trailing spaces, but not within.
Stefan Kangas [Tue, 30 Mar 2021 23:42:16 +0000 (01:42 +0200)]
Use lexical-binding in chistory.el
* lisp/chistory.el: Use lexical-binding. Remove redundant :group
args.
(command-history-mode-map): Quote function symbols as such.
Stefan Kangas [Tue, 30 Mar 2021 23:23:29 +0000 (01:23 +0200)]
* lisp/ebuff-menu.el: Use lexical-binding.
Stefan Kangas [Tue, 30 Mar 2021 23:11:21 +0000 (01:11 +0200)]
Use lexical-binding in double.el
* lisp/double.el: Use lexical-binding. Remove redundant :group
args.
Stefan Kangas [Tue, 30 Mar 2021 22:58:18 +0000 (00:58 +0200)]
Use lexical-binding in dirtrack.el
* lisp/dirtrack.el: Use lexical-binding. Remove redundant group
args.
Stefan Kangas [Tue, 30 Mar 2021 22:07:03 +0000 (00:07 +0200)]
* lisp/progmodes/cwarn.el: Use lexical-binding.
Stefan Kangas [Tue, 30 Mar 2021 21:44:48 +0000 (23:44 +0200)]
Remove redundant #' before lambda in cedet
* lisp/cedet/mode-local.el (mode-local-map-mode-buffers)
(mode-local--activate-bindings, mode-local--deactivate-bindings)
(setq-mode-local, describe-mode-local-bindings-in-mode):
* lisp/cedet/semantic.el (semantic-repeat-parse-whole-stream):
* lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment):
* lisp/cedet/semantic/db-ebrowse.el
(semanticdb-ebrowse-get-ebrowse-structure):
* lisp/cedet/semantic/db-global.el
(semanticdb-enable-gnu-global-databases):
* lisp/cedet/semantic/edit.el (semantic-changes-in-region):
* lisp/cedet/semantic/fw.el (semantic-install-function-overrides):
* lisp/cedet/semantic/grammar.el (semantic-grammar-ASSOC)
(semantic-grammar-tag-symbols, semantic-grammar-keywords)
(semantic--grammar-macros-regexp-1)
(semantic-format-tag-summarize):
* lisp/cedet/semantic/idle.el (semantic-idle-core-handler)
(semantic-idle-work-core-handler):
* lisp/cedet/semantic/imenu.el (semantic-imenu-semanticdb-hook):
* lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map)
(semantic-java-doc-setup):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-save-table)
(semantic-lex-spp-macros):
* lisp/cedet/semantic/lex.el (semantic-lex-map-symbols)
(semantic-lex-keywords, semantic-lex-types):
* lisp/cedet/semantic/util-modes.el
(semantic-toggle-minor-mode-globally):
* lisp/cedet/semantic/wisent/comp.el (wisent-defcontext)
(wisent-automaton-lisp-form):
* lisp/cedet/semantic/wisent/grammar.el (wisent-grammar-assocs)
(wisent-grammar-terminals): Remove redundant #' before lambda.
Stefan Kangas [Tue, 30 Mar 2021 21:26:42 +0000 (23:26 +0200)]
Delete Emacs 19 compat code in foldout.el
* lisp/foldout.el (foldout-hide-flag):
(foldout-show-flag): Delete Emacs 19 compat code and make obsolete.
(foldout-exit-fold): Don't use above obsolete variable.
Stefan Kangas [Tue, 30 Mar 2021 21:09:14 +0000 (23:09 +0200)]
Use lexical-binding in lpr.el and add rudimentary tests
* lisp/lpr.el: Use lexical-binding. Remove redundant :group args.
(print-region-function): Declare MS-Windows specific function.
* test/lisp/lpr-tests.el: New file.
Stefan Kangas [Tue, 30 Mar 2021 16:56:02 +0000 (18:56 +0200)]
Use lexical-binding in echistory.el
* lisp/echistory.el: Use lexical-binding.
(electric-history-map): Quote function symbols as such.
(Electric-history-undefined): Use command substitutions.
Stefan Kangas [Tue, 30 Mar 2021 13:46:57 +0000 (15:46 +0200)]
Delete empty "History" sections
* lisp/bs.el:
* lisp/calendar/timeclock.el:
* lisp/cedet/semantic/bovine/grammar.el:
* lisp/cedet/semantic/grammar.el:
* lisp/cedet/semantic/wisent.el:
* lisp/cedet/semantic/wisent/comp.el:
* lisp/cedet/semantic/wisent/java-tags.el:
* lisp/cedet/semantic/wisent/wisent.el:
* lisp/erc/erc.el:
* lisp/net/newst-treeview.el:
* lisp/recentf.el:
* lisp/ruler-mode.el:
* lisp/textmodes/remember.el:
* lisp/thumbs.el:
* lisp/tree-widget.el:
* lisp/vc/vc-hg.el: Delete empty "History" sections.
* lisp/cedet/semantic/grammar.el
(semantic-grammar-header-template): Don't add "History" section to
generated file.
Stefan Kangas [Tue, 30 Mar 2021 13:16:28 +0000 (15:16 +0200)]
Use lexical-binding in follow.el
* lisp/follow.el: Use lexical-binding.
(follow-mode-map, follow-debug-message): Quote function symbols as
such.
(follow-pos-visible-in-window-p): Remove unused variable 'last'.
(follow-move-to-window-line): Remove unused variable 'middle-window'.
Mattias Engdegard [Tue, 30 Mar 2021 11:54:41 +0000 (07:54 -0400)]
lisp/progmodes/verilog-mode.el internal code cleanup.
* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p):
Internal code cleanup.
Arash Esbati [Tue, 30 Mar 2021 02:40:26 +0000 (22:40 -0400)]
* lisp/textmodes/reftex-auc.el: Improve the external function declarations
(LaTeX-add-bibitems): Move declaration closer to the others.
Fix those declarations to refer to the right file.
Dmitry Gutov [Tue, 30 Mar 2021 00:42:11 +0000 (03:42 +0300)]
Provide information to show icons with Elisp completions
* lisp/progmodes/elisp-mode.el (elisp--company-kind): New function.
(elisp-completion-at-point): Use it. And a couple of anonymous
:company-kind functions too.
Stefan Monnier [Mon, 29 Mar 2021 22:35:01 +0000 (18:35 -0400)]
lisp/progmodes/verilog-mode.el: Prepare for lexical-binding.
* lisp/progmodes/verilog-mode.el: Activate lexical-binding.
Insert newlines to avoid some situations where arguments were easy
to misunderstand.
(verilog-set-compile-command): Strength-reduce `eval` to `symbol-value`.
(verilog-error-regexp-add-emacs): Replace `mapcar` => `mapc` since
the result is not used.
(verilog-surelint-off): Remove always-nil var `dir`.
(verilog-do-indent): Minor simplification of the code.
(verilog-pred): Delete var. It was always nil.
(verilog-flag): Delete var; pass the corresponding data via
explicit arguments instead.
(verilog-keyword-completion): Use `dolist`.
(verilog-completion-response): Rename to `verilog--complete-with-action`.
Change calling convention to match that of `complete-with-action`.
Use `complete-with-action` instead when available.
Adjust all callers.
(verilog-completion, verilog-comp-defun): Change arg names so they
don't collide with dynamically scoped vars, and let-bind `verilog-str`
explicitly instead. Use `with-current-buffer`.
(verilog-batch-execute-func): Use `with-current-buffer`.
(verilog-complete-word): Don't convert the completion list into
a completion alist, since lists work just as well.
(verilog-showscopes): Use `with-current-buffer`.
(verilog-symbol-detick, verilog-symbol-detick-text)
(verilog-signals-matching-enum): Strength-reduce `eval` to `symbol-value`.
(verilog--insert-indent): Rename from `verilog--insert-indent`.
Add `indent-pt` argument.
(verilog-insert-indent): New macro wrapper to provide the old
calling convention.
(verilog-auto-assign-modport, verilog-auto-inout-modport):
Remove always-nil var `direction-re`.
(verilog--auto-inst-first): Rename from `verilog-auto-inst-first`.
Add `indent-pt` argument.
(verilog-auto-inst-port): Adjust call accordingly.
Stefan Monnier [Mon, 29 Mar 2021 22:07:25 +0000 (18:07 -0400)]
* lisp/progmodes/verilog-mode.el: Use #' where appropriate.
Wilson Snyder [Mon, 29 Mar 2021 22:03:33 +0000 (18:03 -0400)]
lisp/progmodes/verilog-mode.el: Fix indentation of enum.
* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p): Fix
indentation of enum with multiple objects. Reported by punzik. (#1716).
Stefan Monnier [Mon, 29 Mar 2021 20:46:41 +0000 (16:46 -0400)]
* lisp/completion.el: Activate lexical-binding
Remove redundant `:group` arguments.
(list-all-completions-1): Merge into `list-all-completions` and
then delete.
(list-all-completions-by-hash-bucket-1): Use `push`. Merge into
`list-all-completions-by-hash-bucket` and then delete.
(completions-list-return-value): Delete variable, not used any more.
Stefan Monnier [Mon, 29 Mar 2021 20:34:19 +0000 (16:34 -0400)]
* lisp/woman.el: Activate lexical-binding. Require `cl-lib`
(woman-mode, woman2-roff-buffer): Use `cl-letf`.
(woman-request): Move declaration before first use.
(woman0-macro): Rename arg to not shadow the dynamically scoped var.
(woman-set-arg): Strength-reduce `eval` to `symbol-value`.
Juri Linkov [Mon, 29 Mar 2021 19:34:51 +0000 (22:34 +0300)]
* lisp/progmodes/project.el (project-regexp-history-variable): New variable.
(project--read-regexp): Use it as HISTORY arg of 'read-regexp' with
'grep-regexp-history' default (bug#47012).
Stefan Monnier [Mon, 29 Mar 2021 19:29:26 +0000 (15:29 -0400)]
* lisp/allout*.el: Use lexical-binding
* lisp/allout.el: Activate lexical-binding.
(allout-setup-menubar): Delete "complex no-op" function.
(allout-mode): Delete call to it.
(allout-hotspot-key-handler): Delete XEmacs-only code.
(allout-copy-exposed-to-buffer): Remove always-nil var `start-list`.
* lisp/allout-widgets.el: Activate lexical-binding.
(allout-item-icon-keymap): Use `ignore`.
(allout-widgets-exposure-change-processor): Use `cl-callf` instead of
relying on dynamic binding to apply some code to two different variables.
Alan Mackenzie [Mon, 29 Mar 2021 15:32:40 +0000 (15:32 +0000)]
Fix an infinite loop in C++ Mode redisplay. This was bug #47191.
* lisp/progmodes/cc-defs.el (c-forward-syntactic-ws, c-backward-syntactic-ws):
When point is on the wrong side of a supplied search limit, leave point
unmoved rather than setting it to that limit.
* lisp/progmodes/cc-engine.el (c-forward-name): After scanning a template
argument list (which is not itself subject to a search limit) recalculate the
search limit starting from the end point, since these argument lists can
legitimately be long. At each of the scanning loops, check point hasn't gone
past the limit.
Glenn Morris [Mon, 29 Mar 2021 15:31:15 +0000 (08:31 -0700)]
Merge from origin/emacs-27
8a92030f6a (origin/emacs-27) Fix hang in autorevert-tests.el
# Conflicts:
# test/lisp/autorevert-tests.el
Glenn Morris [Mon, 29 Mar 2021 15:26:25 +0000 (08:26 -0700)]
; Merge from origin/emacs-27
The following commits were skipped:
91eea74229 Revert "Clarify dired-do-shell-command doc string"
b23e22e0de Clarify dired-do-shell-command doc string
Glenn Morris [Mon, 29 Mar 2021 15:26:25 +0000 (08:26 -0700)]
Merge from origin/emacs-27
bcc4cc3362 Doc fixes for 'face-foreground' and 'face-background'.
bf6442fafd ; * admin/make-tarball.txt: Minor addition to the Web page...
38b127d32e * admin/admin.el (set-version): Handle malformed NEWS markup.
0d7e2a993e admin.el fix for bug#47394
fdec444758 ; * etc/NEWS: Fix typo.
1e6ca2765f ; * admin/make-tarball.txt: Another minor addition.
# Conflicts:
# etc/NEWS
Glenn Morris [Mon, 29 Mar 2021 15:26:25 +0000 (08:26 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
3e9047115e Bump Emacs version past 27.2
Michael Albinus [Mon, 29 Mar 2021 14:51:50 +0000 (16:51 +0200)]
; Fix schedule in admin/notes/emba
Michael Albinus [Mon, 29 Mar 2021 11:52:01 +0000 (13:52 +0200)]
Some Tramp doc clarifications
* doc/misc/tramp.texi (Remote shell setup): Explain meaning of
`tramp-sh-extra-args' for bash.
(Frequently Asked Questions): New item about unloading / reloading Tramp.
Eli Zaretskii [Mon, 29 Mar 2021 10:39:43 +0000 (13:39 +0300)]
Protect add-variable-watcher from incorrect usage
* src/data.c (Fadd_variable_watcher): Avoid crashes if SYMBOL
isn't. (Bug#47462)
Michael Albinus [Mon, 29 Mar 2021 10:12:33 +0000 (12:12 +0200)]
; Fix last change
Michael Albinus [Mon, 29 Mar 2021 09:33:36 +0000 (11:33 +0200)]
Optimize test jobs for emba
* test/infra/gitlab-ci.yml (.test-template): Do not run fast and
normal test jobs when scheduled.
Stefan Kangas [Mon, 29 Mar 2021 09:30:53 +0000 (11:30 +0200)]
Doc fixes in follow.el
* lisp/follow.el:
(follow-pos-visible-in-window-p, follow-adjust-window)
(follow-prev-buffer, follow-internal-force-redisplay):
Minor doc fixes.
Michael Albinus [Mon, 29 Mar 2021 08:15:45 +0000 (10:15 +0200)]
* test/infra/gitlab-ci.yml (test-filenotify-gio): Use *.log for make_params.
Michael Albinus [Sun, 28 Mar 2021 19:06:24 +0000 (21:06 +0200)]
Fix hang in autorevert-tests.el
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert):
Apply more robust check, whether file notification is used.
Lars Ingebrigtsen [Sun, 28 Mar 2021 17:22:15 +0000 (19:22 +0200)]
Fix a dbus.el byte compilation warning
* lisp/net/dbus.el (dbus-register-monitor): Silence a
byte-compilation warning on systems without dbus.
Lars Ingebrigtsen [Sun, 28 Mar 2021 17:13:00 +0000 (19:13 +0200)]
Use a 64KB page size for pdump
* src/pdumper.c (dump_get_page_size): Use a 64KB page size on all
architectures, as this many vary between systems (bug#47125).
Michael Albinus [Sun, 28 Mar 2021 17:16:12 +0000 (19:16 +0200)]
* admin/notes/emba: Explain job types and artifacts.
Lars Ingebrigtsen [Sun, 28 Mar 2021 15:06:01 +0000 (17:06 +0200)]
Revert "Clarify dired-do-shell-command doc string"
This reverts commit
cf607c262e15c873961fdfcced254e6f8e82f8d7.
The doc string already explains this.
(cherry picked from commit
01cf0eb75786834b7a0ee5be34be53f6e8e14c11)
Lars Ingebrigtsen [Sun, 28 Mar 2021 15:06:01 +0000 (17:06 +0200)]
Revert "Clarify dired-do-shell-command doc string"
This reverts commit
cf607c262e15c873961fdfcced254e6f8e82f8d7.
The doc string already explains this.
Lars Ingebrigtsen [Sun, 28 Mar 2021 14:01:53 +0000 (16:01 +0200)]
Clarify dired-do-shell-command doc string
* lisp/dired-aux.el (dired-do-shell-command): Mention what happens
to FILE-LIST (bug#47432).
(cherry picked from commit
cf607c262e15c873961fdfcced254e6f8e82f8d7)
Lars Ingebrigtsen [Sun, 28 Mar 2021 14:01:53 +0000 (16:01 +0200)]
Clarify dired-do-shell-command doc string
* lisp/dired-aux.el (dired-do-shell-command): Mention what happens
to FILE-LIST (bug#47432).
Eli Zaretskii [Sun, 28 Mar 2021 13:26:21 +0000 (16:26 +0300)]
Doc fixes for 'face-foreground' and 'face-background'.
* lisp/faces.el (face-foreground, face-background): Clarify how a
face specified in INHERIT arg is used. (Bug#47437)
pillule [Sun, 28 Mar 2021 13:18:26 +0000 (15:18 +0200)]
compilation-goto-locus does not handle right display-buffer
* lisp/progmodes/compile.el (compilation-goto-locus): Pop to the
source buffer if the match buffer is the selected window (bug#47414).
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Sun, 28 Mar 2021 12:58:43 +0000 (14:58 +0200)]
Clarify the doc string of plist-memeber and plist-put
* src/fns.c (Fplist_member):
(Fplist_put): Clarify what comparison function is used for PROP
(bug#47426) and don't claim that PROP has to be a symbol.
Eli Zaretskii [Sun, 28 Mar 2021 12:29:41 +0000 (15:29 +0300)]
Avoid errors in pulse.el for some face customizations
* lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Make
sure 'face-background' always returns a color name. Suggested by
Ingo Lohmar <ingo.lohmar@posteo.net> in bug#47437.
Michael Albinus [Sun, 28 Mar 2021 08:08:00 +0000 (10:08 +0200)]
Make artifacts working on emba (hopefully)
* test/infra/gitlab-ci.yml (.job-template): Use proper docker name.
(.test-template): Adapt artifacts path.
Michael Albinus [Sat, 27 Mar 2021 20:27:35 +0000 (21:27 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml
Basil L. Contovounesios [Sat, 27 Mar 2021 19:25:38 +0000 (19:25 +0000)]
Demote read-extended-command-predicate errors
For discussion, see the following thread:
https://lists.gnu.org/r/emacs-devel/2021-03/msg00682.html
* lisp/simple.el (read-extended-command): Demote errors when calling
read-extended-command-predicate so M-x completion doesn't break.
Michael Albinus [Sat, 27 Mar 2021 19:19:27 +0000 (20:19 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml
Michael Albinus [Sat, 27 Mar 2021 19:14:22 +0000 (20:14 +0100)]
; Adapt recent change in test/infra/gitlab-ci.yml
Stefan Monnier [Sat, 27 Mar 2021 18:31:40 +0000 (14:31 -0400)]
* lisp/wdired.el (wdired--self-insert): Fix thinko