From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: ascii export of links to notes broken? Date: Tue, 19 May 2009 08:24:14 +0200 Message-ID: References: <20524da70905162256r7d87090fv3302d51fd5e8f33e@mail.gmail.com> <5271393A-FC47-412B-A1AB-DF6B4A533379@gmail.com> <20524da70905171443w434f9261o136d4e73ebeb180e@mail.gmail.com> <3D9BFCC2-74FE-44AE-A492-ABAA373BF199@gmail.com> <20524da70905171533t3dd5453et97346485e5e57d79@mail.gmail.com> <20524da70905181005o3d9b205h5749449a91a09d7f@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6Jcx-0005TF-3o for emacs-orgmode@gnu.org; Tue, 19 May 2009 03:20:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6Jcr-0005SX-Ph for emacs-orgmode@gnu.org; Tue, 19 May 2009 03:20:42 -0400 Received: from [199.232.76.173] (port=42411 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6Jcr-0005SU-Ig for emacs-orgmode@gnu.org; Tue, 19 May 2009 03:20:37 -0400 Received: from mx20.gnu.org ([199.232.41.8]:52751) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6Jcr-0002Ex-0d for emacs-orgmode@gnu.org; Tue, 19 May 2009 03:20:37 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6Jcp-0006nH-RJ for emacs-orgmode@gnu.org; Tue, 19 May 2009 03:20:36 -0400 Received: by ewy6 with SMTP id 6so4775367ewy.42 for ; Tue, 19 May 2009 00:20:34 -0700 (PDT) In-Reply-To: <20524da70905181005o3d9b205h5749449a91a09d7f@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org 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 > 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