Re: [Orgmode] Drawers

2007-12-22 Thread Adam Spiers
On Tue, Oct 16, 2007 at 12:57:37AM +0100, Bastien wrote:
 Richard G Riley [EMAIL PROTECTED] writes:
 
  Is is possible to specify file specific drawers?
 
 Put this at the end of your .org file:
 
 # Local Variables:
 # org-drawers: '(PROPERTIES CLOCK MYDRAW)
 # End:
 
 This is a general Emacs mechanism for setting local variable: check it
 out here: (info (emacs)Specifying File Variables)

I only just noticed that since 5.13 #+DRAWERS is available for
per-file customization - very nice.  However, I still had the above
syntax in my files, and it appears that quoting the list breaks a
number of things including export:

Debugger entered--Lisp error: (wrong-type-argument sequencep quote)
  mapconcat(identity (quote (HIDE STATE PROPERTIES CLOCK)) \\|)
  org-cleaned-string-for-export(#(\n* [... snip ...]
  org-export-as-ascii(nil)
  call-interactively(org-export-as-ascii)
  org-export()
  call-interactively(org-export)

M-x set-variable also spots something is wrong if you include the quote:

set-variable: Value `(quote (HIDE STATE PROPERTIES CLOCK))' does not 
match type repeat of org-drawers

In other words, if you wanted to use Local Variables rather than
#+DRAWERS (though I can't think why you would now that #+DRAWERS is
available), then presumably it should be:

  # Local Variables:
  # org-drawers: (PROPERTIES CLOCK MYDRAW)
  # End:

However, even that doesn't work for me.  Oh well, I'm scrapping it
anyway in favour of #+DRAWERS.

On a related note, please could HIDE or HIDDEN be included in the
default org-drawers list?  Seems like a common enough use case to
justify being a default, and I can't imagine it annoying anyone who
doesn't need it.


___
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] XOXO export leaves point at buffer end

2007-12-22 Thread Adam Spiers
(Can you tell I'm testing exporting? :-)

Subject says it all: with other exports, the point is left where it
was before export was initiated, whereas XOXO export moves it to the
end of the buffer, which is slightly irritating.


___
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] BUG: HTML export interprets URL fragments as subscript

2007-12-22 Thread Adam Spiers
e.g. with

* PROJECT N810
** NEXT [#C] fix N810 dialup:@internet:sub60:org:computer:
*** 
http://maemo.org/development/documentation/how-tos/4-x/maemo_connectivity_guide.html

when I export as HTML, connectivity appears in subscript.


___
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] FR: allow absolute pathnames for EXPORT_FILE_NAME

2007-12-22 Thread Adam Spiers
Another self-explanatory one :-)

Would be great if it could support ~ expansion of home directories via
`expand-file-name' too.

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


[Orgmode] Bug in HTML export of region with single heading?

2007-12-22 Thread Adam Spiers
When selecting a region containing a single tree for HTML export, the
tree head doesn't always become the document title.  For example, if I
select the tree via C-c @ (`outline-mark-subtree') then M-2 C-c C-e h,
it treats it as if it had more than one top-level heading.  But if I
then move the end of the region one character forward to the beginning
of the next line (`outline-mark-subtree' leaves it ending at the end
of the last line of the subtree, not the beginning of the next), and
do the same export, the document title is set correctly and so on.


___
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] hotkeys for org in gnome

2007-12-22 Thread Bastien
Eric Schulte [EMAIL PROTECTED] writes:

 On Monday, December 17, at 15:20, Adam Spiers wrote:
   On Mon, Dec 17, 2007 at 10:27:40AM +0400, Dmitri Minaev wrote:
On Dec 15, 2007 8:34 AM, Rustom Mody [EMAIL PROTECTED] wrote:
 I was wondering if there is some way that in addition to activating
 emacs it is possible to run remember

I believe this is one more argument in favor of scriptable window
managers. In Stumpwm, Sawfish and, I assume, in Ion it's a trivial
task.
   
   Agreed!  Alas, I was forced to abandon sawfish after its development
   and maintenance slowed down to a crawl.

 I've been looking into window managers which can integrate well
 w/emacs, and it looks like FVWM http://fvwm.org/ is *very*
 customizable, and it is actively maintained.

