[Orgmode] Patchwork: Patch 135 Accepted

2010-07-14 Thread Carsten Dominik
Patch 135 (http://patchwork.newartisans.com/patch/135/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C87pqypd3t4.fsf%40fastmail.fm%3E

___
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


[Orgmode] Patchwork: Patch 136 Accepted

2010-07-14 Thread Carsten Dominik
Patch 136 (http://patchwork.newartisans.com/patch/136/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C1279170831-4195-1-git-send-email-dmaus%40ictsoc.de%3E

___
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


[Orgmode] [PATCH] Locally bind variable `txt'.

2010-07-14 Thread David Maus
* org-list.el (org-list-send-list): Locally bind variable
`txt'.
---
 lisp/org-list.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-list.el b/lisp/org-list.el
index 4e4306e..e68b952 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -1286,7 +1286,7 @@ this list."
   (item-beginning (org-list-item-beginning))
   (list (save-excursion (org-list-goto-true-beginning)
 (org-list-parse-list)))
-  beg)
+  txt beg)
   (unless (fboundp transform)
(error "No such transformation function %s" transform))
   (setq txt (funcall transform list))
-- 
1.7.1


___
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


Re: [Orgmode] Inline image display and Emacs 22

2010-07-14 Thread Samuel Wales
i do not have that problem, is what i am saying, bernt.

___
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


Re: [Orgmode] Inline image display and Emacs 22

2010-07-14 Thread Bernt Hansen
Samuel Wales  writes:

> i have not been able to get emacs 23 to work on my mac, even with
> various patches.  so i will keep using 22.
>
> you can port c-l to 22.
>
> copying subtrees works for me.

Copying subtrees works... but the colours on TODO keywords get lost.
It's just font lock stuff and not really important but it looks weird.

-Bernt

___
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


[Orgmode] Re: Inline image display and Emacs 22

2010-07-14 Thread Bernt Hansen
Bernt Hansen  writes:

> 5. org-reveal (C-c C-r) works slightly differently in Emacs 22 and
>23.  I actually prefer the Emacs 22 version.
>
>If I am in a folded buffer and C-c C-r on a headline the
>following task is /not/ revealed in Emacs 23 but it is in
>Emacs 22.  My workaround for this is to move to the next line and
>then do C-c C-r in Emacs 23 to get the desired behaviour, and
>then return to the headline.

 M-x hide-other
 C-c C-r

 seems to reliably reproduce this for me.

-Bernt

___
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


Re: [Orgmode] Inline image display and Emacs 22

2010-07-14 Thread Samuel Wales
i have not been able to get emacs 23 to work on my mac, even with
various patches.  so i will keep using 22.

you can port c-l to 22.

copying subtrees works for me.

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly disease for 25 years]
==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
PNAS must publish the original Lo and Alter NIH/FDA XMRV paper -- held
back by the US government -- verbatim along with the new paper.

___
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


[Orgmode] Re: Inline image display and Emacs 22

2010-07-14 Thread Bernt Hansen
Bernt Hansen  writes:

> Hi Carsten,
>
> I'm seriously considering ditching my Emacs 22 in favour of Emacs 23
> from a git snapshot.  I'm running an older version of Emacs from a
> stable debian system as my workstation setup -- I've been too lazy to
> upgrade so far but there are now a few nagging issues with org-mode that
> are just starting to bug me enough to make this move.
>
>   1. Inline image display doesn't seem to work correctly in Emacs22
>  The images are displayed but they all overlap each other in the
>  top-left corner of the document.  In the case of my org-mode
>  document at http://doc.norang.ca/org-mode.html I only see the
>  largest image in Emacs since the others are hidden behind it (I
>  guess).  I really miss this feature in Emacs 22.
>
>   2. Moving from agenda buffers to org buffers goes to the wrong place.
>  This happens very frequently for me in Emacs 22.  I've never seen
>  this problem in Emacs 23.  I've lived with this for a long time
>  and just redoing the command goes to the right place.  I'm not
>  expecting this to ever get fixed since I think it's an Emacs 22 
>  issue and not worth pursuing.
>
>   3. C-l handling is much nicer in Emacs 23 (okay this has nothing to do
>  with org-mode :)  Can I emulate that behaviour in Emacs 22 somehow?
>
>   4. Copying subtrees with C-c C-x c loses fontification in the copies.
>  I don't know if this happens in Emacs 23.
>
5. org-reveal (C-c C-r) works slightly differently in Emacs 22 and
   23.  I actually prefer the Emacs 22 version.

   If I am in a folded buffer and C-c C-r on a headline the
   following task is /not/ revealed in Emacs 23 but it is in
   Emacs 22.  My workaround for this is to move to the next line and
   then do C-c C-r in Emacs 23 to get the desired behaviour, and
   then return to the headline.

-Bernt

___
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


[Orgmode] Inline image display and Emacs 22

2010-07-14 Thread Bernt Hansen
Hi Carsten,

I'm seriously considering ditching my Emacs 22 in favour of Emacs 23
from a git snapshot.  I'm running an older version of Emacs from a
stable debian system as my workstation setup -- I've been too lazy to
upgrade so far but there are now a few nagging issues with org-mode that
are just starting to bug me enough to make this move.

  1. Inline image display doesn't seem to work correctly in Emacs22
 The images are displayed but they all overlap each other in the
 top-left corner of the document.  In the case of my org-mode
 document at http://doc.norang.ca/org-mode.html I only see the
 largest image in Emacs since the others are hidden behind it (I
 guess).  I really miss this feature in Emacs 22.

  2. Moving from agenda buffers to org buffers goes to the wrong place.
 This happens very frequently for me in Emacs 22.  I've never seen
 this problem in Emacs 23.  I've lived with this for a long time
 and just redoing the command goes to the right place.  I'm not
 expecting this to ever get fixed since I think it's an Emacs 22 
 issue and not worth pursuing.

  3. C-l handling is much nicer in Emacs 23 (okay this has nothing to do
 with org-mode :)  Can I emulate that behaviour in Emacs 22 somehow?

  4. Copying subtrees with C-c C-x c loses fontification in the copies.
 I don't know if this happens in Emacs 23.

  And there are probably more issues I can't remember right off the top
  of my head right now.

