help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alist keys: strings or symbols


From: Dmitry Alexandrov
Subject: Re: alist keys: strings or symbols
Date: Mon, 20 Jul 2020 02:23:02 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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
>   (concat
>    "#+THE TITLE: Test post\n"
>    "#+AUTHOR: Excalamus\n"
>    "#+DATE: 2020-07-17\n"
>    "#+POST TAGS: blogging tests\n"
>    "\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. ;-)

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]