From: mirko <mirko.vukovic@gmail.com>
To: emacs-orgmode@gnu.org
Subject: bug in org-create-link?
Date: Mon, 24 Feb 2014 17:23:25 +0000 (UTC) [thread overview]
Message-ID: <loom.20140224T181326-42@post.gmane.org> (raw)
The following is with release_8.2.5h-649-g2ae5cf.
I get an error when creating a link to a file.
The error originates in code
(cond ((equal desc "NONE") (setq desc nil))
((string-match org-bracket-link-analytic-regexp desc)
...)
...)
I think the error is due to a quirk in my setup, which I was not able to
isolate yet. I do not get this error with all files, only some of them.
I wonder whether there is some inconsistency in the code. In the lines
immediately preceding the cond statement, desc is set to NIL:
(setq link (or link cpltxt)
desc (or desc cpltxt))
Should desc be set to "NONE" by default like so:
(setq link (or link cpltxt)
desc (or desc cpltxt "NONE"))
Then the cond statement would be able to handle it. I hope someone can
answer that question quicker than for me to figure out the full logic of the
code.
Thanks,
Mirko
next reply other threads:[~2014-02-24 17:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 17:23 mirko [this message]
2014-02-24 17:27 ` bug in org-store-link? (was bug in org-create-link) mirko
2014-03-13 15:28 ` Bastien
2014-03-13 17:10 ` Mirko Vukovic
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20140224T181326-42@post.gmane.org \
--to=mirko.vukovic@gmail.com \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).