emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Seth Burleigh <wburle@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel][bug] \ in detangling
Date: Thu, 13 Jan 2011 11:16:48 -0600	[thread overview]
Message-ID: <AANLkTikuUv4fqM6Ka2CqdMN46bM1oxeEZeiuVTD0AhS_@mail.gmail.com> (raw)
In-Reply-To: <8762tsd9gg.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 901 bytes --]

thanks. also, when trying to detangle my code, i found another bug.

In the functions org-babel-tangle-jump-to--org and org-babel-detangle, it
uses  org-bracket-link-analytic-regexp to search for the [[file:]] links.
However, it does not include the comment in the regex (";;" in clojure), so
somehow [[name val]] in my code is matched as a link, and then it fails to
detangle.
Also, related, it doesnt include the comment in the regex to find the end of
the block, it just does (concat " " (regexp-quote block-name) " ends here").

Since i only want to detangle clojure code, i simply put this in my .emacs
file to fix it
 (setq org-bracket-link-analytic-regexp
(concat ";;[ ]*"
 "\\[\\["
 "\\(\\(" (mapconcat 'regexp-quote org-link-types "\\|") "\\):\\)?"
 "\\([^]]+\\)"
 "\\]"
 "\\(\\[" "\\([^]]+\\)" "\\]\\)?"
 "\\]"
 ))

I suppose one would have to customize the first two comments per language.

[-- Attachment #1.2: Type: text/html, Size: 1668 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2011-01-13 17:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 16:27 [babel][bug] \ in detangling Seth Burleigh
2011-01-13 17:01 ` Eric Schulte
2011-01-13 17:16   ` Seth Burleigh [this message]
2011-01-13 17:54     ` Seth Burleigh
2011-01-13 21:09       ` Eric Schulte

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=AANLkTikuUv4fqM6Ka2CqdMN46bM1oxeEZeiuVTD0AhS_@mail.gmail.com \
    --to=wburle@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).