1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 08:31:09 -08:00
Commit graph

148415 commits

Author SHA1 Message Date
Glenn Morris
673c02f6d0 * lisp/international/ja-dic-cnv.el (skkdic-convert): Doc fix. 2021-04-05 08:49:07 -07:00
Stefan Kangas
81940e9c0e Remove redundant #' before lambda in calc/*.el
* lisp/calc/calc-alg.el (math-defsimplify):
* lisp/calc/calc-ext.el (math-defintegral, math-defintegral-2):
* lisp/calc/calc-prog.el (math-do-arg-check): Remove redundant #'
before lambda.
2021-04-05 17:28:05 +02:00
Stefan Kangas
0342354c15 * lisp/shadowfile.el (cl-lib): Revert removing require. 2021-04-05 15:51:08 +02:00
Stefan Kangas
6a8935a153 * lisp/pcomplete.el: Remove aliases commented out for 20 years. 2021-04-05 15:15:31 +02:00
Stefan Kangas
6686a31591 Remove local uniquify functions in favour of seq-uniq
* lisp/emacs-lisp/seq.el (seq-uniq): Add autoload cookie.
* lisp/pcomplete.el: (pcomplete-uniquify-list): Use seq-uniq.
* lisp/eshell/esh-util.el (eshell-uniqify-list)
(eshell-uniquify-list):
* lisp/nxml/rng-util.el (rng-uniquify-equal):
* lisp/progmodes/idlwave.el (idlwave-uniquify):
* lisp/textmodes/artist.el (artist-uniq): Make into obsolete
function aliases for seq-uniq.  Update callers.
* lisp/nxml/rng-util.el (rng-uniquify-eq): Make obsolete in favor
of seq-uniq.  Update callers.
2021-04-05 15:14:19 +02:00
Stefan Kangas
20f7fa691b Obsolete local set difference functions in favor of seq-difference
* lisp/emacs-lisp/seq.el (seq-difference): Add autoload cookie.
* lisp/gnus/gnus-range.el (gnus-set-difference):
* lisp/gnus/spam.el (spam-set-difference): Make obsolete in favor
of seq-difference.  Update callers.
2021-04-05 14:24:00 +02:00
Stefan Kangas
257caab1d0 Obsolete local list functions in shadowfile.el
* lisp/shadowfile.el (shadow-union): Make obsolete in favour of
cl-union.  Update callers.
(shadow-find): Make into obsolete function alias for seq-find.
Update callers.
(cl-lib): Remove unnecessary require.
2021-04-05 14:18:24 +02:00
Michael Albinus
6060d53b3e * test/infra/Dockerfile.emba (emacs-gnustep): Do not run parallel make. 2021-04-05 12:45:10 +02:00
Stefan Kangas
ac81c5c8fd Remove code commented out since 1995 from ediff-util.el
* lisp/vc/ediff-util.el (ediff-load-hook): Remove code commented out
since the file was added in 1995.
2021-04-05 11:14:34 +02:00
Stefan Kangas
1760029b09 Replace local intersection functions with seq-intersection
* lisp/doc-view.el (doc-view-intersection):
* lisp/gnus/gnus-range.el (gnus-intersection):
* lisp/htmlfontify.el (hfy-interq):
* lisp/loadhist.el (file-set-intersect):
* lisp/mail/smtpmail.el (smtpmail-intersection): Make obsolete in
favor of seq-intersection.  Update all callers.

* lisp/url/url-dav.el (url-intersection): Redefine as obsolete
function alias for seq-intersection.  Update callers.

