David Ponce
f94d58008e
Avoid inserting extra space in SVG data
...
* lisp/svg.el (svg-print): Remove useless extra space from
the XML representation of child node. (Bug#72198)
2024-08-04 10:47:16 +03:00
Po Lu
ecf08f0621
Merge from savannah/emacs-29
...
dc4e6b1329
; Update copyright years in more files
64b3777631
; Run set-copyright from admin.el
8e1c56ae46
; Add 2024 to copyright years
# Conflicts:
# doc/misc/modus-themes.org
# doc/misc/texinfo.tex
# etc/NEWS
# etc/refcards/ru-refcard.tex
# etc/themes/modus-operandi-theme.el
# etc/themes/modus-themes.el
# etc/themes/modus-vivendi-theme.el
# lib/alloca.in.h
# lib/binary-io.h
# lib/c-ctype.h
# lib/c-strcasecmp.c
# lib/c-strncasecmp.c
# lib/careadlinkat.c
# lib/cloexec.c
# lib/close-stream.c
# lib/diffseq.h
# lib/dup2.c
# lib/filemode.h
# lib/fpending.c
# lib/fpending.h
# lib/fsusage.c
# lib/getgroups.c
# lib/getloadavg.c
# lib/gettext.h
# lib/gettime.c
# lib/gettimeofday.c
# lib/group-member.c
# lib/malloc.c
# lib/md5-stream.c
# lib/md5.c
# lib/md5.h
# lib/memmem.c
# lib/memrchr.c
# lib/nanosleep.c
# lib/save-cwd.h
# lib/sha1.c
# lib/sig2str.c
# lib/stdlib.in.h
# lib/strtoimax.c
# lib/strtol.c
# lib/strtoll.c
# lib/time_r.c
# lib/xalloc-oversized.h
# lisp/auth-source-pass.el
# lisp/emacs-lisp/lisp-mnt.el
# lisp/emacs-lisp/timer.el
# lisp/info-look.el
# lisp/jit-lock.el
# lisp/loadhist.el
# lisp/mail/rmail.el
# lisp/net/ntlm.el
# lisp/net/webjump.el
# lisp/progmodes/asm-mode.el
# lisp/progmodes/project.el
# lisp/progmodes/sh-script.el
# lisp/textmodes/flyspell.el
# lisp/textmodes/reftex-toc.el
# lisp/textmodes/reftex.el
# lisp/textmodes/tex-mode.el
# lisp/url/url-gw.el
# m4/alloca.m4
# m4/clock_time.m4
# m4/d-type.m4
# m4/dirent_h.m4
# m4/dup2.m4
# m4/euidaccess.m4
# m4/fchmodat.m4
# m4/filemode.m4
# m4/fsusage.m4
# m4/getgroups.m4
# m4/getloadavg.m4
# m4/getrandom.m4
# m4/gettime.m4
# m4/gettimeofday.m4
# m4/gnulib-common.m4
# m4/group-member.m4
# m4/inttypes.m4
# m4/malloc.m4
# m4/manywarnings.m4
# m4/mempcpy.m4
# m4/memrchr.m4
# m4/mkostemp.m4
# m4/mktime.m4
# m4/nproc.m4
# m4/nstrftime.m4
# m4/pathmax.m4
# m4/pipe2.m4
# m4/pselect.m4
# m4/pthread_sigmask.m4
# m4/readlink.m4
# m4/realloc.m4
# m4/sig2str.m4
# m4/ssize_t.m4
# m4/stat-time.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/stdio_h.m4
# m4/stdlib_h.m4
# m4/stpcpy.m4
# m4/strnlen.m4
# m4/strtoimax.m4
# m4/strtoll.m4
# m4/time_h.m4
# m4/timegm.m4
# m4/timer_time.m4
# m4/timespec.m4
# m4/unistd_h.m4
# m4/warnings.m4
# nt/configure.bat
# nt/preprep.c
# test/lisp/register-tests.el
2024-01-02 10:28:14 +08:00
Po Lu
8e1c56ae46
; Add 2024 to copyright years
2024-01-02 09:47:10 +08:00
Stefan Kangas
820deac94b
; Add missing GNU ELPA :core package statements
...
* lisp/bind-key.el:
* lisp/emacs-lisp/map.el:
* lisp/erc/erc.el:
* lisp/external-completion.el:
* lisp/net/ntlm.el:
* lisp/net/soap-client.el:
* lisp/progmodes/python.el:
* lisp/svg.el:
* lisp/use-package/use-package.el: Add GNU ELPA :core package
statements.
2023-10-01 00:09:05 +02:00
Eli Zaretskii
cae528457c
; Add 2023 to copyright years.
2023-01-01 05:31:12 -05:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Stefan Kangas
25ebb9374b
; More minor docfixes found by checkdoc
2021-09-14 07:57:14 +02:00
Stefan Monnier
d398eca44e
* lisp/svg.el: Fix typo in sample code; add minor optimization
...
(svg--elliptical-arc-command, svg--moveto-command)
(svg--lineto-command): Use `mapcan`.
2021-04-24 14:07:12 -04:00
Paul Eggert
ba05d005e5
Update copyright year to 2021
...
Run "TZ=UTC0 admin/update-copyright".
2021-01-01 01:13:56 -08:00
Zajcev Evgeny
f45ce78c40
Explicitly specify svg base_uri using `:base-uri' image property
...
* src/image.c (svg_load): Check `:base-uri' image property to
explicitly set base_uri for images embedded into SVG
(enum svg_keyword_index):
(svg_format): Add :base-uri.
* lisp/svg.el (svg-embed-base-uri-image): New function to embed images
located relative to images `:base-uri'
2020-12-12 12:48:32 +00:00
Stefan Kangas
2c1d839778
* lisp/svg.el: Bump package version to 1.1.
2020-09-06 02:23:12 +02:00
Lars Ingebrigtsen
82f8bee734
Don't add repeated xlmns:xlink declarations in svg-create
...
* lisp/svg.el (svg-create): Fix previous unconditional addition of
the xmlns:xlink declaration -- callers may already add one, and
having it twice is something most svg libraries doesn't like.
2020-03-24 05:30:54 +01:00
Zhu Zihao
b28a9a6cc3
Make svg images with links valid
...
* lisp/svg.el (svg-create): Specify xlink namespace for svg images
(bug#40010).
Copyright-paperwork-exempt: yes
2020-03-20 16:36:40 +01:00
Paul Eggert
365e01cc9f
Update copyright year to 2020
...
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
2020-01-01 00:59:52 +00:00
Lars Ingebrigtsen
5f78e81af0
Revert "Revert "Add support for paths to svg.el""
...
This reverts commit 0a2461be9e
.
Copyright paperwork is now in place, so the patch mistakenly applied
can now be re-applied.
2019-07-31 22:29:29 +02:00
Lars Ingebrigtsen
0a2461be9e
Revert "Add support for paths to svg.el"
...
This reverts commit d6bc55ae2d
.
Paperwork not ready for Felix Klee; will reapply once that's in place.
2019-07-16 15:44:58 +02:00
Felix E. Klee
d6bc55ae2d
Add support for paths to svg.el
...
* doc/lispref/display.texi (SVG Images): Document svg-path,
svg-clip-path and svg-node (bug#32359).
* doc/lispref/display.texi (SVG Path Commands): New node.
* lisp/svg.el (svg--plist-delete, svg--path-command-symbol)
(svg--elliptical-arc-coordinates, svg--elliptical-arc-command)
(svg--moveto-command, svg--closepath-command)
(svg--lineto-command, svg--horizontal-lineto-command)
(svg--vertical-lineto-command, svg--curveto-command)
(svg--smooth-curveto-command)
(svg--quadratic-bezier-curveto-command)
(svg--smooth-quadratic-bezier-curveto-command)
(svg--eval-path-command, svg-path, svg-clip-path, svg-node): New
functions.
2019-07-15 17:07:56 +02:00
Stefan Monnier
d3ae5e1836
* lisp/svg.el: Prepare for distribution via GNU ELPA
...
Add a Version: and Package-Requires:.
Don't require subr-x.
Bring Commentary: from the GNU ELPA version of the package.
(svg-remove): Don't use when-let*.
2019-06-24 17:15:11 -04:00
Glenn Morris
1903e9964f
Merge from origin/emacs-26
...
5ca093d
(origin/emacs-26) Fix doc of 'display-buffer-in-previous-wind...
add2cac
lisp/*.el: Minor docstring fixes
2019-06-11 08:38:34 -07:00
Juanma Barranquero
add2cac586
lisp/*.el: Minor docstring fixes
...
* lisp/subr.el (definition-prefixes): Reflow docstring.
* lisp/svg.el (svg-create): Doc fix to allow arg higlighting.
(svg-gradient, svg-rectangle): Improve docstring formatting.
2019-06-10 23:47:01 +02:00
Paul Eggert
ba809612c0
Merge from origin/emacs-26
...
2fcf2df
Fix copyright years by hand
26bed8b
Update copyright year to 2019
2814292
Fix value of default frame height. (Bug#33921)
2018-12-31 17:57:29 -08:00
Paul Eggert
26bed8ba10
Update copyright year to 2019
...
Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
2019-01-01 01:01:13 +00:00
Paul Eggert
bb267f17f9
Merge from origin/emacs-26
...
63b04c11d5
Fix copyright years by hand
5c7dd8a783
Update copyright year to 2018
220a9ecba1
Merge from Gnulib
312c565566
Don't add empty keyboard macro to macro ring (Bug#24992)
39ca289a7a
Allow customization of decoding of "man" command
f8240815ea
* etc/NEWS: Add security consideration note on passphrase ...
0c78822c70
Fix subtle problem with scroll-down when scroll-margin is ...
acd289c5a4
Fix problems with indexing in User manual
b240c7846b
* lisp/help.el (describe-key): Only (copy-sequence elt) wh...
e879a5444a
* src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846
81b1028b63
Improve documentation of 'inhibit-modification-hooks' and ...
7175496d7a
Fix doc string of 'enable-recursive-minibuffers'
5b38406491
Fix documentation of delsel and of killing text
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
2018-01-01 01:13:04 -08:00
Paul Eggert
5c7dd8a783
Update copyright year to 2018
...
Run admin/update-copyright.
2018-01-01 00:57:59 -08:00
Lars Ingebrigtsen
1ad56d0a6b
Fix up svg text encoding
...
* lisp/svg.el (svg--encode-text): The SVG driver doesn't like
it if we use ' for apostrophe, so use our own encoding
function instead of relying on the xml one.
2017-10-26 21:49:00 +02:00
Lars Ingebrigtsen
658853aebb
* lisp/svg.el (svg--encode-text): Fix off-by-one error in previous patch.
2017-10-19 00:36:44 +02:00
Lars Ingebrigtsen
32f2ab4bbd
(svg--encode-text): Make strings even more valid
...
* lisp/svg.el (svg--encode-text): Quote &<>, too.
2017-10-19 00:34:42 +02:00
Lars Ingebrigtsen
38738f61bc
Encode non-ASCII SVG texts
...
* lisp/svg.el (svg--encode-text): Encode non-ASCII texts.
2017-10-19 00:25:44 +02:00
Paul Eggert
bc511a64f6
Prefer HTTPS to FTP and HTTP in documentation
...
Most of this change is to boilerplate commentary such as license URLs.
This change was prompted by ftp://ftp.gnu.org's going-away party,
planned for November. Change these FTP URLs to https://ftp.gnu.org
instead. Make similar changes for URLs to other organizations moving
away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and
fsf.org when this works, as this will further help defend against
man-in-the-middle attacks (for this part I omitted the MS-DOS and
MS-Windows sources and the test tarballs to keep the workload down).
HTTPS is not fully working to lists.gnu.org so I left those URLs alone
for now.
2017-09-13 15:54:37 -07:00
Mark Oteiza
370d0e7aa7
Update uses of if-let and when-let
...
* lisp/dom.el (dom-previous-sibling):
* lisp/emacs-lisp/package.el (package--with-work-buffer):
(package--sort-deps-in-alist, package--sort-by-dependence):
(package-install-from-archive, package-install):
(package-menu-execute, package-menu--populate-new-package-list):
* lisp/filenotify.el (file-notify--rm-descriptor):
(file-notify--event-watched-file, file-notify--event-file-name):
(file-notify--event-file1-name, file-notify-rm-watch):
(file-notify-valid-p):
* lisp/gnus/message.el (message-toggle-image-thumbnails):
* lisp/gnus/nnimap.el (nnimap-request-move-article):
* lisp/ibuf-ext.el (ibuffer-repair-saved-filters):
* lisp/mpc.el (mpc-format):
* lisp/net/eww.el (eww-tag-meta, eww-process-text-input):
(eww-save-history):
* lisp/net/shr.el (shr-tag-base, shr-tag-object, shr-make-table-1):
* lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
* lisp/svg.el (svg-remove):
* lisp/textmodes/css-mode.el (css--named-color):
(css--colon-inside-funcall):
* lisp/textmodes/sgml-mode.el (html-current-buffer-classes):
(html-current-buffer-ids): Use if-let* and when-let* instead.
2017-09-12 13:18:10 -04:00
Ari Roponen
547f78c813
* lisp/svg.el (svg-line): Fix x/y typo. (Bug#26953)
2017-05-20 17:14:36 -07:00
Lars Ingebrigtsen
0ca61907cf
Allow svg-image to take all create-image PROPS
...
* lisp/svg.el (svg-image): Allow passing in PROPS when
creating an image for convenience.
2017-04-21 06:13:06 +02:00
Glenn Morris
0f83433946
Avoid unnecessary loading of subr-x at run-time
...
* lisp/doc-view.el, lisp/filenotify.el, lisp/info-look.el:
* lisp/svg.el, lisp/emacs-lisp/byte-opt.el, lisp/net/shr.el:
* lisp/textmodes/sgml-mode.el, test/lisp/dom-tests.el:
No need to load subr-x at run-time.
* lisp/gnus/nnheader.el: No need to load subr-x.
; * lisp/emacs-lisp/subr-x.el, lisp/gnus/message.el, lisp/net/nsm.el:
; Comments.
2017-04-18 19:07:28 -04:00
Paul Eggert
e6a782ee1a
Update copyright year to 2017 in master
...
Run admin/update-copyright in the master branch. This fixes files
that were not already fixed in the emacs-25 branch before it was
merged here.
2017-01-01 01:48:59 -08:00
Lars Magne Ingebrigtsen
f7ea7aa11f
New functions svg-text and svg-remove
...
* doc/lispref/display.texi (SVG Images): Document svg-remove.
* doc/lispref/display.texi (SVG Images): Document svg-text.
* lisp/svg.el (svg-remove): New function.
(svg-text): New function.
2016-06-27 22:25:10 +02:00
Lars Magne Ingebrigtsen
44caa96dc5
Add a new function `svg-embed'
...
* doc/lispref/display.texi (SVG Images): Document `svg-embed'.
* lisp/svg.el (svg-embed): New function.
(svg--image-data): Ditto.
2016-06-27 18:20:57 +02:00
Puneeth Chaganti
edb4af7a1d
* lisp/svg.el (svg-create): Fix a typo: xmlsn -> xmlns. (Bug#23589)
2016-05-21 10:02:46 +03:00
Paul Eggert
a11756ad0e
Spelling fixes
2016-04-03 23:17:09 -07:00
Lars Ingebrigtsen
5e8a62917a
Add a library for creating and manipulating SVG images
...
* doc/lispref/display.texi (SVG Images): New section.
* lisp/svg.el: New file.
2016-02-19 16:04:11 +11:00