emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in org-create-link?
@ 2014-02-24 17:23 mirko
  2014-02-24 17:27 ` bug in org-store-link? (was bug in org-create-link) mirko
  0 siblings, 1 reply; 4+ messages in thread
From: mirko @ 2014-02-24 17:23 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-13 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 17:23 bug in org-create-link? mirko
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

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).