* lisp/mpc.el (mpc-intersection, mpc-cmd-list, mpc-reorder):
Use seq-intersection.
2021-04-05 11:14:34 +02:00
Stefan Kangas
46b8d7087c Make ediff-copy-list alias obsolete
* lisp/vc/ediff-mult.el (ediff-intersect-directories)
(ediff-get-directory-files-under-revision): Don't use above
obsolete alias.
* lisp/vc/ediff-util.el (ediff-copy-list): Make alias obsolete.
2021-04-05 11:14:34 +02:00
Stefan Kangas
e9c3d040bc * lisp/htmlfontify.el (hfy-triplet-regex): Use rx. 2021-04-05 11:14:34 +02:00
Stefan Kangas
1733fa0cab * etc/NEWS: Add entry for new SVG icons in customize. 2021-04-05 11:14:34 +02:00
Glenn Morris
a44d423a5a * doc/misc/Makefile.in (echo-sources): Make it not the first target. 2021-04-04 17:24:27 -07:00
Glenn Morris
a86edac26b Regenerate texi-from-org if ox-texinfo.el changes
* doc/misc/Makefile.in (top_srcdir): New, set by configure.
(emacs): Set load-prefer-newer.
(org_template): Make output depend on ox-texinfo.el.
2021-04-04 17:11:47 -07:00
Glenn Morris
9cb3db0bad Regenerate semantic grammars if the generating code changes
* admin/grammars/Makefile.in (emacs): Set load-prefer-newer.
(grammar_bovine, grammar_wisent): New variables.
(${bovinedir}/%-by.el, ${bovinedir}/scm-by.el)
(${cedetdir}/semantic/%-wy.el, ${wisentdir}/%-wy.el)
(${wisentdir}/javat-wy.el, ${cedetdir}/srecode/srt-wy.el):
Depend on the source file for the generating function.
* lisp/cedet/semantic/bovine/grammar.el (bovine--make-parser-1):
* lisp/cedet/semantic/wisent/grammar.el (wisent--make-parser-1):
Force generation of the output file.  The previous "is the output
newer than the input" failed to account for changes in the
generation code itself.  Force so we can let make figure it out.
2021-04-04 16:57:55 -07:00
Andrea Corallo
39bc9bc770 * src/comp.c (fixup_eln_load_path): Fix parameter name. 2021-04-04 22:51:24 +02:00
Andrea Corallo
9333bc4863 * src/comp.c (Fcomp_el_to_eln_filename): Fix doc. 2021-04-04 22:51:24 +02:00
Andrea Corallo
1ad0ecea2b * lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all .eln dirs. 2021-04-04 22:51:24 +02:00
Andrea Corallo
6f8ec14491 Output native compiled preloaded files into the 'preloaded' subfolder
* src/comp.c (fixup_eln_load_path): Account the fact that the
	file can be dumped in the 'preloaded' subfolder.
	* lisp/loadup.el: Likewise.
	* src/lread.c (maybe_swap_for_eln1): New function.
	(maybe_swap_for_eln): Handle 'preloaded' subfolder.
	* src/Makefile.in (LISP_PRELOADED): Export preloaded files.
