emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Re: [PATCH] Re: html-export mangels mailto: links
Date: Sun, 12 Sep 2010 21:24:30 -0400	[thread overview]
Message-ID: <14699.1284341070@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Achim Gratz <Stromeko@nexgo.de> of "Sun, 12 Sep 2010 21:36:07 +0200." <87iq2a92l4.fsf@Rainer.invalid>

Achim Gratz <Stromeko@nexgo.de> wrote:

> Eric S Fraga <ucecesf@ucl.ac.uk> writes:
> > it's the output of "M-x org-version RET" as opposed to the value of
> > org-version.
> 
> They both deliver the same result "7.01trans" for me, that's why I'm
> asking...
> 

org-version makes some assumptions: it calculates a directory as follows

   (concat (file-name-directory (locate-library "org")) "../" ))

and then looks for a ``.git'' subdirectory in that directory. If it is
found, then all is good: it does a ``git describe'' variation to get the
release part.  But if it is not found, then it falls back to the bare
version (without the release part).

E.g. if you git pull into one place and then install the .el files
somewhere else, the .git subdirectory will not be found.

So evaluate these two expressions:

(setq dir (concat (file-name-directory (locate-library "org")) "../" )))
(file-exists-p (expand-file-name ".git" dir))

and you'll probably find that the second one returns nil in your case.

One way to get the release part: arrange your load-path to load org.el[c]
(and the other org .el or .elc files) from the lisp subdirectory of your
git repository.

HTH,
Nick

  reply	other threads:[~2010-09-13  1:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 20:26 [Bug] html-export mangels mailto: links Achim Gratz
2010-09-02  6:35 ` [PATCH] " Noorul Islam K M
2010-09-02 15:33   ` [Accepted] " Bastien Guerry
2010-09-02 15:35   ` [PATCH] " Bastien
2010-09-12 18:29     ` Achim Gratz
2010-09-12 19:02       ` David Maus
2010-09-12 19:23         ` Achim Gratz
2010-09-12 19:29           ` Eric S Fraga
2010-09-12 19:36             ` Achim Gratz
2010-09-13  1:24               ` Nick Dokos [this message]
2010-09-13  4:56                 ` Achim Gratz
2010-09-13 18:34                   ` Achim Gratz

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=14699.1284341070@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=Stromeko@nexgo.de \
    --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).