From: Carsten Dominik <carsten.dominik@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: ascii export of links to notes broken?
Date: Tue, 19 May 2009 08:24:14 +0200 [thread overview]
Message-ID: <FB5F7168-9B30-4D09-9139-D9241AD71515@gmail.com> (raw)
In-Reply-To: <20524da70905181005o3d9b205h5749449a91a09d7f@mail.gmail.com>
Hi Samuel,
now I can reproduce the problem.
It happens because you are marking exactly a subtree,
and the headline of the subtree becomes the *title* of
the exported, and indeed, links in titles are not formatted
correctly - the same is true for HTML export.
A worg-around would be to start the region *before* the headline,
then it will not be accepted as exactly one subtree and the
headline will just become a headline, not a title.
HTH
- Carsten
On May 18, 2009, at 7:05 PM, Samuel Wales wrote:
> ===
> #this is a comment because of a vague recollection that the
> #first line isn't supposed to be a headline. has that been
> #fixed?
>
> * this is a headline with a link. [[http://google.com][a search
> engine]]
> this is body text. i put point on the headline at bol, then
> do c-spc c-spc down down down down c-c c-e A and it fails by
> not including notes.
> * this is how i ran it
> emacs -Q --load ~/el/tests-and-publish/org-testcase.el
> * more notes
> transient-mark-mode is nil
> ===
>
> That is the exact buffer. The exact range is as described with the
> keystrokes. The exact command is c-c c-e A.
>
> HIH
>
> On Sun, May 17, 2009 at 22:30, Carsten Dominik
> <carsten.dominik@gmail.com> wrote:
>> Can you please send me the exact buffer you are using, the exact
>> range that
>> is covered by the active region, and the command you then use?
>>
>> So far I have not been abe to reproduce what you are saying.
>>
>> - Carsten
>>
>> On May 18, 2009, at 12:33 AM, Samuel Wales wrote:
>>
>>> The bug occurs when the region is active. It does not occur when I
>>> have a file dedicated to the subtree, mark a region, but don't
>>> have an
>>> active region (transient-mark-mode is off). When I do the latter
>>> but
>>> it is part of a larger file there is a wrong type argument error.
>>>
>>>
>>> *** [[http://google.com][hi]]
>>> text
>>>
>>>
>>> Here is a minimal .emacs.
>>>
>>> (require 'cl)
>>>
>>> (defun alpha-add-path (p) (setq load-path (cons p load-path)))
>>>
>>> (alpha-add-path (concat (getenv "delorgsrc") "/lisp"))
>>> (alpha-add-path (concat (getenv "delpkgbef") "/remember"))
>>>
>>> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
>>>
>>> (defvar alpha-mac-font
>>> "-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1")
>>> '(progn
>>> (progn
>>> (defconst alpha-mac-font-2
>>> "-apple-courier-medium-r-normal--*-*-*-*-*-240-*")
>>> (set-frame-font alpha-mac-font-2))
>>> )
>>> (set-frame-font alpha-mac-font)
>>>
>>> ;;it seems to me that i never want blank lines ending a body
>>> ;;;(setf org-cycle-separator-lines 0)
>>> (setf org-cycle-separator-lines 1)
>>> ;;;(setf org-cycle-separator-lines 2)
>>> ;;keep body indentation intact when promoting and demoting
>>> (setf org-adapt-indentation nil)
>>> ;;;(setf org-adapt-indentation t)
>>>
>>> ;;very strange. this gets overridden with time?
>>> ;;;(setq org-log-done t)
>>> (setq org-log-done 'time)
>>>
>>> (require 'org-install)
>>>
>>> (defvar alpha-org-map (make-sparse-keymap "alpha org map"))
>>> (define-key global-map [f8] alpha-org-map)
>>> (define-key alpha-org-map [f8] 'org-remember) ;c-c r
>>> (define-key alpha-org-map "o" 'org-open-at-point-global) ;c-c o
>>>
>>> (require 'remember-autoloads)
>>> (org-remember-insinuate)
>>>
>>> ;;http://mail.google.com/mail/x
>>> (setf org-file-apps
>>> '(
>>> ;;(auto-mode . emacs)
>>> ;;("\\.x?html?\\'" . default)
>>> ;;("\\.pdf\\'" . default)
>>> (t . emacs)))
>>>
>>> (define-key org-mode-map "\C-cc" (lambda () (interactive) (org-todo
>>> "WAIT")))
>>
>>
>
>
>
> --
> Myalgic encephalomyelitis denialism is causing death and severe
> suffering
> worse than MS. Conflicts of interest are destroying research. /
> You/ can
> get the disease at any time permanently. Do science and justice
> matter to
> you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf
> Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
next prev parent reply other threads:[~2009-05-19 7:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 5:56 ascii export of links to notes broken? Samuel Wales
2009-05-17 21:24 ` Carsten Dominik
2009-05-17 21:43 ` Samuel Wales
2009-05-17 22:03 ` Carsten Dominik
2009-05-17 22:33 ` Samuel Wales
2009-05-18 5:30 ` Carsten Dominik
2009-05-18 17:05 ` Samuel Wales
2009-05-19 6:24 ` Carsten Dominik [this message]
2009-05-19 15:01 ` Samuel Wales
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=FB5F7168-9B30-4D09-9139-D9241AD71515@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@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).