emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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

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