* image-file-name-regexp: Wrong type argument: characterp
@ 2022-08-02 22:21 Janek F
2022-08-03 2:29 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Janek F @ 2022-08-02 22:21 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 767 bytes --]
Hello,
I wanted to mark certain filenames as images and added this to my config.el:
(add-to-list 'image-file-name-regexps "/preview/")
But when I run `org-toggle-inline-images` now, I get the following error.
image-file-name-regexp: Wrong type argument: characterp, "/preview/"
Even though it says:
```lisp
image-file-name-regexps is a variable defined in image-file.el.gz.
Value
("/preview/")
Documentation
List of regexps matching image-file filenames.
```And the variable is clearly a list.
As posted in [https://emacs.stackexchange.com/questions/72902/image-file-name-regexp-wrong-type-argument-characterp](https://emacs.stackexchange.com/questions/72902/image-file-name-regexp-wrong-type-argument-characterp?noredirect=1#comment118105_72902)
Best,
Janek
[-- Attachment #2: Type: text/html, Size: 2605 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: image-file-name-regexp: Wrong type argument: characterp
2022-08-02 22:21 image-file-name-regexp: Wrong type argument: characterp Janek F
@ 2022-08-03 2:29 ` Ihor Radchenko
[not found] ` <O_MbdZ9GgaA1AOGJG4A_vm3BKPLE658o9Youb3IRx0iLJwo-3RbtJnFOOt4xW5XGMpwoZNXAcaPuBaeo4cfPmVClYirADtxLlNKHvExw13g=@pm.me>
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-08-03 2:29 UTC (permalink / raw)
To: Janek F; +Cc: emacs-orgmode@gnu.org
Janek F <xerusx@pm.me> writes:
> I wanted to mark certain filenames as images and added this to my config.el:
>
> (add-to-list 'image-file-name-regexps "/preview/")
>
> But when I run `org-toggle-inline-images` now, I get the following error.
>
> image-file-name-regexp: Wrong type argument: characterp, "/preview/"
This is likely because you are using the bleeding edge Emacs.
Please update your Emacs to fix the issue, which is on Emacs side.
See https://lists.gnu.org/archive/html/emacs-devel/2022-08/msg00004.html
Best,
Ihor
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: image-file-name-regexp: Wrong type argument: characterp
[not found] ` <O_MbdZ9GgaA1AOGJG4A_vm3BKPLE658o9Youb3IRx0iLJwo-3RbtJnFOOt4xW5XGMpwoZNXAcaPuBaeo4cfPmVClYirADtxLlNKHvExw13g=@pm.me>
@ 2022-08-03 22:01 ` Ihor Radchenko
0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-08-03 22:01 UTC (permalink / raw)
To: Janek F; +Cc: emacs-orgmode
Adding back Org ML to the CC.
Janek F <xerusx@pm.me> writes:
> Actually, I am running 28.1 from the Arch Repos, with Doom Emacs.
> Does that still apply?
>
> Thanks for the pointer anyways.
It does not, indeed.
> I wanted to mark certain filenames as images and added this to my config.el:
> (add-to-list 'image-file-name-regexps "/preview/")
>
> But when I run `org-toggle-inline-images` now, I get the following error.
>
> image-file-name-regexp: Wrong type argument: characterp, "/preview/"
I looked further and I am able to reproduce.
However, it has nothing to do with Org. It is a bug in Emacs. In
image-file-name-regexp function. image-file-name-regexp assumes that
image-file-regexps variable is a string.
Please, report this bug to Emacs developers via M-x report-emacs-bug
Best,
Ihor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-03 22:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-02 22:21 image-file-name-regexp: Wrong type argument: characterp Janek F
2022-08-03 2:29 ` Ihor Radchenko
[not found] ` <O_MbdZ9GgaA1AOGJG4A_vm3BKPLE658o9Youb3IRx0iLJwo-3RbtJnFOOt4xW5XGMpwoZNXAcaPuBaeo4cfPmVClYirADtxLlNKHvExw13g=@pm.me>
2022-08-03 22:01 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).