From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id pyR9H0mccV8xYAAA0tVLHw (envelope-from ) for ; Mon, 28 Sep 2020 08:18:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mBoKG0mccV/wOQAAbx9fmQ (envelope-from ) for ; Mon, 28 Sep 2020 08:18:17 +0000 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 37B2E9404D1 for ; Mon, 28 Sep 2020 08:18:16 +0000 (UTC) Received: from localhost ([::1]:47852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMoMR-0006rY-6V for larch@yhetil.org; Mon, 28 Sep 2020 04:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMoM2-0006r8-JW for emacs-orgmode@gnu.org; Mon, 28 Sep 2020 04:17:50 -0400 Received: from udcm-wwu1.uni-muenster.de ([128.176.118.7]:45004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMoM0-0003kZ-5a for emacs-orgmode@gnu.org; Mon, 28 Sep 2020 04:17:50 -0400 IronPort-SDR: UU4KvNs4LN4VXxbB1zT2KMHZHWpnIQAIwGyBY9TKLlsU2jU9o+cw5dt36UyrLlZ0jd3zbhp7Sj DrukjTm595eNT2OqOmlzW3bh06ZR80r0zRtd6IhubcW9QhnPKaEwcwItfmvhfiwUGMumQItgx2 B9/FHobUzNFwjop75pLCquSVYAjJT+fzwupuyvkDULnPlvNU5jtgXRi44SNULRZps0S3i5ChqD 0ZMPz6Y3XyoayMyjg8TP96UJrM7oFbenxc/4GfLRcHTQhgf3ovFnEeFmCNKzhYwtKNuKUEpYnm oYM= X-IronPort-AV: E=Sophos;i="5.77,313,1596492000"; d="scan'208";a="52575586" Received: from wi-exchange.wiwi.uni-muenster.de ([10.2.203.154]) by UDCM-RELAY1.UNI-MUENSTER.DE with ESMTP/TLS/ECDHE-RSA-AES128-SHA256; 28 Sep 2020 10:17:46 +0200 Received: from WIWI-MAIL-2.WIWI.UNI-MUENSTER.DE (128.176.86.149) by WI-MAIL-1.WIWI.UNI-MUENSTER.DE (10.2.203.154) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 28 Sep 2020 10:17:45 +0200 Received: from librem (92.116.42.190) by smtp.wiwi.uni-muenster.de (128.176.86.149) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 28 Sep 2020 10:17:44 +0200 From: Jens Lechtenboerger To: TEC Subject: Re: [PATCH] Enhance org-html--build-meta-info References: <87pn6kfr19.fsf@gmail.com> <87v9gcz9ge.fsf@wi.uni-muenster.de> <87lfh8fkj1.fsf@gmail.com> <87zh5n1p3s.fsf@wi.uni-muenster.de> <87tuvl3fyc.fsf@gmail.com> <878scvs0z7.fsf@wi.uni-muenster.de> <87wo0fktjs.fsf@gmail.com> <874knjrtg9.fsf@wi.uni-muenster.de> <87tuvjkqzl.fsf@gmail.com> OpenPGP: id=0xBCD68E10; url=https://dbis-group.uni-muenster.de/dbms/media/people/lechtenboerger/0xBCD68E10.asc Mail-Followup-To: TEC , org-mode-email Date: Mon, 28 Sep 2020 10:17:39 +0200 In-Reply-To: <87tuvjkqzl.fsf@gmail.com> (TEC's message of "Mon, 28 Sep 2020 02:35:10 +0800") Message-ID: <87sgb28gd8.fsf@wi.uni-muenster.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [92.116.42.190] Received-SPF: pass client-ip=128.176.118.7; envelope-from=Jens.Lechtenboerger@wi.uni-muenster.de; helo=UDCM-WWU1.UNI-MUENSTER.DE X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 04:17:45 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: nP96OoH3QQKJ On 2020-09-28, TEC wrote: > Jens Lechtenboerger writes: > >> On 2020-09-28, TEC wrote: >> >>> Jens Lechtenboerger writes: >>>> Also, in org-html--build-meta-info you call >>>> org-html-encode-plain-text with two arguments, but it just accepts >>>> one. >>> >>> ? No I don't. >> >> Your patch contains this: >> >> + (let* ((title (org-html-encode-plain-text (plist-get info :title) >> info)) > > Ohhhh, that's the bit you were referring to. That's just copied from > the > current state (iirc). Anyway, I dropped the second argument. Without the second argument I get an error =E2=80=9CWrong type argument: stringp,=E2=80=9D when evaluating regular expressions against the cons cell that is returned as title. As I see now, author and title are cons cells, which is why org-element-interpret-data is necessary to produce strings with Org syntax. Also, after fixing the title, I get =E2=80=9Cwrong-type-argument sequencep utf-8=E2=80=9D for =E2=80=9C(concat "text/html;charset=3D" charset)=E2=80= =9D. Best wishes Jens