all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Janek F <xerusx@pm.me>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: image-file-name-regexp: Wrong type argument: characterp
Date: Tue, 02 Aug 2022 22:21:59 +0000	[thread overview]
Message-ID: <NWhr2aPO9a8iFMRz3SXQzyOwqCw6QI00aahNEuWV8qmWEf86Es_OfICTctGnTAUGjkkKKd475pLzTUjkjYoiPoDCzzGqcG8epwKfowZVPmc=@pm.me> (raw)

[-- 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 --]

             reply	other threads:[~2022-08-02 22:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02 22:21 Janek F [this message]
2022-08-03  2:29 ` image-file-name-regexp: Wrong type argument: characterp Ihor Radchenko
     [not found]   ` <O_MbdZ9GgaA1AOGJG4A_vm3BKPLE658o9Youb3IRx0iLJwo-3RbtJnFOOt4xW5XGMpwoZNXAcaPuBaeo4cfPmVClYirADtxLlNKHvExw13g=@pm.me>
2022-08-03 22:01     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='NWhr2aPO9a8iFMRz3SXQzyOwqCw6QI00aahNEuWV8qmWEf86Es_OfICTctGnTAUGjkkKKd475pLzTUjkjYoiPoDCzzGqcG8epwKfowZVPmc=@pm.me' \
    --to=xerusx@pm.me \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.