So the only reason for me to stay at Emacs 22 is if there is some
benefit to the org-mode community for testing... and to be honest this
has been my main deterrent from doing the upgrade to Emacs 23 so far.

GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09
on raven, modified by Debian

Regards,
Bernt

___
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


[Orgmode] [PATCH] Fix inclusion of agenda-archives in search view.

2010-07-14 Thread Matt Lundin
* org-agenda.el (org-search-view): Fixed inclusion of agenda-archives
in org-agenda-text-search-extra-files.

org-search-view lacked a local binding for
org-agenda-text-search-extra-files. Thus when pop was called on the
variable, the agenda-archives symbol was removed and subsequent
searches failed to include the archives.
---
 lisp/org-agenda.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 191ee52..f65ceb8 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3444,6 +3444,7 @@ in `org-agenda-text-search-extra-files'."
  'mouse-face 'highlight
  'help-echo (format "mouse-2 or RET jump to location")))
 (full-words org-agenda-search-view-force-full-words)
+(org-agenda-text-search-extra-files org-agenda-text-search-extra-files)
 regexp rtn rtnall files file pos
 marker category tags c neg re boolean
 ee txt beg end words regexps+ regexps- hdl-only buffer beg1 str)
-- 
1.7.1.1


___
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


Re: [Orgmode] Re: MobileOrg for Android starts to become really usable

2010-07-14 Thread Dave Kritzberg
Thanks Richard!

I've been holding off on the upgrade -- mobileorg is an important app ;)

Thanks,
Dave


On Mon, Jul 12, 2010 at 7:26 AM, Richard Moreland  wrote:

> Hi Dave,
>
> I've been using the current version of MobileOrg on iOS 4.0 since an
> early beta and haven't had any trouble.  In addition, I've been
> testing a new version that builds against the 4.0 SDK and thus
> benefits from some of the new features like instant state save and
> restore/multitasking.
>
> -Richard
>
> On Sun, Jul 11, 2010 at 1:56 AM, Dave Kritzberg
>  wrote:
> > Hello Matthew and Orgmode Users,
> >
> > Is there any compatibility issue with mobile-org and the iPhone OS v. 4?
> >
> > Thanks,
> > Dave Kritzberg
> >
> >
> > On Sun, May 30, 2010 at 4:33 PM, Matthew Jones 
> wrote:
> >>
> >> With regard to the note capture display, I'm not sure how I feel about
> >> this... I like having the save button on the page because it reduces the
> >> number of clicks to save the note which can be huge if you are just
> trying
> >> to quickly jot something down.   I do, however, need to fix it so that
> the
> >> Save button is always visible.The thing about this particular
> Activity
> >> display is that the text box is always fixed to some percentage of the
> >> display... so that the save button would never be off the page but
> rather
> >> the Text box would scroll if you had too much text in it.   I may
> consider
> >> adding the save button to a menu once I add more options to the Capture
> >> screen (like adding a TODO flag, or Tags) but I think it's most
> intuitive if
> >> the save button is on the display mainly because you can't miss it,
> some
> >> things about Android happen in the background so that if you navigate
> away
> >> from the page it automatically saves the contents... but that's not how
> this
> >> capture page works (and I don't know that I would want it to
> automatically
> >> save if you hit the back button) this allows it to fit into the workflow
> and
> >> makes it obvious that you have to hit the save button to accomplish the
> save
> >> action. These are just my thoughts.   As I bake out the Capture
> system I
> >> will certainly revisit it if the flow works better to have it under the
> >> 'Menu' action.
> >> 73,
> >> Matthew W. Jones (KI4ZIB)
> >> http://matburt.net
> >>
> >>
> >> On Sun, May 30, 2010 at 12:21 PM, Robert Goldman 
> >> wrote:
> >>>
> >>> julien cubizolles  free.fr> writes:
> >>>
> >>> >
> >>> > Le vendredi 28 mai 2010 à 11:05 +0200, Sven Bretfeld a écrit :
> >>> > > Hi to all, hi Matthew
> >>> > >
> >>> > > I can say that Note capturing works on my HTC
> >>> > > Magic,
> >>> > Working also on my LG GW620, however the SAVE Button gets hidden by
> the
> >>> on-screen keyboard.
> >>> > I think I've seen other android apps keeping some buttons visible
> >>> > whether the keyboard is or isn't displayed.
> >>>
> >>> If I might comment --- one of the worst things about Android
> >>> applications, IMO,
> >>> is the way they are confusing about whether menus should be displayed
> in
> >>> page,
> >>> or invoked by the menu button.
> >>>
> >>> I'd urge you to avoid the on-page display in favor of the menu button.
> >>>  If you
> >>> stick to that the user never needs to remember to scroll down to find
> the
> >>> controls and there are just too many ways for the on-page display to be
> >>> rendered
> >>> either hard to reach or completely inaccessible.  This problem is made
> >>> worse
> >>> (especially by contrast with the iPhone) because you don't have full
> >>> knowledge
> >>> of the screen dimensions.
> >>>
> >>> So I'd suggest that if a button is important (save, send, schedule,
> etc.)
> >>> that
> >>> you make it reachable by the center menu button.
> >>>
> >>> HtH,
> >>> cheers,
> >>> r
> >>>
> >>>
> >>>
> >>> ___
> >>> 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
> >>
> >>
> >> ___
> >> 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
> >>
> >
> >
> > ___
> > 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
> >
> >
>
___
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


Re: [Orgmode] Multiple files and auto-updating

2010-07-14 Thread Jason Guiditta
On Wed, Jul 14, 2010 at 4:30 PM, Carsten Dominik
wrote:

> Hi Jason,
>
> from your description it is not really clear to me what your setup is.
>
>
> On Jul 12, 2010, at 8:41 PM, Jason Guiditta wrote:
>
>  Hello, apologies if these questions are documented somewhere (in fact, I
>> bet they are, just haven't been able to find them).  I am a newcomer to both
>> orgmode and emacs in general, so I am still on the steep side of the
>> learning curve.  I have spent several days poking around the documentation,
>> watching some screencasts, looking at gmane, etc with no success solving my
>> issue, so I hope someone can point me in the right direction.
>>
>> The group I work with is using orgmode to track tasks for our projects.
>>  This is currently in one big file (with various tags) that has at the
>> bottom a dynamic table
>>
>
> What do you mean by "dynamic table"?  Can you show us the relevant section
> of the file?
>
> Hi Carsten, sure, here is the wrapping chunk of code  (sorry I used the
wrong word, from page 69 of the manual, what I meant to say was 'Dynamic
Block'):

#+BEGIN: columnview :hlines 3 :id 85c58add-2c45-48d5-bff3-6b4cd4f5e20
  
#+TBLFM:
#+END:

Hope that makes the rest of my question more clear, thanks for the response!

-j

- Carsten
>
>  that we periodically export to html and put up on a server for easier
>> viewing of the current state of tasks.  We store this project file in a git
>> repo.  I have been asked to do two major things and two minor (at least in
>> importance) things to streamline this.
>>
>> == Major ==
>> 1. Move this dynamic table out into its own file to reduce the size of the
>> main project file (I am not the only one in the group not that familiar with
>> emacs --yet).
>> 2. Have this table be updated/exported automatically when saving the
>> project file.
>>
>> From what I have seen, dynamic tables are meant to just be another view of
>> the data in a given file, so I am wondering if this is even the right
>> approach.  The update/export seems likely to be some org-mode post-save
>> command.  If this is the case, guess I'll have to figure out how to write
>> some elisp  :-/
>>
>> == Minor ==
>> 1. After automatically updating/exporting the table file, upload that to
>> our server as well.
>> 2. Commit the file to git from the buffer (pretty sure this is just a
>> matter of using the git mode I have seen mentioned, but thought I'd throw it
>> out there in case there is another suggestion).
>>
>> Hopefully these questions are reasonable and I haven't missed obvious
>> directions on how to do these things.  I appreciate any assistance from
>> members of the list.  (Also, really liking orgmode/emacs in general so far,
>> fwiw).
>>
>> Thanks,
>>
>> -j
>> ___
>> 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
>>
>
> - Carsten
>
>
>
>
___
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


Re: [Orgmode] Bug: Org-publish needs to catch error [6.36trans]

2010-07-14 Thread Carsten Dominik

Dear Aidan,

could you please post a backtrace?

http://orgmode.org/manual/Feedback.html#Feedback

- Carsten

On Jul 8, 2010, at 11:32 AM, Aidan Gauland wrote:


I am trying to use Org-mode and publish to create a website and forgot
to specify the publishing directory for a project (in
org-publish-project-alist).  I thought I had encountered a severe  
bug in
Org-publish when I was dumped into the debugger when I tried to  
publish
my project.  I suppose this is not so much a bug as it is an error  
that

should be detected and handled more elegantly (i.e. by Org-publish,
instead of the Emacs debugger) ;-).

Regards,
Aidan Gauland

Emacs  : GNU Emacs 24.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version  
2.20.1)

of 2010-07-05 on dimension8
Package: Org-mode version 6.36trans

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

org-cycle-show-empty-lines

org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
	 [org-add-hook change-major-mode-hook org-show-block-all  
append local] 5]

 #[nil 
"\300\301\302\303\304$\207"
	 [org-add-hook change-major-mode-hook org-babel-show-result- 
all

append local] 5]
 
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash- 
at-point

org-babel-execute-src-block-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp "\\"
org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
toc

org-beamer-auto-fragile-frames

 
org-beamer-place-default-actions-for-lists)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-blocks '((src org-babel-exp-src-blocks nil) (comment
org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
)

___
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


- Carsten




___
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


Re: [Orgmode] [BUG] org remember broken

2010-07-14 Thread Carsten Dominik

Hi Thierry,


I cannot easily see why org-decrypt-entry is being called, and if it  
is being called in

the remember buffer or where?

Anyway, most of us are moving to org-capture, so I would be more  
inclined

to look into this if this is still an issue in org-capture

- Carsten


On Jul 10, 2010, at 8:36 AM, Thierry Volpiatto wrote:


Hi,
org remember used with refile to (C-1 C-c C-c) and with org-crypt  
loaded
fail leaving an empty *remember* buffer with error: (Appear on  
Emacs24,

not on Emacs23.2)

,
| Use C-c C-c to remember the data.
| Getting targets...done
| Copied: Subtree(s) with 186 characters
| Cut: Subtree(s) with 186 characters
| Refiled to "Emacs development (agenda.org)"
| Entering debugger...
`

