unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dmitry Alexandrov <dag@gnui.org>
To: excalamus@tutanota.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: alist keys: strings or symbols
Date: Mon, 20 Jul 2020 02:23:02 +0300	[thread overview]
Message-ID: <1rl7w0mh.dag@gnui.org> (raw)
In-Reply-To: <MCbssBv--3-2@tutanota.com> (excalamus's message of "Sun, 19 Jul 2020 18:23:52 +0200 (CEST)")

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2020-07-19 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19 16:23 alist keys: strings or symbols excalamus--- via Users list for the GNU Emacs text editor
2020-07-19 23:23 ` Dmitry Alexandrov [this message]
2020-07-20  9:01 ` tomas

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1rl7w0mh.dag@gnui.org \
    --to=dag@gnui.org \
    --cc=excalamus@tutanota.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).