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

* Re: bug in org-store-link? (was bug in org-create-link)
  2014-02-24 17:23 bug in org-create-link? mirko
@ 2014-02-24 17:27 ` mirko
  2014-03-13 15:28   ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: mirko @ 2014-02-24 17:27 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.
> 
... stuff deleted
> 
> Thanks,
> 
> Mirko
> 
> 

mirko <mirko.vukovic <at> gmail.com> writes:

I wrote the incorrect function name.  This is about org-store-link in
org.el, not org-create-link.

The rest still applies.

Mirko

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

* Re: bug in org-store-link? (was bug in org-create-link)
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2014-03-13 15:28 UTC (permalink / raw)
  To: mirko; +Cc: emacs-orgmode

mirko <mirko.vukovic@gmail.com> writes:

> I wrote the incorrect function name.  This is about org-store-link in
> org.el, not org-create-link.

This should be fixed now, thanks for reporting this.

-- 
 Bastien

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

* Re: bug in org-store-link? (was bug in org-create-link)
  2014-03-13 15:28   ` Bastien
@ 2014-03-13 17:10     ` Mirko Vukovic
  0 siblings, 0 replies; 4+ messages in thread
From: Mirko Vukovic @ 2014-03-13 17:10 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

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

Yep, I saw that when I updated git recently.

Thanks :-)


On Thu, Mar 13, 2014 at 11:28 AM, Bastien <bzg@gnu.org> wrote:

> mirko <mirko.vukovic@gmail.com> writes:
>
> > I wrote the incorrect function name.  This is about org-store-link in
> > org.el, not org-create-link.
>
> This should be fixed now, thanks for reporting this.
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 794 bytes --]

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