Here the backtrace

,
| Debugger entered--Lisp error: (error "Before first headline at  
position 1 in buffer *Remember*")
|   signal(error ("Before first headline at position 1 in buffer  
*Remember*"))
|   error("Before first headline at position %d in buffer %s" 1  
#)
|   byte-code("\300\301`p#\207" [error "Before first headline at  
position %d in buffer %s"] 4)

|   org-back-to-heading(t)
|   org-decrypt-entry()
|   run-hooks(org-reveal-start-hook)
|   org-reveal()
|   org-refile(nil #)
|   byte-code("
| [...]
|
| " [org-note-abort org-jump-to-target-location visitp buffer-file- 
name

| org-remember-backup-directory backup-file throw quit t boundp
| file-name-directory file-name-as-directory expand-file-name string- 
match

| "^remember-[0-9]\\{4\\}" file-name-nondirectory "\\S-" buffer-string
| message "Nothing to remember" nil (byte-code " [...]
|
| " [backup-file delete-file "~"] 3) ((error)) set-buffer-modified-p  
((16)
|   0) 2 3 org-xor 1 refile org-get-org-file org-find-base-buffer- 
visiting

|   (4) marker-buffer re-search-forward "[ \n]+\\'" replace-match ""
|   looking-at "* " current-time-string " (" remember-buffer-desc ") 
\n" -1

|   "^" " " "\n[ ]*\n[ \n]*\\'" "\n\n" "[ \n]*\\'" ...] 6)
|   org-remember-handler()
|   run-hook-with-args-until-success(org-remember-handler)
|   remember-region(1 545) remember-finalize() org-remember-finalize()
|   call-interactively(org-remember-finalize nil nil)
`

--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/



___
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


- Carsten




___
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


Re: [Orgmode] Multiple files and auto-updating

2010-07-14 Thread Carsten Dominik

Hi Jason,

from your description it is not really clear to me what your setup is.

On Jul 12, 2010, at 8:41 PM, Jason Guiditta wrote:

Hello, apologies if these questions are documented somewhere (in  
fact, I bet they are, just haven't been able to find them).  I am a  
newcomer to both orgmode and emacs in general, so I am still on the  
steep side of the learning curve.  I have spent several days poking  
around the documentation, watching some screencasts, looking at  
gmane, etc with no success solving my issue, so I hope someone can  
point me in the right direction.


The group I work with is using orgmode to track tasks for our  
projects.  This is currently in one big file (with various tags)  
that has at the bottom a dynamic table


What do you mean by "dynamic table"?  Can you show us the relevant  
section of the file?


- Carsten

that we periodically export to html and put up on a server for  
easier viewing of the current state of tasks.  We store this project  
file in a git repo.  I have been asked to do two major things and  
two minor (at least in importance) things to streamline this.


== Major ==
1. Move this dynamic table out into its own file to reduce the size  
of the main project file (I am not the only one in the group not  
that familiar with emacs --yet).
2. Have this table be updated/exported automatically when saving the  
project file.


From what I have seen, dynamic tables are meant to just be another  
view of the data in a given file, so I am wondering if this is even  
the right approach.  The update/export seems likely to be some org- 
mode post-save command.  If this is the case, guess I'll have to  
figure out how to write some elisp  :-/


== Minor ==
1. After automatically updating/exporting the table file, upload  
that to our server as well.
2. Commit the file to git from the buffer (pretty sure this is just  
a matter of using the git mode I have seen mentioned, but thought  
I'd throw it out there in case there is another suggestion).


Hopefully these questions are reasonable and I haven't missed  
obvious directions on how to do these things.  I appreciate any  
assistance from members of the list.  (Also, really liking orgmode/ 
emacs in general so far, fwiw).


Thanks,

-j
___
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


- Carsten




___
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


Re: [Orgmode] Re: org-capture-last-stored bookmark

2010-07-14 Thread Carsten Dominik

Hi Giles,

this definitely works correctly for me now.

- Carsten

On Jul 13, 2010, at 3:08 PM, Giles Chamberlin wrote:


Carsten Dominik  writes:


Please pull again and then try again, I hope it works now.


Yes and no I'm afraid.  I now get two bookmarks generated:

- org-capture-last-stored: points to default file
- org-capture-last-stored-marker: points correctly to refiled location


--
Giles


___
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


- Carsten




___
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


Re: [Orgmode] Re: org-mobile produces errors in normal org functions

2010-07-14 Thread Carsten Dominik


On Jul 13, 2010, at 11:05 PM, Shelagh Manton wrote:


On Tue, 13 Jul 2010 20:45:29 +0200, Carsten Dominik wrote:


On Jul 13, 2010, at 7:41 PM, Sven Bretfeld wrote:


Hi Carsten

Carsten Dominik  writes:


does it help to remove ~/.emacs.d/.org-id-locations ?


Yes, that did it. Thank you very much, you made me happy. I have
already
tried to remove .emacs.d before, but with a running Emacs, what  
didn't

work. I didn't know that .emacs.d contains any dot-files at all.


That may be my mistake - maybe it would be better to make this a non-
dot file.
This used to be a dot file in HOME, then I moved it into .emacs.d,  
but

kept
it a dot file.

Does anyone here know if there are rules for .emacs.d ???

Greetings

- Carsten

Not a rule, but a convention, that what is a dot-file in $HOME is  
just a
normal file in .emacs.d. Because of course the idea is just to hide  
the

file, but it is already hidden inside a hidden directory.


This sounds like a good convention, but I hesitate to adopt it because  
changing

the file name might break something...

I need to think about this one more carefully.

- Carsten


___
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


Re: [Orgmode] Re: [PATCH] org-capture - using `file' as template

2010-07-14 Thread Carsten Dominik

Hi Johan,

thanks for checking after  me - sometimes I should just shut up
and trust others.

Thanks!

- Carsten

On Jul 14, 2010, at 8:58 PM, Johan Friis wrote:



Hi Carsten,

I did not have time to try out capture until now, and there is still a
bug. When providing (file "...") as template `org-capture-set-plist'
still generates a default template. Using the patch from David seems  
to

work fine. Here is a diff against current head.

- Johan

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index f79a20b..0f3a29b 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -981,7 +981,7 @@ Point will remain at the first line after the  
inserted text."

  (org-capture-put :key (car entry) :description (nth 1 entry)
   :target (nth 3 entry))
  (let ((txt (nth 4 entry)) (type (or (nth 2 entry) 'entry)))
-(when (or (not (stringp txt)) (not (string-match "\\S-" txt)))
+(when (or (not txt) (and (stringp txt) (not (string-match "\ 
\S-" txt

  ;; The template may be empty or omitted for special types.
  ;; Here we insert the default templates for such cases.
  (cond


___
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


- Carsten




___
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


[Orgmode] Re: [PATCH] org-capture - using `file' as template

2010-07-14 Thread Johan Friis

Hi Carsten,

I did not have time to try out capture until now, and there is still a
bug. When providing (file "...") as template `org-capture-set-plist'
still generates a default template. Using the patch from David seems to
work fine. Here is a diff against current head.

- Johan

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index f79a20b..0f3a29b 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -981,7 +981,7 @@ Point will remain at the first line after the inserted 
text."
   (org-capture-put :key (car entry) :description (nth 1 entry)
   :target (nth 3 entry))
   (let ((txt (nth 4 entry)) (type (or (nth 2 entry) 'entry)))
-(when (or (not (stringp txt)) (not (string-match "\\S-" txt)))
+(when (or (not txt) (and (stringp txt) (not (string-match "\\S-" txt
   ;; The template may be empty or omitted for special types.
   ;; Here we insert the default templates for such cases.
   (cond


___
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


Re: [Orgmode] cdlatex, previewing LaTeX, and dollar signs

2010-07-14 Thread Carsten Dominik


On Jul 14, 2010, at 7:55 PM, Mike Benfield wrote:



org-cdlatex-mode subverts cdlatex's normal behavior
in that it doesn't give dollar signs when they're not there.
And on the other hand, org-preview-latex-fragment only displays
rendered LaTeX when the dollar signs are there. I don't know
what other people's usage pattern is, but I read my notes in
emacs with the LaTeX rendered, so I never write LaTeX
outside of dollar signs because that is useless to me.

Could one or the other of these behaviors change?

For me, the ideal situation would be for org-preview-latex-fragment
to work even when dollar signs aren't present,


This would be very difficult to achieve.  But note that you can part  
of it

by setting

   (setq org-pretty-entities t)

This will give UTF8 display of many math symbols - imperfect
though for your example

To get dollars from org-cdlatex-mode, you could cheat by setting

(setq org-cdlatex-texmathp-advice-is-done t)

very early in .emacs, before any Org mode stuff gets loaded


HTH

- Carsten


so that for instance
\int_a^b f would render \int_a^b as LaTeX math and leave f alone.
(By the way, right now such an expression renders correctly when
exporting to HTML but not when exporting to LaTeX.)


___
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


- Carsten




___
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


[Orgmode] cdlatex, previewing LaTeX, and dollar signs

2010-07-14 Thread Mike Benfield

org-cdlatex-mode subverts cdlatex's normal behavior
 in that it doesn't give dollar signs when they're not there. 
And on the other hand, org-preview-latex-fragment only displays
rendered LaTeX when the dollar signs are there. I don't know 
what other people's usage pattern is, but I read my notes in
emacs with the LaTeX rendered, so I never write LaTeX 
outside of dollar signs because that is useless to me. 

Could one or the other of these behaviors change?  

For me, the ideal situation would be for org-preview-latex-fragment
 to work even when dollar signs aren't present, so that for instance
 \int_a^b f would render \int_a^b as LaTeX math and leave f alone.
(By the way, right now such an expression renders correctly when
 exporting to HTML but not when exporting to LaTeX.) 


___
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


Re: [Orgmode] Integrate APPTs with OSX

2010-07-14 Thread Greg Newman
I installed Todochiku and use the following to have it use Growl for
notifications

#+begin_src emacs-lisp
;; use todochiku for growl notifications of events
(setq org-show-notification-handler
  '(lambda (notification)
(todochiku-message "org-mode notification" notification
  (todochiku-icon 'emacs
#+end_src

On Wed, Jul 14, 2010 at 1:23 PM, Juan  wrote:

> On Wed, Jul 14, 2010 at 11:41:58AM -0500, Marcelo de Moraes Serpa wrote:
> > Is there a way to integrate org-mode APPT's (emacs APPT system) to
> > show the reminders using growl or another OSX-like GUI feature? Has
> > anyone ever done it before?
>
> There is this post for using gnome zenity for APPT:
>
>   http://orgmode.org/worg/org-hacks.php#sec-3
>
> Then there is growlnotify shell command for calling Growl, and there
> is an elisp wrapper if you feel like it (google for something like
> growl.el or growlnotify.el).
>
> Replace the zenity part in the first link for growl and it should be
> mostly done.
>
> Saludos,
> .j.
>
> ___
> 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
>
___
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


[Orgmode] links and ID properties

2010-07-14 Thread Eric Abrahamsen
In addition to using org-mode for scheduling and email integration and
all that, I've had great success setting up a translation environment
I'm finally pleased with. I keep vocabulary items in a separate file,
and then create links from vocabulary items into the actual text I'm
translating.

I've switched computers recently and in the process something has gone
wrong with the vocab links. So far as I know, org-link-to-org-use-id has
always had its default value of create-if-interactive-and-no-custom-id,
but now calling org-store-link no longer creates an ID property on the
target headline (there's no custom id).

Furthermore, the following the links from the text back into the
vocabulary file won't find the right targets: following links that I
created before I moved computers (when it still created the ID property)
say "no match" for the link (though the ID value is correct for both
target and link), and new links I've made (where no ID is created), just
find the top of the vocabulary file, not the actual vocabulary item (a
heading) within the file.

Storing links to a particular vocab item creates a link entry like this:

file:~/Documents/text/vocab.org::* (综合二处)

That particular text is a third-level heading, but following this link
just puts me at the top of the file.

I was using the git head version of org on both the old machine and this
one, but now I'm using emacs 23.2, where I was using emacs 24. The vocab
file is in the same directory as the text file, but none of these are
org agenda files. I don't know what else might be causing this problem!



On a semi-related topic, I've seen a couple of threads here recently
about using links to pull content from other places into the file
containing the links -- presumably something that would happen upon
export. I think something along these lines could be very useful -- in
my case I could choose a final translation of a certain term after all
the text is translated, then when I export the text, the proper English
translation is substituted into all locations that link to that term.
This could also be used to create "master files" that pull in content
from other places: importing subtrees, or creating \input or \include
statements in the case of LaTeX export.

Presumably this would involve a new link type (say "include") that
points to a file or heading. When the org file is exported, that file or
heading would be dragged in to replace the link text. If the heading to
be included had a special property (say "INCLUDE_AS"), the value of that
property would be included instead of the text of the heading.

Anyway, this is just a possibilty -- perhaps it can already be done! I'd
be interested in hearing what people think.

Thanks,
Eric


___
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


Re: [Orgmode] Integrate APPTs with OSX

2010-07-14 Thread Juan
On Wed, Jul 14, 2010 at 11:41:58AM -0500, Marcelo de Moraes Serpa wrote:
> Is there a way to integrate org-mode APPT's (emacs APPT system) to
> show the reminders using growl or another OSX-like GUI feature? Has
> anyone ever done it before?

There is this post for using gnome zenity for APPT:

   http://orgmode.org/worg/org-hacks.php#sec-3

Then there is growlnotify shell command for calling Growl, and there
is an elisp wrapper if you feel like it (google for something like
growl.el or growlnotify.el).

Replace the zenity part in the first link for growl and it should be
mostly done.

Saludos,
.j.

___
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


Re: [Orgmode] Integrate APPTs with OSX

2010-07-14 Thread Nick Dokos
Marcelo de Moraes Serpa  wrote:

> Is there a way to integrate org-mode APPT's (emacs APPT system) to
> show the reminders using growl or another OSX-like GUI feature? Has
> anyone ever done it before?
> 

If you can get to the feature through the command line, it should be
easy. Look in the FAQ, section "Appointments/Diary", title "How can I
set up automatic reminders based on Org information?" for a pointer to
an old post of mine that uses a simple python script for the GUI features.
There have been similar solutions proposed using zenity and some other more
mainstream things, including one using the Gnome OSD facility (I forget what
it's called). They are all essentially the same, so it should be easy
to adapt them to your purposes. Russell Adams pulled a lot of this information
together into a post:

 http://thread.gmane.org/gmane.emacs.orgmode/5664/focus=5806

and the whole thread might be useful.

HTH,
Nick




___
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


Re: [Orgmode] Inserting date/time stamps including seconds

2010-07-14 Thread Carsten Dominik


On Jul 14, 2010, at 6:44 AM, Miguel Ruiz wrote:

Is it possible to insert date/time stamps (active or inactive)  
including seconds?


No, this is not supported.



I have tested that entries like [2010-07-13 tue 14:53:37] works  
perfectly.


Sorry, if this question have been answered; every "second" search I  
have done get me to "first ..., second ..."


I am interesting to hear why you'd want to have that.
Maybe

   http://orgmode.org/manual/Relative-timer.html#Relative-timer

will be an alternative or better solution for your particular  
application?


Best wishes

- Carsten


___
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


[Orgmode] Integrate APPTs with OSX

2010-07-14 Thread Marcelo de Moraes Serpa
Hey list!

Is there a way to integrate org-mode APPT's (emacs APPT system) to
show the reminders using growl or another OSX-like GUI feature? Has
anyone ever done it before?

Thanks,

Marcelo.

___
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


[Orgmode] Re: Pull items from another file (by tag) and show them in another

2010-07-14 Thread Marcelo de Moraes Serpa
Yeah, that makes sense. Thanks for the suggestion! I'll do that.

Marcelo.

On Wed, Jul 14, 2010 at 7:55 AM, Matt Lundin  wrote:
> Hi Marcelo,
>
> Marcelo de Moraes Serpa  writes:
>
>> This might sound crazy, but here's what I'd like to do:
>>
>> I have a reference.org file full of interesting notes I take during
>> the day. It even includes saying that I tag as mantras, such as this
>> one, from Paulo Coelho:  "Be the best, but get prepared to be
>> attacked. Only mediocrity is safe" ;)
>>
>> I also have a horizons_of_focus.org (from GTD) a file I review every
>> week or so, and it has a list of MANTRAS I want to internalize. So,
>> when I capture a mantra, I just want it to go to my reference, but I
>> want to refer to it on horizons_of_focus. Is there a way (using babel
>> or some other crazy elisp) to pull entries tagged as  (in this
>> case :MANTRA:) and list them under a headline? This would be akin to a
>> custom view of data stored in other source (another org file).
>
> Perhaps the simplest solution would be to use the agenda to view all
> items tagged :PITHY_SAYING_A: and to view them in succession with follow
> mode.
>
> Best,
> Matt
>
>
>

___
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


[Orgmode] Re: Tiny font in org-agenda-columns when using emacs --daemon

2010-07-14 Thread Noorul Islam K M
Jakob Lombacher  writes:

> Hi,
>
> When I start emacs as daemon "emacs --daemon"  and than attache a
> client to it, the org-agenda-columns view appears in a very tiny font.
> If I start emacs "normally" the view appears in standard font size.

I think you are tyring to run "emacs --daemon" from terminal window and
that might not load emacs in an X environment. This is my guess and I
might be wrong.

Thanks and Regards
Noorul


>
> I found out that the "Org Column face" is set to different values
> (Height: 1, ...). I can adapt it and it works, but when I start the
> emacsclient again, all settings are lost.
> So it looks like the emacsclient overwrites those settings.
>
> Has anybody an idea what's the cause of that? Can anybody report the
> same behavior?
>
> I use emacs 23.1-r3 on a gentoo linux system and org-mode 6.36c.
>
> Jakob
>
> ___
> 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

___
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


Re: [Orgmode] Re: \nbsp usage

2010-07-14 Thread Nick Dokos
Bernt Hansen  wrote:

> Erik Butz  writes:
> 
> > unfortunately, after doing a 'git pull' and recompiling \nbsp{}m^2
> > still results in 200~\{\}m$^2$  for me.
> 
> It works for me.
> 

Works for me too.

Nick

___
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


[Orgmode] Tiny font in org-agenda-columns when using emacs --daemon

2010-07-14 Thread Jakob Lombacher
Hi,

When I start emacs as daemon "emacs --daemon"  and than attache a
client to it, the org-agenda-columns view appears in a very tiny font.
If I start emacs "normally" the view appears in standard font size.

I found out that the "Org Column face" is set to different values
(Height: 1, ...). I can adapt it and it works, but when I start the
emacsclient again, all settings are lost.
So it looks like the emacsclient overwrites those settings.

Has anybody an idea what's the cause of that? Can anybody report the
same behavior?

I use emacs 23.1-r3 on a gentoo linux system and org-mode 6.36c.

Jakob

___
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


[Orgmode] Re: [PATCH] org-capture - using `file' as template

2010-07-14 Thread Johan Friis

Hello David,

Thanks a lot for cleaning up the patch and explaining it. I was not
happy with the double `when' and the double (not txt), but everything
else I tried kept on having bugs. I did not think of checking if txt was
a string. Nice and simple :)

And thanks Carsten for the quick fix. Checking out right now :)

Regards,

Johan


___
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


[Orgmode] Re: Pull items from another file (by tag) and show them in another

2010-07-14 Thread Matt Lundin
Hi Marcelo,

Marcelo de Moraes Serpa  writes:

> This might sound crazy, but here's what I'd like to do:
>
> I have a reference.org file full of interesting notes I take during
> the day. It even includes saying that I tag as mantras, such as this
> one, from Paulo Coelho:  "Be the best, but get prepared to be
> attacked. Only mediocrity is safe" ;)
>
> I also have a horizons_of_focus.org (from GTD) a file I review every
> week or so, and it has a list of MANTRAS I want to internalize. So,
> when I capture a mantra, I just want it to go to my reference, but I
> want to refer to it on horizons_of_focus. Is there a way (using babel
> or some other crazy elisp) to pull entries tagged as  (in this
> case :MANTRA:) and list them under a headline? This would be akin to a
> custom view of data stored in other source (another org file).

Perhaps the simplest solution would be to use the agenda to view all
items tagged :PITHY_SAYING_A: and to view them in succession with follow
mode.

Best,
Matt



___
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


[Orgmode] Re: \nbsp usage

2010-07-14 Thread Bernt Hansen
Erik Butz  writes:

> unfortunately, after doing a 'git pull' and recompiling \nbsp{}m^2
> still results in 200~\{\}m$^2$  for me.

It works for me.

200\nbsp{}m^2

becomes

200~m\^{}2

Are you running the latest version?  Maybe you have older complied files?

-Bernt

___
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


Re: [Orgmode] Re: \nbsp usage

2010-07-14 Thread Bernt Hansen
Nick Dokos  writes:

> Bernt Hansen  wrote:
>
>> Erik Butz  writes:
>> 
>> > I want to use the \nbsp macro to generate a '~' symbol for Latex, but
>> > I don't seem to get it to work correctly in my case.
>> > I want to write 200~m=C2=B2
>> >
>> > If I do: 200\nbspm^2
>> > it gets exported as: 200\nbspm$^2$,  so the symbol is not recognized.
>> >
>> > If I do: 200\nbsp m^2
>> > it gets exported as 198~ m$^2$, so in addition to the nbsp there is
>> > another space at which a linebreak can occur
>> >
>> > trying: 200\nbsp{}m^2 in analogy to other commands
>> > I get: 200~\{\}m$^2$, so the parentheses are not recognized as
>> > belonging to the command.
>> >
>> This seems to work for me:
>> 
>> ,[ sample org file ]
>> | * nbsp
>> | If I do: one two three four five six seven eight nine ten eleven twelve 2=
>> 00\nbsp m^2 it gets exported
>> `
>> 
>> this exports as=20
>> 
>> ,[ latex output ]
>> | ...
>> | \label{sec-1}
>> |=20
>> | If I do: one two three four five six seven eight nine ten eleven twelve 2=
>> 00~ m\^{}2 it gets exported
>> | \end{document}
>> `
>> 
>> and when I look at that as a PDF it doesn't break between the 200 and
>> m^2.  I tried adding x and xx before the 200 and it pushes the entire
>> thing to the next line.  I can't make it break on a line so 200 is at
>> the end of one line and m^2 is on the following line.
>
> I suspect that you cannot decide the question with a simple experiment
> like this, but I have no counterexample to offer.
>
> However, Knuth warns explicitly (p.91 of my version of the TeXbook,
> paperback 19th printing, Oct. 1990) that "...you shouldn't leave any blanks
> next to the ~, since they will count as additional spaces."
>
> It may well be that TeX's line-breaking algorithm does the right thing in
> the example, but when push comes to shove in a *really* complicated situation,
> it might be forced to choose the space after the tilde to break the line at.

Ooops :)  Thanks for the pointer to the docs!

-Bernt

___
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


Re: [Orgmode] Re: \nbsp usage

2010-07-14 Thread Erik Butz
Hi Carsten,

unfortunately, after doing a 'git pull' and recompiling \nbsp{}m^2
still results in 200~\{\}m$^2$  for me.

Cheers,

Erik

2010/7/14 Carsten Dominik :
> Hi everyone,
>
> 20\nbsp{}m^2 should now work.
>
> Thanks!
>
> - Carsten
>
> On Jul 14, 2010, at 9:19 AM, Sébastien Vauban wrote:
>
>> Hi Nick, Bernt, Erik and the rest,
>>
>> Nick Dokos wrote:
>>>
>>> Bernt Hansen  wrote:

 Erik Butz  writes:
>
> If I do: 200\nbspm^2
> it gets exported as: 200\nbspm$^2$,  so the symbol is not recognized.
>>
>> My solution is to insert a real non-breaking space (yes, it does exist, as
>> a
>> different character from the space), almost invisible (light gray, by
>> choice)
>> under Emacs, and correctly handled in LaTeX.
>>
>> See http://comments.gmane.org/gmane.emacs.orgmode/24716
>> and http://article.gmane.org/gmane.emacs.orgmode/15116.
>>
>> Best regards,
>>  Seb
>>
>> --
>> Sébastien Vauban
>>
>>
>> ___
>> 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
>
> - Carsten
>
>
>
>
> ___
> 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
>

___
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


Re: [Orgmode] [PATCH] org-capture - using `file' as template

2010-07-14 Thread Carsten Dominik

Hi Johan, thanks for the report and patch, hi David, thanks for
further comments, I have checked in a fix.

- Carsten

On Jul 14, 2010, at 4:30 AM, Johan Friis wrote:



Setting up capture to use templates from file in the latest git seemed
to cause some errors. I looked into it and wrote this small patch. It
could probably use some love, seeing as I am quite new to org-mode,
elisp and emacs in general.

The error I was getting was related to testing (string-match ...) on
a list. The fix is to check if txt is a list before doing the test. In
addition I updated the customize interface to use `file' instead of
`file-contents'. This seems to be the current way of doing things.

Please note: This is my first time posting here. Please let me know if
there are some rules to follow that I missed. And thanks for a great
piece of software :)

Regards,

Johan


diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 2cb6876..da0925c 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -285,7 +285,7 @@ calendar   |  %:type %:date"
   (choice :tag "Template"
   (string)
   (list :tag "File"
-(const :format "" file-contents)
+(const :format "" file)
 (file :tag "Template file"))
   (list :tag "Function"
 (const :format "" function)
@@ -981,14 +981,15 @@ Point will remain at the first line after the  
inserted text."

  (org-capture-put :key (car entry) :description (nth 1 entry)
   :target (nth 3 entry))
  (let ((txt (nth 4 entry)) (type (or (nth 2 entry) 'entry)))
-(when (or (not txt) (not (string-match "\\S-" txt)))
-  ;; The template may be empty or omitted for special types.
-  ;; Here we insert the default templates for such cases.
-  (cond
-   ((eq type 'item) (setq txt "- %?"))
-   ((eq type 'checkitem) (setq txt "- [ ] %?"))
-   ((eq type 'table-line) (setq txt "| %? |"))
-   ((member type '(nil entry)) (setq txt "* %?\n  %a"
+(when (or (not txt) (not (listp txt)))
+  (when (or (not txt) (not (string-match "\\S-" txt)))
+;; The template may be empty or omitted for special types.
+;; Here we insert the default templates for such cases.
+(cond
+ ((eq type 'item) (setq txt "- %?"))
+ ((eq type 'checkitem) (setq txt "- [ ] %?"))
+ ((eq type 'table-line) (setq txt "| %? |"))
+ ((member type '(nil entry)) (setq txt "* %?\n  %a")
(org-capture-put :template txt :type type)))

(defun org-capture-goto-target (&optional template-key)


___
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


- Carsten




___
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


Re: [Orgmode] Re: \nbsp usage

2010-07-14 Thread Carsten Dominik

Hi everyone,

20\nbsp{}m^2 should now work.

Thanks!

- Carsten

On Jul 14, 2010, at 9:19 AM, Sébastien Vauban wrote:


Hi Nick, Bernt, Erik and the rest,

Nick Dokos wrote:

Bernt Hansen  wrote:

Erik Butz  writes:


If I do: 200\nbspm^2
it gets exported as: 200\nbspm$^2$,  so the symbol is not  
recognized.


My solution is to insert a real non-breaking space (yes, it does  
exist, as a
different character from the space), almost invisible (light gray,  
by choice)

under Emacs, and correctly handled in LaTeX.

See http://comments.gmane.org/gmane.emacs.orgmode/24716
and http://article.gmane.org/gmane.emacs.orgmode/15116.

Best regards,
 Seb

--
Sébastien Vauban


___
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


- Carsten




___
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


[Orgmode] Re: \nbsp usage

2010-07-14 Thread Sébastien Vauban
Hi Nick, Bernt, Erik and the rest,

Nick Dokos wrote:
> Bernt Hansen  wrote:
>> Erik Butz  writes:
>>>
>>> If I do: 200\nbspm^2
>>> it gets exported as: 200\nbspm$^2$,  so the symbol is not recognized.

My solution is to insert a real non-breaking space (yes, it does exist, as a
different character from the space), almost invisible (light gray, by choice)
under Emacs, and correctly handled in LaTeX.

See http://comments.gmane.org/gmane.emacs.orgmode/24716
and http://article.gmane.org/gmane.emacs.orgmode/15116.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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


Re: [Orgmode] [PATCH] org-capture - using `file' as template

2010-07-14 Thread David Maus
Johan Friis wrote:

>Setting up capture to use templates from file in the latest git seemed
>to cause some errors. I looked into it and wrote this small patch. It
>could probably use some love, seeing as I am quite new to org-mode,
>elisp and emacs in general.

Welcome aboard!

>The error I was getting was related to testing (string-match ...) on
>a list. The fix is to check if txt is a list before doing the test. In
>addition I updated the customize interface to use `file' instead of
>`file-contents'. This seems to be the current way of doing things.

Yep, I can reproduce the error.

Some comments on the proposed fix:

Using (not (listp txt)) works but is not exactly what we want to
check.  To avoid string-match failing txt must be a string.  Obviously
a string is not a list but "not a list" is not necessarily a string.

(when (or (not txt) (stringp txt))
 (when (or (not txt) (not (string-match "\\S-" txt
 ...)

If we need to make sure txt is a string before calling string-match,
we can put the check in front of string-match.

(when (or (not txt) (and (stringp txt) (not (string-match "\\S-" txt
 ...)

We can do this because the Lisp interpreter leaves the `and' as soon
as one of it's arguments is nil.  I.e. (not (string-match "\\S-" txt))
is not evaluated if (stringp txt) returns nil.

>Please note: This is my first time posting here. Please let me know if
>there are some rules to follow that I missed. And thanks for a great
>piece of software :)

Current rules are documented here:

http://orgmode.org/worg/org-contribute.php

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp8OuDwxI8Zj.pgp
Description: PGP signature
___
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