For those who speak python, I've just discover this new window manager
and think it could get along great with Emacs: PycaWM

http://pycawm.last-exile.org/

-- 
Bastien


___
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] emacs on the N800

2007-12-22 Thread Bastien
Hi,

finally I didn't switch to the N810.  The N800 already fits most of my
needs (who really need such a tool?).  

Daniel M German [EMAIL PROTECTED] writes:

 I can provide a tar file for /usr/local with emacs in it. But I don't
 have it packaged, thought. I don't now how to do i.

Regarding this, i've found this resource:

  http://www.ibm.com/developerworks/linux/library/l-lob800-1.html

Check the Creating maemo packages section - perhaps someone could make
an Emacs 23 package and see if org-mouse is working?  I've been fiddling
too much with the device for now !

-- 
Bastien


___
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] Convert the region into an abbrev link

2007-12-22 Thread Bastien
Hi list,

I'm regularily using Org for taking notes in meetings.  It's very handy
to be able to send a HTML/PDF report to everyone quickly.  While doing
this, I like to link some parts of the text that need to be searched
further, after the meeting.

Then I'm using this small function to convert the selected text into a
google search:

(defun bzg-org-googlify-region (beg end)
  Convert the selected region into a google search.
This requires that \google\ is an abbreviated link for
http://www.google.com/search?q=%s;
  (interactive r)
  (let ((query (buffer-substring beg end)))
(delete-region beg end)
(insert (org-make-link-string (concat google: query) query

This can be generalized for any kind of abbreviated link:

(defun bzg-org-abbrev-linkify-region (beg end)
  Convert the selected region into an abbreviated link.
  (interactive r)
  (let ((abbrev
 (completing-read 
  Abbrev:  
  (mapcar (lambda (x) (list (concat (car x) :)))
  (append org-link-abbrev-alist-local 
  org-link-abbrev-alist
(reg (buffer-substring beg end)))
(delete-region beg end)
(insert (org-make-link-string (concat abbrev reg) reg

I guess this might be useful to other people...

-- 
Bastien


___
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] Org-mode version 5.17

2007-12-22 Thread Bastien
Bastien [EMAIL PROTECTED] writes:

 Here is the only slight oddity I've found so far:  when moving folded
 trees, sometimes the moved tree will be swallowed in the previous or
 next fold...

More on this: I think this is due to the fact that any empty line at the
end of a subtree is considered to be part of the *next* subtree...

Maybe it is reasonable to consider that any subtree ends with a minimum
of 1 empty line?  I guess this would solve the problem of wrongly folded
subtrees...

-- 
Bastien


___
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] emacs on the N800

2007-12-22 Thread Adam Spiers
On Sat, Dec 22, 2007 at 05:05:16PM +0100, Bastien wrote:
 Hi,
 
 finally I didn't switch to the N810.  The N800 already fits most of my
 needs (who really need such a tool?).  
 
 Daniel M German [EMAIL PROTECTED] writes:
 
  I can provide a tar file for /usr/local with emacs in it. But I don't
  have it packaged, thought. I don't now how to do i.

I have compiled and successfully run emacs 22.1 with GTK inside the
Chinook (maemo 4.0) x86 scratchbox environment:

  http://www.adamspiers.org/maemo/maemacs.png

It was impressively easy using the VMware-based SDK VM image.  Next
step is to recompile for the Chinook ARMEL target and build a .deb to
test on the N810 itself.  Note that there is already a project started
with a cute name by someone else with the same goals:

  https://garage.maemo.org/projects/maemacs

He accepted me as a developer on the project so hopefully we can work
together.

 Regarding this, i've found this resource:
 
   http://www.ibm.com/developerworks/linux/library/l-lob800-1.html
 
 Check the Creating maemo packages section - perhaps someone could make
 an Emacs 23 package and see if org-mouse is working?  I've been fiddling
 too much with the device for now !

I am certainly intending to try that very soon.  The breadth and depth
of developer resources for maemo is extremely impressive:

  http://maemo.org/development/documentation/

which fills me with confidence that the platform will continue to
thrive and that it will prove a very useful little toy^H^H^Htool ;-)


___
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] hotkeys for org in gnome

2007-12-22 Thread Rustom Mody
On Dec 22, 2007 9:22 PM, Bastien [EMAIL PROTECTED] wrote:
 Eric Schulte [EMAIL PROTECTED] writes:

  On Monday, December 17, at 15:20, Adam Spiers wrote:
On Mon, Dec 17, 2007 at 10:27:40AM +0400, Dmitri Minaev wrote:
 On Dec 15, 2007 8:34 AM, Rustom Mody [EMAIL PROTECTED] wrote:
  I was wondering if there is some way that in addition to activating
  emacs it is possible to run remember

 I believe this is one more argument in favor of scriptable window
 managers. In Stumpwm, Sawfish and, I assume, in Ion it's a trivial
 task.
   
Agreed!  Alas, I was forced to abandon sawfish after its development
and maintenance slowed down to a crawl.
 
  I've been looking into window managers which can integrate well
  w/emacs, and it looks like FVWM http://fvwm.org/ is *very*
  customizable, and it is actively maintained.

 For those who speak python, I've just discover this new window manager
 and think it could get along great with Emacs: PycaWM

 http://pycawm.last-exile.org/

 --
 Bastien

I guess that there are -- broadly speaking -- 3 ways of handling this:

1. A programmable window manager
2. Generating arbitrary sequence of events by stuffing the
corresponding keys into the window manager using (something like)
xrecord
3. Using emacs' own clientserver setup ie emacsclient

I have as of now opted for the 3rd option. My setup is as follows:

.emacs has the following:

(server-start)
(defun myserver ()
  (raise-frame)
  (make-frame-visible)
  (remember))

gconf-editor-apps-metacity-keybindings-command_1 has the binding:

bash -c wmctrl -a emacs; emacsclient -n -e '(myserver)'
Actually it has
bash -c wmctrl -a emacs-snapshot-gtk; emacsclient.emacs-snapshot -n
-e '(myserver)'
because of debian peculiarities with respect to emacs 22.

And gconf-editor-apps-metacity-global-keybindings has run_command_1
bound to the keystroke mod4e ie Win-e

Note that this is not quite satisfactory to me because the raise-frame
and the make-frame-visible are both redundant and insufficient.  Which
is why I need the wmctrl. Which is why I need the bash -c.

If anyone finds a way of streamlining this please post it!


___
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] Using C-c - to (un)listify and/or C-c * to (un)headify ?

2007-12-22 Thread Bastien
Ahem. Sorry for the messy subject line.  
Here are two needs I often meet:

1. I need to listify the lines between a region
2. I need to convert lines into headlines

For now I'm using two simple functions (see below).  But I think there
is room for improvement.

The first function could be merged into (org-ctrl-c-minus): (un)listify
the active region, and if there is no active region, just cycle through
the list types (as it does now).  The second fonction could convert raw
lines into headings and headings back into raw lines.

Do other people find this useful?


(defun bzg-org-convert-to-plain-list (beg end)
  Convert each line in the region into a plain list.
  (interactive r)
  (string-rectangle beg end - ))

(defun bzg-org-convert-to-headings (beg end)
  Convert each line in the region into subheadings.
  (interactive r)
  (let ((stars (save-excursion
 (re-search-backward org-complex-heading-regexp nil t)
 (or (match-string 1) *)))
(add-stars (if org-odd-levels-only ** *)))
(string-rectangle beg end (concat add-stars stars  

(define-key org-mode-map (kbd C-c C--) 'bzg-org-convert-to-list)
(define-key org-mode-map (kbd C-c C-*) 'bzg-org-convert-to-headings)


-- 
Bastien


___
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] emacs on the N800

2007-12-22 Thread Adam Spiers
On Thu, Dec 13, 2007 at 04:27:16PM +, Adam Spiers wrote:
 On Wed, Dec 12, 2007 at 09:43:18AM -0800, Daniel M German wrote:
  Adam Spiers twisted the bytes to say:
On the other hand I have read that emacs23 has support for this type
of devices, but I have not compiled it yet.
  
   Adam Interesting!  Do you have any more details on the kind of extra 
  support?
  
  No idea. Just one comment in the maemo users mailing list.
 
 Hmm, couldn't see it here:
 
http://search.gmane.org/?query=emacsgroup=gmane.comp.handhelds.maemo.user
 
 Got a URL?

Ahah, is this what you were thinking of?

  http://djcbflux.blogspot.com/2007/12/maemacs.html



___
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] emacs on the N800

2007-12-22 Thread Bastien
Adam Spiers [EMAIL PROTECTED] writes:

R On Thu, Dec 13, 2007 at 04:27:16PM +, Adam Spiers wrote:
 On Wed, Dec 12, 2007 at 09:43:18AM -0800, Daniel M German wrote:
  Adam Spiers twisted the bytes to say:
On the other hand I have read that emacs23 has support for this type
of devices, but I have not compiled it yet.
  
   Adam Interesting!  Do you have any more details on the kind of extra 
  support?
  
  No idea. Just one comment in the maemo users mailing list.
 
 Hmm, couldn't see it here:
 
http://search.gmane.org/?query=emacsgroup=gmane.comp.handhelds.maemo.user
 
 Got a URL?

 Ahah, is this what you were thinking of?

   http://djcbflux.blogspot.com/2007/12/maemacs.html

Well caught!  Hopefully he will join your effort in building Emacs for
maemo (I hope I will too someday.)

-- 
Bastien


___
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] Org Radio

2007-12-22 Thread Bastien
Hi David,

David O'Toole [EMAIL PROTECTED] writes:

 I'm writing an add-on for Org (again!)

 This one is called radio.el. It lets you annotate files (or even
 individual lines within files) with arbitrary org subtrees.

Great!  I played with it a bit, and I like the general idea.  I thought
about doing something similar a while ago, because the one thing I lack
in Emacs is the ability to take notes against one particular file and to
see from within the file if there are notes attached to it...

Maybe one direction for further improvements: I don't really like the
glyph :.  I would prefer that taking notes is done against a region
and that the whole region get overlayed when you activate radio-mode (or
whatever mode it could be.)

Remember the GPLv3 comment process and the way comments were overlined.
Turning your mode on could overline regions that are annotated, and
those overlined regions could link to the note in the attached Org
file...  

Does this fit with your use of the tool ?

-- 
Bastien


___
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] hotkeys for org in OS X (WAS gnome)

2007-12-22 Thread William Henney
Hi list

On Dec 22, 2007 12:00 PM, Rustom Mody [EMAIL PROTECTED] wrote:
 I guess that there are -- broadly speaking -- 3 ways of handling this:

 1. A programmable window manager
 2. Generating arbitrary sequence of events by stuffing the
 corresponding keys into the window manager using (something like)
 xrecord
 3. Using emacs' own clientserver setup ie emacsclient

 I have as of now opted for the 3rd option. My setup is as follows:

 .emacs has the following:

 (server-start)
 (defun myserver ()
   (raise-frame)
   (make-frame-visible)
   (remember))


Inspired by Rustom's post, I have experimented with doing a similar
thing for OS X, using applescript. The following seems to work OK.

- begin script -
tell application Aquamacs Emacs
activate
delay 1
tell application System Events
tell process Emacs
tell window 1
key code 53
keystroke :
keystroke (myfunc)
keystroke return
end tell
end tell
end tell
end tell
 end script 

This script can be bound to a hotkey using QuickSilver, or similar.
Note that this doesn't use emacsclient, so it is an example of
Rustom's 1st option. It is heavily indebted to a similar script that
Bill Clementson posted on his blog
(http://bc.tech.coop/blog/041219.html)

The function myfunc does not need to contain the raise-frame and
make-frame-visible commands.

The command delay 1 is there to work around a bug in the virtual
desktop software that I use. If emacs is running on a different
desktop, then it receives a switch-frame command just after it is
raised. Without the delay, the switch-frame can show up in the middle
of the M-: (myfunc) sequence, which breaks things.

Happy Xmas to all you org-ers! A special festive thanks to our
glorious leader Carsten, and his trusty lieutenant Bastien.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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