emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Janek F <xerusx@pm.me>
Cc: emacs-orgmode@gnu.org
Subject: Re: image-file-name-regexp: Wrong type argument: characterp
Date: Thu, 04 Aug 2022 06:01:42 +0800	[thread overview]
Message-ID: <878ro5htq1.fsf@localhost> (raw)
In-Reply-To: <O_MbdZ9GgaA1AOGJG4A_vm3BKPLE658o9Youb3IRx0iLJwo-3RbtJnFOOt4xW5XGMpwoZNXAcaPuBaeo4cfPmVClYirADtxLlNKHvExw13g=@pm.me>

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


      parent reply	other threads:[~2022-08-03 22:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=878ro5htq1.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=xerusx@pm.me \
    /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 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).