2021-04-04 22:41:17 +02:00
Harald Jörg
258a17855b cperl-mode: Don't reposition the window when writing messages
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Avoid
printing messages while point is off-screen (Bug#47549).
2021-04-04 22:19:01 +02:00
Lars Ingebrigtsen
3ad98bbae7 Clarify the doc string of insert-image
* lisp/image.el (insert-image): Mention the effect of a whitespace
image (bug#47240).
2021-04-04 21:47:38 +02:00
Lars Ingebrigtsen
c967f55a01 Work around issue with (setq Man-notify-method 'aggressive)
* lisp/man.el (Man-bgproc-sentinel): Check that the window still
exists before trying to select it (bug#38164).
2021-04-04 21:36:15 +02:00
Glenn Morris
dd1aa7bc4c Make maintainer-clean delete generated files, as per standards
These are generated files that were once kept in the repository.
When they were removed from the repository, as a half-way measure
they were only deleted by "extraclean", but this was never
necessary and was not a proper use of that rule.
* admin/charsets/Makefile.in (gen-clean): New phony target.
(maintainer-clean): Delete generated files.
* admin/grammars/Makefile.in (gen-clean): New phony target.
(maintainer-clean): Delete generated files.
* admin/unidata/Makefile.in (gen-clean): New phony target.
(maintainer-clean): Delete generated files.
* leim/Makefile.in (gen-clean): New phony target.
(maintainer-clean): Delete generated files.
* GNUmakefile: Doc fix.
2021-04-04 09:19:24 -07:00
Alan Third
dd5ba88afb Work around librsvg bug (bug#47074)
Librsvg <= 2.40 has restrictions on how certain numbers can be run
together in path elements which do not match the SVG spec.

* etc/images/checkbox-mixed.svg:
* etc/images/checked.svg:
* etc/images/radio-checked.svg:
* etc/images/unchecked.svg: Separate problem numbers.
* etc/images/radio-mixed.svg: Separate problem numbers and color and
font-weight data.
2021-04-04 14:26:07 +01:00
Michael Albinus
6a80632c3f * test/lisp/filenotify-tests.el (file-notify--test-timeout):
Change timing on emba.
2021-04-04 14:06:40 +02:00
Eli Zaretskii
c3cd3fb051 Fix MS-Windows build
* src/image.c: (init_svg_functions) [WINDOWSNT]: Define and load
rsvg_handle_set_stylesheet from the DLL for librsvg > 2.48.
(lookup_image): Use xmalloc.
2021-04-04 14:54:19 +03:00
Stefan Kangas
523fb9b550 Use lexical-binding in hilit-chg.el
* lisp/hilit-chg.el: Use lexical-binding.  Remove redundant :group
args.  Doc and formatting fixes.
(highlight-changes-mode, highlight-changes-visible-mode):
Use keyword arguments.
(hilit-chg-display-changes, highlight-changes-rotate-faces):
Quote function symbols as such.
(hilit-x, hilit-y, hilit-e): Define variables on top-level to
silence the byte-compiler.
(highlight-markup-buffers): Improve message format.
2021-04-04 13:23:40 +02:00
Stefan Kangas
4865ded551 Remove redundant #' before lambda in tests
* test/lisp/electric-tests.el (save-electric-modes)
(inhibit-in-mismatched-string-inside-ruby-comments)
(inhibit-in-mismatched-string-inside-c-comments, js-mode-braces)
(js-mode-braces-with-layout)
(js-mode-braces-with-layout-and-indent, autowrapping-1)
(autowrapping-2, autowrapping-3, autowrapping-4, autowrapping-5)
(autowrapping-6, autowrapping-7):
* test/lisp/progmodes/xref-tests.el
(xref--xref-file-name-display-is-relative-to-project-root):
* test/src/thread-tests.el (threads-signal-early)
(threads-signal-main-thread): Remove redundant #' before lambda.
2021-04-04 13:06:33 +02:00
Alan Third
e2d199aa44 Fix crash when using menus and tramp on NS
; Fixes bug#24472, bug#37557 and bug#37922.

* src/nsterm.m (ns_select): Don't drain outerpool in this function.

(cherry picked from commit f14869cd70)
2021-04-04 11:44:37 +01:00
Alan Third
841b11ed0d Fix warnings in image.c
* src/image.c (svg_load_image): Fix types and move declaration of
'css' to the top of the function.
2021-04-04 11:27:29 +01:00
Eli Zaretskii
44ed8f6555 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>.
2021-04-04 10:10:00 +03:00
Eli Zaretskii
69158a1995 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.
2021-04-04 09:41:44 +03:00
İ. Göktuğ Kayaalp
55c768f3ea Fix build error in frame.h on non-NS
* src/frame.h (FRAME_SCALE_FACTOR): Fix syntax of macro in
previous change.
2021-04-04 04:14:29 +02:00
Alan Third
0689a4ac50 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.
2021-04-03 23:23:54 +01:00
Alan Third
1fdbeffe3a 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.
2021-04-03 23:07:01 +01:00
Alan Third
40842f67af Fix NSTRACE failure
* src/nsterm.m ([EmacsSurface getContext]): Remove unneeded '@' symbol.
2021-04-03 23:07:01 +01:00
Alan Third
4e1f92feb3 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.
2021-04-03 23:06:44 +01:00
Stefan Kangas
b0d095b2cd 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.
2021-04-03 21:53:06 +02:00
Stefan Monnier
ebc2b78c8b * lisp/vcursor.el: Use lexical-binding
Remove redundant `:group` args.
(vcursor): Remove unused var declaration.
2021-04-03 14:15:43 -04:00
Michael Albinus
4eca3bd8df * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
Fix code finding //DIRED//.
2021-04-03 18:25:27 +02:00
Stefan Kangas
d47706c552 ; Remove some redundant installation instructions 2021-04-03 12:26:55 +02:00
Michael Albinus
860bc0db1c * 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.
2021-04-03 12:26:14 +02:00
Eli Zaretskii
3ec93bb7c2 Improve doc strings in replace.el
* lisp/replace.el (occur, list-matching-lines-prefix-face)
(list-matching-lines-jump-to-current-line): Doc fixes.
2021-04-03 10:16:34 +03:00
Stefan Kangas
d73229c48e * lisp/pixel-scroll.el: Use lexical-binding. 2021-04-03 04:25:59 +02:00
Stefan Kangas
cd5dfa086d 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.
2021-04-03 03:11:35 +02:00
Stefan Kangas
be9e3c48fa 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.
2021-04-03 03:11:35 +02:00
Stefan Monnier
0b613c90a5 * 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.
2021-04-02 19:51:41 -04:00
Stefan Kangas
5c7766ed10 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.
2021-04-03 00:53:47 +02:00
Stefan Kangas
74a86c1acf 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.
2021-04-03 00:53:43 +02:00