From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Alexandrov Newsgroups: gmane.emacs.help Subject: Re: alist keys: strings or symbols Date: Mon, 20 Jul 2020 02:23:02 +0300 Message-ID: <1rl7w0mh.dag@gnui.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: excalamus@tutanota.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 20 01:25:01 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxIg0-0008DM-Jp for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 20 Jul 2020 01:25:00 +0200 Original-Received: from localhost ([::1]:38830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxIfz-0002h2-CD for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Jul 2020 19:24:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxIeD-0002gi-Hh for help-gnu-emacs@gnu.org; Sun, 19 Jul 2020 19:23:09 -0400 Original-Received: from relay-1.mailobj.net ([213.182.54.6]:46731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxIeB-0000Vq-Mh for help-gnu-emacs@gnu.org; Sun, 19 Jul 2020 19:23:09 -0400 Original-Received: from v-1c.localdomain (unknown [192.168.90.161]) by relay-1.mailobj.net (Postfix) with SMTP id 1940711C0; Mon, 20 Jul 2020 01:23:05 +0200 (CEST) Original-Received: by mail-1.net-c.com [213.182.54.15] with ESMTP Mon, 20 Jul 2020 01:23:05 +0200 (CEST) X-EA-Auth: CB9Bj02ITC3OaaZ1cfhCOzuBNTjQjGPDTY13935+79c6wIT2v5MZQg0w7aejXG6B+THZOeTUfm6B4Ni8WP/aTwazSsgLvOv2 In-Reply-To: (excalamus's message of "Sun, 19 Jul 2020 18:23:52 +0200 (CEST)") Received-SPF: pass client-ip=213.182.54.6; envelope-from=dag@gnui.org; helo=relay-1.mailobj.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/19 19:23:05 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123564 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable excalamus@tutanota.com wrote: > The string may also have characters illegal for use as a symbol. Namely? > Here's what happens with illegal symbol characters in the string. > > #+begin_src emacs-lisp :results verbatim :session exc > (setq exc-bad-meta-data > =C2=A0 (concat > =C2=A0=C2=A0 "#+THE TITLE: Test post\n" > =C2=A0=C2=A0 "#+AUTHOR: Excalamus\n" > =C2=A0=C2=A0 "#+DATE: 2020-07-17\n" > =C2=A0=C2=A0 "#+POST TAGS: blogging tests\n" > =C2=A0=C2=A0 "\n")) > > (setq exc-alist-i-bad (exc-parse-org-meta-data-intern exc-bad-meta-data)) > exc-alist-i-bad > #+end_src > > #+RESULTS: > : ((AUTHOR . "Excalamus") (DATE . "2020-07-17")) > > How are situations like these best handled? You mean space? Space perfectly valid character for a symbol. I suppose, the result above is due to space being invalid character for org= -mode metadata. ;-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYIACsWIQRSX35grYEsI2F1K7TIsPhUjufz5wUCXxTV1g0cZGFnQGdudWku b3JnAAoJEMiw+FSO5/PnJAwBANE0Nzje8sQjSpcT/yeEwdfhu7fA/dZglt578sfA D9XlAP9XXZ10RpEs6cw870WU5ejhO+Nkox50wXlX48aIBmE0Bg== =+xNv -----END PGP SIGNATURE----- --=-=-=--