From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yE9DNlTw6mK33AAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 00:01:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ABxYNlTw6mJNswAA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 00:01:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 87D3619E60 for ; Thu, 4 Aug 2022 00:01:56 +0200 (CEST) Received: from localhost ([::1]:46044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJMR8-0007dl-Uo for larch@yhetil.org; Wed, 03 Aug 2022 18:01:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJMPy-0007bg-RT for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 18:00:42 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:40634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJMPx-0005qn-BG for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 18:00:42 -0400 Received: by mail-pg1-x534.google.com with SMTP id f11so16288136pgj.7 for ; Wed, 03 Aug 2022 15:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=2CJOVH5E8RBdNUX+WUKzSHFGv2TLv+nxiuaIiBSBjGs=; b=KK27l7NnQ6DnoBUGA9XE2ZJK8/jjmpFFF/rilKSuxko2/6gc/5ckuiB6lzMDvdRIlQ pr68RCzU1qB1JWP2m7oopevbtDp65L3fWLJb3qk2TyVeisREO9sCr8prSY4axrl6gYuG EHvaf5sUXiLqumaPIt48t0Ok1sYt+fUIJAsCzcrpfxScIFct/01LniFh3C7DxPrzz5/f qK+pHBuysib8F/HaAkjEi8NWtoXMcuG9a77moghoTkt00k5cIQgq5CF2QybJ3+QoiQhM 73Xr8DpkVuPnVnT/XICfG/KttydUujtkDw1Wl9LyelXu1LLmEHjXWwifIZIBcxDmnz+h avmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=2CJOVH5E8RBdNUX+WUKzSHFGv2TLv+nxiuaIiBSBjGs=; b=sSi48gqLdcJgWynzMKsJHcJCNeJs11zyYut/XoxNvwbBODutXXP/KyNt1pEGrYD43A h35duEk1Zjrs/Afg5ikx3NBQPZgavfiTVCNtEHOtiWDtbQkBNv7n52MtPIrDBLXEgr3p sAqdZ9yY4+LDJcnYWJ5bLPSYHhDnCLnvaZNMchG7vd+dsVlXKmn30TXRS5HKf09TSs3M 02cfhD8kVweKs6B73oHlIOuzJuz8Jc68XioZwubrEbmSOuW0vRNI6QA11mIP5GlYmq8+ TcsxlyEVqfxnnTqBAd0ZbrGzB6+mFoOQhgohy/lzD74rKznP88JQEoUNybggTuPDoUqf E1IQ== X-Gm-Message-State: AJIora/apaFE+zcXeUBNn3RbRqAw9T8UOrT3hYaLhIRWgASRFjUaKx8w iFgQZ8Ozlk2UD507M/jaIWM= X-Google-Smtp-Source: AGRyM1v+xRdW6CKWQKEaUubC/2aOfPpjE+6Y6YBMCf0AWmXbrn7sZcoMXaNRlvVhOuLd1BjAPk0E/w== X-Received: by 2002:a63:4620:0:b0:41b:8a9:9868 with SMTP id t32-20020a634620000000b0041b08a99868mr22084316pga.345.1659564039465; Wed, 03 Aug 2022 15:00:39 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id z8-20020a170903018800b0016c9e5f290esm2533771plg.10.2022.08.03.15.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 15:00:38 -0700 (PDT) From: Ihor Radchenko To: Janek F Cc: emacs-orgmode@gnu.org Subject: Re: image-file-name-regexp: Wrong type argument: characterp In-Reply-To: References: <87les6jbz0.fsf@localhost> Date: Thu, 04 Aug 2022 06:01:42 +0800 Message-ID: <878ro5htq1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=yantar92@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659564116; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2CJOVH5E8RBdNUX+WUKzSHFGv2TLv+nxiuaIiBSBjGs=; b=WYaUhCY3rIdJVGWQHOVeQCxgVjCP8uHDWELWg7R4ihD7HTFF74HgSBCqIjb0b23ewnP/Lu FbeIeV9l9bn4X+2B04KmWxqybCDJll/OfPidPDYKATQ9els0Be1mLoy1G7OHxo0F+zDbX2 xbF03UJaBKDLhfCLHn13e2h6P6xp4QfxoIse4WSREp6l1ATa6XziYpmXT0Lu6s3KQD9+ok iMFhkfRTKA9fS9iXA/aX1sSBW2Ax7VsKjQsSDd5V9xVtDoPZwveHhYvxztQrOMsbz6agNq 5p/0wTvDTgWvvTyaLugvrLOt86nZD30PReGXAamRcqv2HDguPLFdEkNLSy/Caw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659564116; a=rsa-sha256; cv=none; b=J/I+UdNzOVSrVDmLnPSdA5k9E2tsJqxCkJlT4FRtuPYFoq4P7FTlBIC6yqoLlmQrKL/8Wn FQG+ab0TOpPbUqGEPyn7xBOw3ImqsxoR3CDyXKw1DdW6BZH3GkMRarDDlbxefDiaAjvcTP IhTH3Fa46eCHGL3tS078cKgeik7OnSMlFJtCpPbVoQLluCoVUIQYoThkczsMtLcYgsNOi2 nVy0eTnEanXSrjxn8I8IiHh/bIBV0X/DsHOFTsmgR8/ndZHYdEKJfJ89/MgQjTurdthJCN vYdbv/nUL+ZU1qkvMuHGWREZ8ZhMDg3u2UGPBEVAjKPHBzA/ArwT2bAgstx55A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KK27l7Nn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KK27l7Nn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 87D3619E60 X-Spam-Score: -7.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: ls3f4AZrh4J/ Adding back Org ML to the CC. Janek F 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