Re: [Orgmode] w3m integration for yanking w3m buffers into org

2008-10-10 Thread Chris McMahan
Speaking of email and org, has anyone else experienced problems with
linking to VM mail messages through remember? I have yet to get the
proper email to show up when following the links.

- Chris

Richard Riley writes:
>
>I'm not fully aware of the steps needed to integrate new stuff but for
>those using gnus and w3m to read html emails or newsletters then the
>following code might interest you for saving portions into org
>tasks/items. Let me know if there are any issues - it works well for me!
>
>I have the first code saved as manatee.el and "require" it in.
>
>r.
>
>,
>| ;; Code to integrate the w3m article buffer in gnus with org-mode.
>| ;; Kudos to Andy Stewart (ManateeLazyCat on #emacs IRC) for provding
>| ;; the code following a request. Can now paste w3m regions showing html
>| ;; emails and newsletters directly into org-mode buffers with the URLs
>| ;; transformed into org links. There is a default M-w key binding included.
>| ;; 
>| ;; manatee.el for now prior to any integration.
>| ;;
>| ;; Oct 2008, rgr.
>| 
>| (defun w3m-get-buffer-with-org-style ()
>|   "Get current buffer content with `org-mode' style.
>| This function will encode `link-title' and `link-location' with 
>`org-make-link-string'.
>| And move buffer content to lastest of kill ring.
>| So you can yank in `org-mode' buffer to get `org-mode' style content."
>|   (interactive)
>|   (let (transform-start
>| transform-end
>| return-content
>| link-location
>| link-title)
>| (if mark-active
>| (progn
>|   (setq transform-start (region-beginning))
>|   (setq transform-end (region-end))
>|   (deactivate-mark))
>|   (progn
>| (setq transform-start (point-min))
>| (setq transform-end (point-max
>| (message "Start transform link to `org-mode' style, please wait...")
>| (save-excursion
>|   (goto-char transform-start)
>|   ;; (goto-char (point-min))
>|   (while (and (< (point) transform-end)
>|   (not (w3m-no-next-link-p))) ;if have next link in current 
>buffer
>| (if (not (w3m-anchor (point)));don't move when current point 
>have a valid url
>| ;; get content between two links.
>| (setq return-content (concat return-content (buffer-substring 
>(point) (w3m-get-next-link-start)
>| ;; get link location at current point.
>| (setq link-location (w3m-anchor (point)))
>| ;; get link title at current point.
>| (setq link-title (buffer-substring (point) (w3m-get-anchor-end)))
>| ;; concat `org-mode' style url to `return-content'.
>| (setq return-content (concat return-content (org-make-link-string 
>link-location link-title
>|   ;; concat rest context of current buffer
>|   (setq return-content (concat return-content (buffer-substring (point) 
>transform-end)))
>|   (kill-new return-content)
>|   (message "Transform link completed. You can get it from lastest kill 
>ring."
>| 
>| (defun w3m-get-anchor-start ()
>|   "Move and return `point' for thst start of the current anchor."
>|   (interactive)
>|   (goto-char (or (previous-single-property-change (point) 
>'w3m-anchor-sequence) ;get start position of anchor
>|  (point)))   
>   ;or current point
>|   (point))
>| 
>| (defun w3m-get-anchor-end ()
>|   "Move and return `point' after the end of current anchor."
>|   (interactive)
>|   (goto-char (or (next-single-property-change (point) 'w3m-anchor-sequence) 
>;get end position of anchor
>|  (point)))  
>;or current point
>|   (point))
>| 
>| (defun w3m-get-next-link-start ()
>|   "Move and return `point' for that start of the current link."
>|   (interactive)
>|   (catch 'reach
>| (while (next-single-property-change (point) 'w3m-anchor-sequence) ;jump 
>to next anchor
>|   (goto-char (next-single-property-change (point) 'w3m-anchor-sequence))
>|   (when (w3m-anchor (point));return point when current is valid 
>link
>| (throw 'reach nil
>|   (point))
>| 
>| (defun w3m-get-prev-link-start ()
>|   "Move and return `point' for that end of the current link."
>|   (interactive)
>|   (catch 'reach
>| (while (previous-single-property-change (point) 'w3m-anchor-sequence) 
>;jump to previous anchor
>|   (goto-char (previous-single-property-change (point) 
>'w3m-anchor-sequence))
>|   (when (w3m-anchor (point));return point when current is valid 
>link
>| (throw 'reach nil
>|   (point))
>| 
>| 
>| (defun w3m-no-next-link-p ()
>|   "Return t if no next link after cursor.
>| Otherwise, return nil."
>|   (save-excursion
>| (equal (point) (w3m-get-next-link-start
>| 
>| (defun w3m-no-prev-link-p ()
>|   "Return t if no prevoius link after cursor.
>| Otherwise, return nil."
>|   (save-excursion
>| (equal (point) (w3m-get

[Orgmode] w3m integration for yanking w3m buffers into org

2008-10-10 Thread Richard Riley

I'm not fully aware of the steps needed to integrate new stuff but for
those using gnus and w3m to read html emails or newsletters then the
following code might interest you for saving portions into org
tasks/items. Let me know if there are any issues - it works well for me!

I have the first code saved as manatee.el and "require" it in.

r.

,
| ;; Code to integrate the w3m article buffer in gnus with org-mode.
| ;; Kudos to Andy Stewart (ManateeLazyCat on #emacs IRC) for provding
| ;; the code following a request. Can now paste w3m regions showing html
| ;; emails and newsletters directly into org-mode buffers with the URLs
| ;; transformed into org links. There is a default M-w key binding included.
| ;; 
| ;; manatee.el for now prior to any integration.
| ;;
| ;; Oct 2008, rgr.
| 
| (defun w3m-get-buffer-with-org-style ()
|   "Get current buffer content with `org-mode' style.
| This function will encode `link-title' and `link-location' with 
`org-make-link-string'.
| And move buffer content to lastest of kill ring.
| So you can yank in `org-mode' buffer to get `org-mode' style content."
|   (interactive)
|   (let (transform-start
| transform-end
| return-content
| link-location
| link-title)
| (if mark-active
| (progn
|   (setq transform-start (region-beginning))
|   (setq transform-end (region-end))
|   (deactivate-mark))
|   (progn
| (setq transform-start (point-min))
| (setq transform-end (point-max
| (message "Start transform link to `org-mode' style, please wait...")
| (save-excursion
|   (goto-char transform-start)
|   ;; (goto-char (point-min))
|   (while (and (< (point) transform-end)
|   (not (w3m-no-next-link-p))) ;if have next link in current 
buffer
| (if (not (w3m-anchor (point)));don't move when current point 
have a valid url
| ;; get content between two links.
| (setq return-content (concat return-content (buffer-substring 
(point) (w3m-get-next-link-start)
| ;; get link location at current point.
| (setq link-location (w3m-anchor (point)))
| ;; get link title at current point.
| (setq link-title (buffer-substring (point) (w3m-get-anchor-end)))
| ;; concat `org-mode' style url to `return-content'.
| (setq return-content (concat return-content (org-make-link-string 
link-location link-title
|   ;; concat rest context of current buffer
|   (setq return-content (concat return-content (buffer-substring (point) 
transform-end)))
|   (kill-new return-content)
|   (message "Transform link completed. You can get it from lastest kill 
ring."
| 
| (defun w3m-get-anchor-start ()
|   "Move and return `point' for thst start of the current anchor."
|   (interactive)
|   (goto-char (or (previous-single-property-change (point) 
'w3m-anchor-sequence) ;get start position of anchor
|  (point)))
  ;or current point
|   (point))
| 
| (defun w3m-get-anchor-end ()
|   "Move and return `point' after the end of current anchor."
|   (interactive)
|   (goto-char (or (next-single-property-change (point) 'w3m-anchor-sequence) 
;get end position of anchor
|  (point)))  
;or current point
|   (point))
| 
| (defun w3m-get-next-link-start ()
|   "Move and return `point' for that start of the current link."
|   (interactive)
|   (catch 'reach
| (while (next-single-property-change (point) 'w3m-anchor-sequence) ;jump 
to next anchor
|   (goto-char (next-single-property-change (point) 'w3m-anchor-sequence))
|   (when (w3m-anchor (point));return point when current is valid 
link
| (throw 'reach nil
|   (point))
| 
| (defun w3m-get-prev-link-start ()
|   "Move and return `point' for that end of the current link."
|   (interactive)
|   (catch 'reach
| (while (previous-single-property-change (point) 'w3m-anchor-sequence) 
;jump to previous anchor
|   (goto-char (previous-single-property-change (point) 
'w3m-anchor-sequence))
|   (when (w3m-anchor (point));return point when current is valid 
link
| (throw 'reach nil
|   (point))
| 
| 
| (defun w3m-no-next-link-p ()
|   "Return t if no next link after cursor.
| Otherwise, return nil."
|   (save-excursion
| (equal (point) (w3m-get-next-link-start
| 
| (defun w3m-no-prev-link-p ()
|   "Return t if no prevoius link after cursor.
| Otherwise, return nil."
|   (save-excursion
| (equal (point) (w3m-get-prev-link-start
| 
| (define-key w3m-minor-mode-map (kbd "M-w") 
'w3m-get-buffer-with-org-style) 
| 
| (provide 'manatee)
`


-- 
It has become appallingly obvious that our technology has exceeded our 
humanity.  ~Albert Einstein


___
Emacs-orgmode mailing list
Remember: use `Reply 

[Orgmode] Re: Error about TODO sequence states with 6.09 on Emacs 22.1.1

2008-10-10 Thread Daniel Clemente
Bernt Hansen <[EMAIL PROTECTED]> writes:

>
> Are you sure you're using the latest org version?
>

  No. My emacs was using the default org version because my loading sequence 
was wrong. I changed it to:

(add-to-list 'load-path "~/.emacs.d/org-6.09/lisp")
(require 'org-install)

  instead of:

(add-to-list 'load-path "~/.emacs.d/org-6.09")
(require 'org)

  And it works very well.

  I thought that it would be (require 'org) like in other packages. In fact the 
problem was that I tried 'org and it WORKED more or less... but it was the old 
version.

  Thanks for pointing to the problem.


Daniel




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


[Orgmode] Re: Error about TODO sequence states with 6.09 on Emacs 22.1.1

2008-10-10 Thread Bernt Hansen
Daniel Clemente <[EMAIL PROTECTED]> writes:

>   Hi, I'm seeing a problem with TODO states in the latest org-mode version.
>
>
> .emacs file to reproduce the bug::
>
> -
> (add-to-list 'load-path "~/.emacs.d/org-6.09")
> (require 'org)
>
>  (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
>  (define-key global-map "\C-ca" 'org-agenda)
>
> (setq org-agenda-files (quote ("/tmp/test.org")))
>
> (setq debug-on-error t)
>
> (setq org-todo-keywords
>   '( (sequence "START(s)" "|" "ENDED(e)")
>  (sequence "TODO(t)" "|" "DONE(d)")) )
> -
>
>
> The file /tmp/test.org must exist, but its content doesn't matter; it can be 
> empty.
>

Hi Daniel,

I get that error with the default org version which is 4.67 for me.  If
I change your .emacs to use my git sources it works.

,
| (add-to-list 'load-path "~/git/org-mode/lisp")
`

Are you sure you're using the latest org version?

-Bernt


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


[Orgmode] Re: w3m integration for yanking w3m buffers into org

2008-10-10 Thread Richard Riley
Richard Riley <[EMAIL PROTECTED]> writes:

> I'm not fully aware of the steps needed to integrate new stuff but for
> those using gnus and w3m to read html emails or newsletters then the
> following code might interest you for saving portions into org
> tasks/items. Let me know if there are any issues - it works well for me!
>
> I have the first code saved as manatee.el and "require" it in.

A small follow up to this, possibly related to using emacs 23 I dont
know, but I had some load order issues with the keybinding for the w3m
buffer. The following solved it:

,
| (eval-after-load "w3m"  '(load "manatee"))
`

Where "manatee" is the code below.


,
| ;; Code to integrate the w3m article buffer in gnus with org-mode.
| ;; Kudos to Andy Stewart (ManateeLazyCat on #emacs IRC) for provding
| ;; the code following a request. Can now paste w3m regions showing html
| ;; emails and newsletters directly into org-mode buffers with the URLs
| ;; transformed into org links. There is a default M-w key binding included.
| ;; 
| ;; manatee.el for now prior to any integration.
| ;;
| ;; Oct 2008, rgr.
| 
| (defun w3m-get-buffer-with-org-style ()
|   "Get current buffer content with `org-mode' style.
| This function will encode `link-title' and `link-location' with 
`org-make-link-string'.
| And move buffer content to lastest of kill ring.
| So you can yank in `org-mode' buffer to get `org-mode' style content."
|   (interactive)
|   (let (transform-start
| transform-end
| return-content
| link-location
| link-title)
| (if mark-active
| (progn
|   (setq transform-start (region-beginning))
|   (setq transform-end (region-end))
|   (deactivate-mark))
|   (progn
| (setq transform-start (point-min))
| (setq transform-end (point-max
| (message "Start transform link to `org-mode' style, please wait...")
| (save-excursion
|   (goto-char transform-start)
|   ;; (goto-char (point-min))
|   (while (and (< (point) transform-end)
|   (not (w3m-no-next-link-p))) ;if have next link in current 
buffer
| (if (not (w3m-anchor (point)));don't move when current point 
have a valid url
| ;; get content between two links.
| (setq return-content (concat return-content (buffer-substring 
(point) (w3m-get-next-link-start)
| ;; get link location at current point.
| (setq link-location (w3m-anchor (point)))
| ;; get link title at current point.
| (setq link-title (buffer-substring (point) (w3m-get-anchor-end)))
| ;; concat `org-mode' style url to `return-content'.
| (setq return-content (concat return-content (org-make-link-string 
link-location link-title
|   ;; concat rest context of current buffer
|   (setq return-content (concat return-content (buffer-substring (point) 
transform-end)))
|   (kill-new return-content)
|   (message "Transform link completed. You can get it from lastest kill 
ring."
| 
| (defun w3m-get-anchor-start ()
|   "Move and return `point' for thst start of the current anchor."
|   (interactive)
|   (goto-char (or (previous-single-property-change (point) 
'w3m-anchor-sequence) ;get start position of anchor
|  (point)))
  ;or current point
|   (point))
| 
| (defun w3m-get-anchor-end ()
|   "Move and return `point' after the end of current anchor."
|   (interactive)
|   (goto-char (or (next-single-property-change (point) 'w3m-anchor-sequence) 
;get end position of anchor
|  (point)))  
;or current point
|   (point))
| 
| (defun w3m-get-next-link-start ()
|   "Move and return `point' for that start of the current link."
|   (interactive)
|   (catch 'reach
| (while (next-single-property-change (point) 'w3m-anchor-sequence) ;jump 
to next anchor
|   (goto-char (next-single-property-change (point) 'w3m-anchor-sequence))
|   (when (w3m-anchor (point));return point when current is valid 
link
| (throw 'reach nil
|   (point))
| 
| (defun w3m-get-prev-link-start ()
|   "Move and return `point' for that end of the current link."
|   (interactive)
|   (catch 'reach
| (while (previous-single-property-change (point) 'w3m-anchor-sequence) 
;jump to previous anchor
|   (goto-char (previous-single-property-change (point) 
'w3m-anchor-sequence))
|   (when (w3m-anchor (point));return point when current is valid 
link
| (throw 'reach nil
|   (point))
| 
| 
| (defun w3m-no-next-link-p ()
|   "Return t if no next link after cursor.
| Otherwise, return nil."
|   (save-excursion
| (equal (point) (w3m-get-next-link-start
| 
| (defun w3m-no-prev-link-p ()
|   "Return t if no prevoius link after cursor.
| Otherwise, return nil."
|   (save-excursion
| (equal (point) (w3m-get-prev-link-start
| 

[Orgmode] Re: install and info

2008-10-10 Thread Sivaram Neelakantan
Carsten Dominik <[EMAIL PROTECTED]> writes:

> Hi everyone,
>
> I'd be happy to change the default to
>
>infodir = $(prefix)/share/info
>
>
> if this is a better default for most systems.  Is it better?  So could
> people on different systems out there please check where the standard
> info directory is located?
>
> Thanks.
>
> - Carsten
>

[...]

On Windows, if you use unzip the Emacs binary under C:/ drive, the
info folder is under C:/Emacs-22.3/ as c:/Emacs-22.3/info.


 sivaram
 -- 



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


[Orgmode] Error about TODO sequence states with 6.09 on Emacs 22.1.1

2008-10-10 Thread Daniel Clemente


  Hi, I'm seeing a problem with TODO states in the latest org-mode version.


.emacs file to reproduce the bug::

-
(add-to-list 'load-path "~/.emacs.d/org-6.09")
(require 'org)

 (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
 (define-key global-map "\C-ca" 'org-agenda)

(setq org-agenda-files (quote ("/tmp/test.org")))

(setq debug-on-error t)

(setq org-todo-keywords
  '( (sequence "START(s)" "|" "ENDED(e)")
 (sequence "TODO(t)" "|" "DONE(d)")) )
-


The file /tmp/test.org must exist, but its content doesn't matter; it can be 
empty.


Sequence to reproduce the bug:

1. open emacs
2. C-c a a
3. You get this error:

Debugger entered--Lisp error: (wrong-type-argument stringp (sequence "START(s)" 
"|" "ENDED(e)"))
  regexp-quote((sequence "START(s)" "|" "ENDED(e)"))
  mapconcat(regexp-quote ((sequence "START(s)" "|" "ENDED(e)") (sequence 
"TODO(t)" "|" "DONE(d)")) "\\|")
  org-set-regexps-and-options()
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(# "/tmp/test.org" nil nil 
"/home/tmp/test.org" (1391618 65024))
  find-file-noselect("/tmp/test.org")
  org-get-agenda-file-buffer("/tmp/test.org")
  org-prepare-agenda-buffers(("/tmp/test.org"))
  org-prepare-agenda()
  org-agenda-list(nil)
  call-interactively(org-agenda-list)
  byte-code(.trimmed)
  org-agenda(nil)
  call-interactively(org-agenda)


Versions:
GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-05-03 on 
terranova, modified by Ubuntu
org-mode 6.09



Thanks,

Daniel


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


[Orgmode] Re: Can version 6.08 work in Emacs 21?

2008-10-10 Thread Eric S Fraga
On 2008-10-09, Carsten Dominik <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> I  thought hat Org *does* work reasonably well with Emacs 21, but  
> maybe I am wrong?

After some very helpful discussion with Carsten, I found that the
problem was mine (blush!) in that I had been using .elc files compiled
with Emacs 22 on Emacs 21.

Apologies for the noise.

-- 
Eric S Fraga, UCL
BF >++[>++>+++[<]>-]>++.>.<-.++.--.



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


[Orgmode] ideas for org-refile

2008-10-10 Thread Samuel Wales
I am just starting to use org-refile.  I read the manual but these
didn't seem to be there.  (It's possible that I missed one or two.)

Maybe they would be of interest?

*** org-refile
* org-refile: new command to save to the last place saved
thus, you don't need to enter any target.
* org-refile: accept a region if transient-mark-mode
* org-refile: allow you to enter a new item
it will create that and refile under it.  might need to experiment
with different interfaces.
* org-refile: use ido.el or similar when using path method
or iswitchb or anything.el.  obviously you would not want it
to require such packages, but for those who have them.

Thanks.


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


Re: [Orgmode] Re: Any iPhone devellopers here

2008-10-10 Thread Carsten Dominik

Hi Peter, Jeff,

thanks for your reactions.

The idea I am having in mind actually goes back to an old idea by Tim  
O'Callaghan which he sent to emacs-orgmode on April 25, 2006 - oh my,  
is this really more than 2 year ago


Here is the link to Tims message:

http://thread.gmane.org/gmane.emacs.orgmode/139/focus=165

The basic idea is to *give up* on the idea of a mobile version
of Org and to do something different:

1. Get entire Org-files or sections of it onto a mobile device.
   This could be an Org file, or simply an exported agenda list.
   For example, you could automate creation of a number of useful
   on-the-road agenda views, and make sure that these are automatically
   updated on your phone.

2. On the mobile device, use whatever means available to mark entries
   that you have acted upon in some way.  Tim actually had involved
   involved plans to prepend certain letters to headlines, to trigger
   specific actions like switching to a specific TODO state etc.

3. Once synched back to your desktop computer, Emacs would read these
   files and do the required changes in the original Org files.

Tim and I had a few iterations about this, I even wrote
a prototype.  But in the end the project died, I believe mainly because
there was no good way to make sure that Emacs would be able to identify
and find the correct entries.

Tim's proposal has recently crept back into my mind, with two  
modifications:


1. We do now have a system to assign unique IDs to entries, so the
   cross-identification could be made to work.

2. I believe that Tim's idea to actually assign actions is too complex
   and will be hard to implement in a closed way that would not  
constantly
   beg for extension.  Anyway, what if all we do it to record the IDs  
of
   entries that we want to have affected.  To on the device you would  
only

   click/tab an entry and in this way mark it for further attention.
   And then later back at our
   Desktop/Laptop computer, Org will use the list of collected IDs to
   create an agenda view will all entries which were marked while on
   the go.  Then you could go through this list, remember and record
   the actions and enter corresponding notes with the better input
   devices you have available in that environment.

I am not sure if this is a good idea, maybe I am just rambling, or
maybe I should get myself and N810, bite the bullet and cough
up the 300 Eros or so.

But as a poor-men's solution tha could be made to work on
a large number of devices, maybe something like the setup
described above would do the trick?

As  said, I am not sure if this is going anywhere, but comments
are, as always, welcome.

- Carsten



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


Re: n810.... Re: [Orgmode] Re: Any iPhone devellopers here

2008-10-10 Thread Carsten Dominik

Hi Daniel,

I think your message is not off-topic at all, and reminds me that, of  
course,
any attempt to get limited mobile support is always destined to look  
pale

against a mobile version of Emacs :-(

- Carsten

On Oct 8, 2008, at 5:58 AM, Daniel M German wrote:



Jeff> So I had started to write a translator for OrgMode to  
OmniFocus on the
Jeff> iPhone, but I never got the WebDAV updates to function  
properly, and
Jeff> it didn't sync back (OF -> Org).  This made it basically  
unusable and

Jeff> not so hot.

Jeff> If you jailbreak your phone, you can probably get a lot  
further on
Jeff> this project, as you can run any compiled executable that you  
bless
Jeff> with `ldid -S filename`.  I'm not sure if anyone has tried  
compiling
Jeff> emacs on the iPhone, but I imagine that would be quite a feat  
in it's
Jeff> self.  Though it's probably the only way to leverage all your  
org-mode

Jeff> elisp.  If you could settle for some subset, you could probably
Jeff> rewrite what you needed in Obj-C.

Jeff> Any ideas you have for this I'd appreciate hearing about as  
well.



I know this is totally off-topic, but related.

I recently got a N810. The keyboard makes Emacs very usable. I now
have org in it and it is great. I use subversion to syncronize
devices.

One think I really like is remember mode in it. It is way better to
take notes in remember than in any note taking app.

--dmg




--
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .


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




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


Re: [Orgmode] Bug: Org-6.07b Radio Targets / Links don't work after LaTeX export

2008-10-10 Thread Carsten Dominik

Hi Achim,

yes, the entire internal linking system was broken when it comes to  
LaTeX export.

I believe this problem is fixed now, thank you for your report.

- Carsten

On Sep 29, 2008, at 9:35 PM, ASSI wrote:


Hi Org-Mode hackers,

I'm trying to get radio links to work in the LaTeX export, but
something goes wrong.  The target itself is converted to:
\label{TARGET\}\texttt{TARGET}
-^ notice the extra backslash that doesn't belong there!
while all the links are just showing up as \texttt{TARGET}.

I've checked that org-export-latex-all-targets-re matches my radio
targets just fine in the orginal buffer.  The "replace radio links"
part seems to work just fine, if I add some extra characters to the
format string they show up nicely.  The recognition of the radio
links themselves in  org-export-latex-links however does not find
any, radiop does not seem to become true, hence the replacement by
the \texttt{...} fallback, I think.  I have also no idea where the
extra backslash comes from in the target (and the target should
probably not get a link to itself anyway).  My EMACS is version 22.3
if that matters.


Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds



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


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


Re: [Orgmode] latex export

2008-10-10 Thread Carsten Dominik

Hi Johanna,

I think it still does export the full file.  Can you give
use more information, maybe an example file, details about
what your actions are, what results you are getting and what
you did expect.

- Carsten

On Oct 1, 2008, at 1:16 PM, Johanna Matschke wrote:


Hi!

Sofar (up to org-mode 5.xx) "C-c Ce l" would export the hole org  
file. But now (I tested various versions 6.0x) it only exports the  
first heading. Did something change there? How do I get back the  
earlier behaviour?


Thanks!


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




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


Re: [Orgmode] LaTeX export gives extra lines between table of contents and first section

2008-10-10 Thread Carsten Dominik

Hi Hsiu,

looks like there is a bug in the LaTeX exporter when
the very first line of the file is already a headline.
I do not right now see an easy way to fix this, and Bastien
does not seem to have time.  So for the time being,
just leave the first line of a file empty - that should
help.

- Carsten

On Oct 3, 2008, at 3:04 AM, Hsiu-Khuern Tang wrote:


I'm new to Org-Mode, and I'm getting to like it a lot!

I am running Org 6.07b.  I have this simple Org file:


* top level

** second level
 test


If I run M-x org-export-region-as-latex, I get this output:


% Created 2008-10-02 Thu 17:58
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}


\title{* top level}
\author{Tang Hsiu Khuern}
\date{02 October 2008}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents


** second level
 test
\section{second level}

 test

\end{document}


As you can see, there are extra lines between \tableofcontents and  
\section,
which I think shouldn't be there.  If I select the whole file as the  
region and

run M-x org-export-region-as-latex, the extra lines get _duplicated_:


...
\tableofcontents


** second level
 test

** second level
 test
\section{second level}
...


--
Best,
Hsiu-Khuern.


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




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


Re: [Orgmode] possible latex export bug

2008-10-10 Thread Carsten Dominik

Hi Austin,

I believe this bug has been fixed recently by Bastien.  Could you  
please check and confirm that this is the case?


Thanks.

- Carsten

On Oct 2, 2008, at 11:15 AM, Austin Frank wrote:


Hello!

I'll start by confessing up front that I've been tinkering with
different exporting functions these past few weeks, so it's possible
that the bug I'm reporting here is of my own making.  I can't track it
down, so here I am, hat in hand, to ask

a) is this reproducible?  and,
b) if not, any idea which functions I should look at to chase it
 down?

If I have the following org file

--8<---cut here---start->8---
* this is a test
#+begin_latex
\mu
#+end_latex
--8<---cut here---end--->8---

and run org-export-as-latex, I get the following output

--8<---cut here---start->8---
% normal preamble stuff
% ...

\begin{document}

\maketitle


\section*{this is a test}


\mu

\end{document}
--8<---cut here---end--->8---

That's the correct behavior.  If I use this org file

--8<---cut here---start->8---
* this is a test
#+begin_latex
\begin{quote}
\mu
\end{quote}
#+end_latex
--8<---cut here---end--->8---


and run org-export-as-latex, I get

--8<---cut here---start->8---
% normal preamble stuff
% ...
\begin{document}

\maketitle


\section*{this is a test}


\begin{quote}
\mu
\end{quote}
#+end_latex

\end{document}
--8<---cut here---end--->8---

In the second example, the #+end_latex line is not removed during
org-export-to-latex.

Possibly related, possibly unrelated, I'm also seeing that file-local
variables defined at the end of a buffer are being exported verbatim
during org-export-as-latex.  This only happens in cases where the
#+end_latex is also erroneously exported.

--8<---cut here---start->8---
* this is a test
#+begin_latex
\begin{quote}
\mu
\end{quote}
#+end_latex

#+ Local Variables:
#+ org-export-latex-append-header: "
#+ \\usepackage{graphicx}
#+ "
#+ End:
--8<---cut here---end--->8---

gives

--8<---cut here---start->8---
% normal preamble stuff
% ...

\begin{document}

\maketitle

\begin{quote}
\mu
\end{quote}
#+end_latex

#+ Local Variables:
#+ org-export-latex-append-header: "
#+ \\usepackage{graphicx}
#+ "
#+ End:

\end{document}
--8<---cut here---end--->8---

This doesn't just apply to the quote environment, I've reproduced it
with other #begin/end_latex blocks that contain latex environments.
That is to say

--8<---cut here---start->8---
* this is a test
#+begin_latex
\begin{verbatim}
\mu
\end{verbatim}
#+end_latex
--8<---cut here---end--->8---

has the same problem of including the #+end_latex tag after export.

This is with Org-mode version 6.08-pre01, GNU Emacs 23.0.60.1
(powerpc-apple-darwin8.11.0, *Step 9.0) of 2008-10-01.


Can anyone reproduce this?  Any debugging tips?

Thanks,
/au

--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




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


Re: [Orgmode] Symmetric encryption with org-crypt.el?

2008-10-10 Thread Carsten Dominik

Hi Rick,

I don't think anyone has done this, but I would certainly welcome
someone taking up org-crypt.el, adding different options like you
suggest.  I'd be happy to work out the UI, but I do not know anything
about encryption or Emacs packages supporting it.

- Carsten

On Oct 6, 2008, at 11:43 AM, Rick Moynihan wrote:

Is it possible to use a symmetric cipher with org-crypt.el?  I'd  
really like to encrypt certain outlines and encode/decode them on  
several machines without worrying about managing public/private keys.


I can see how using public key crypto might be benefecial when  
sharing files between several parties, but for the case where a  
single user simply wants to synchronise org files between various  
machines (and never store/transmit sensitive data unencrypted) then  
a symmetric cipher seems preferable due to its lower overhead.


Has anyone done this?

R.


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




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