Re: [O] Working on iPad Pro

2016-01-31 Thread Ido Magal
The issue with the smart keyboard is that it does not have an ESC key. 

>> On Jan 31, 2016, at 09:54, John Hendy  wrote:
>> 
>>> On Sun, Jan 31, 2016 at 11:52 AM, John Hendy  wrote:
>>> On Sun, Jan 31, 2016 at 11:27 AM, Peter Davis  wrote:
>>> 
>>> 
>>> I've been using org-mode for a few years, mainly for writing blog posts and 
>>> documents, and, to a lesser extent, for keeping track of TODO items, etc. I 
>>> barely scratch the surface of what org-mode can do, and I keep learning new 
>>> bits incrementally, largely by reading this list.
>>> 
>>> I'm now almost ready to shelve my laptop and start using an iPad Pro with 
>>> the Apple "smart" keyboard. However, I haven't found a good way to do my 
>>> org-mode authoring.  I know there's org-mobile, but I don't want to have to 
>>> think about sync'ing, or try to remember where the latest versions of my 
>>> docs are as I move from one computer to another.
>> 
>> I'm in a similar boat with respect to mobile-org... I've set it up a
>> few times but just never got into it other than for being able to view
>> entries from afar. I also don't care for the capture/re-file mechanism
>> of syncing back to the mothership when I add from the phone. I've
>> tried emacs on Android, but typing is awful. I think having a legit
>> keyboard would make this awesome!
>> 
>>> I've thought about using the iPad to ssh to a desktop computer, and just 
>>> running emacs on that. That might be the best solution, but the Apple 
>>> "smart" keyboard doesn't seem to have any meta key. Has anyone figured out 
>>> how to get the option key to work that way in vSSH? Or is there a better 
>>> ssh app?
>> 
>> I'm not on ios, so maybe shouldn't comment (and I think the emacs apps
>> on android are pretty feature-ful, so haven't experienced what's
>> lacking on ios), but there appears to be this relatively simple way to
>> get full blown emacs on ios:
>> - http://gamma-level.com/iphoneos/ports/emacs
>> 
>> Or does that require jailbreaking (says you need development tools
>> available on the device)?
>> 
>> This reddit post suggests the ssh method, and somewhere else I read
>> the claim that Prompt is the best ssh app:
>> - 
>> https://www.reddit.com/r/emacs/comments/2dwapw/emacsish_text_editor_for_ipad/
> 
> Adding: this is where I saw Prompt mentioned, and it happened to
> appear on a thread related to the option key issue you mentioned:
> - 
> http://apple.stackexchange.com/questions/48043/how-to-ssh-from-ipad-with-external-keyboard-and-emacs
> 
> So if you could learn to use Esc, sounds like ssh might be a legit option?
> 
> John
> 
>> 
>>> Is there some other option I'm overlooking? I know there are some "almost 
>>> emacs" apps, but ... they're "almost."
>> 
>> Other than the option key, if ssh would work and the limitation is an
>> always-on box, could you work with a Raspberry Pi? I have one under my
>> desk that I've been fiddling with for a few months. Your post reminded
>> me that this would be an option for me on Android as well. Just
>> throwing it out there... ~$35 and you'd have something easily able to
>> handle anything Org-mode. I set mine to use a static ip address so I
>> can always find it.  Sorry I can't be more helpful, but those are the
>> options that come to mind... (basically, trying emacs itself or ssh
>> like you're already thinking about).
>> a
>>> BTW, I also use emacs for gnus, and for web and software development, but 
>>> org-mode is what I really need on the iPad.
>> 
>> Good luck!
>> John
>> 
>>> Thanks!
>>> -pd
>>> 
>>> 
>>> --
>>> 
>>> Peter Davis
>>> http://www.techcurmudgeon.com
> 



Re: [O] Working on iPad Pro

2016-01-31 Thread Ido Magal

I'm in the same boat. 

The ios app Serverauditor is the only one I've found (of many tested) that 
sends Alt as Meta. 

You'll want to use the Homebrew color scheme otherwise the cursor is invisible. 
(Would be too easy if it didn't require any troubleshooting, right?)

Unfortunately C-c comes across as "pause" and I don't know how to resolve this 
and it's a nuisance so I've gone gui. If anyone knows the solution, please do 
tell. 

My current preferred solution is using a Kangaroo PC and Splashtop to control 
it with the iPad.

Kangaroo is a display-less pocket PC running Win10. You can purchase them from 
newegg or the MS store. 

 Splashtop is the lowest latency wireless solution I've found and (importantly) 
the only one that supports the smart keyboard. Previously I would use OSLinx or 
DuetDisplay for wired latency but with a separate Bluetooth keyboard for the PC.

The Kangaroo PC is very weak but it works well enough for emacs.

Cheers. 

> On Jan 31, 2016, at 09:27, Peter Davis  wrote:
> 
> 
> I've been using org-mode for a few years, mainly for writing blog posts and 
> documents, and, to a lesser extent, for keeping track of TODO items, etc. I 
> barely scratch the surface of what org-mode can do, and I keep learning new 
> bits incrementally, largely by reading this list.
> 
> I'm now almost ready to shelve my laptop and start using an iPad Pro with the 
> Apple "smart" keyboard. However, I haven't found a good way to do my org-mode 
> authoring.  I know there's org-mobile, but I don't want to have to think 
> about sync'ing, or try to remember where the latest versions of my docs are 
> as I move from one computer to another.
> 
> I've thought about using the iPad to ssh to a desktop computer, and just 
> running emacs on that. That might be the best solution, but the Apple "smart" 
> keyboard doesn't seem to have any meta key. Has anyone figured out how to get 
> the option key to work that way in vSSH? Or is there a better ssh app?
> 
> Is there some other option I'm overlooking? I know there are some "almost 
> emacs" apps, but ... they're "almost."
> 
> BTW, I also use emacs for gnus, and for web and software development, but 
> org-mode is what I really need on the iPad.
> 
> Thanks!
> -pd
> 
> 
> -- 
> 
> Peter Davis
> http://www.techcurmudgeon.com
> 
> 



Re: [O] New issue with capture

2012-01-22 Thread Ido Magal
For the benefit of future archive-reading generations, I isolated the issue
to a bug in the emacs head revision at the time I built it. Re-fetching and
building fixed it.


On Mon, Jan 9, 2012 at 20:17, Ido Magal  wrote:

> This is GNU Emacs 24.0.92.1 (i386-apple-darwin11.2.0, NS
> apple-appkit-1138.23)
>
> I've reduced my .emacs to the following:
>
> =
> (setq org-capture-templates
>  '(("t" "Task" entry (file+datetree "~/org/tasks.org")
> "** next %?")))
> =
>
> ~/org/tasks.org may not exist for this to repro. It repros either way.
>
>
> Repro steps:
>
> 1. M-x org-capture
>
> 2. enter anything
>
> 3. C-c C-c
>
> Result:
> "byte-code: To bind the key M-DEL, use "\M-\d", not [M-DEL]"
>
> 4. C-c C-c again.
>
> Result:
> "save-restriction: Wrong type argument: integer-or-marker-p, nil"
>
> 5. Kill the 'CAPTURE-tasks.org' buffer. (C-x k)
>
> 6. repeat steps 1-3
> Result: Success(!?)
>
>
>
> Thanks for investigating!
>
>
> On Mon, Jan 9, 2012 at 02:57, Bastien  wrote:
> > Hi Ido,
> >
> > Ido Magal  writes:
> >
> >> When I attempt to org-capture-finalize, I get
> >>
> >> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p
> nil)
> >>   org-capture-bookmark-last-stored-position()
> >>   org-capture-finalize(nil)
> >>   call-interactively(org-capture-finalize nil nil)
> >
> > I cannot (even try to) reproduce this.
> >
> > Please provide a complete and minimal example -- a test file
> > and the relevant part of your configuration.
> >
> > Thanks,
> >
> > --
> >  Bastien
>


Re: [O] New issue with capture

2012-01-09 Thread Ido Magal
This is GNU Emacs 24.0.92.1 (i386-apple-darwin11.2.0, NS apple-appkit-1138.23)

I've reduced my .emacs to the following:

=
(setq org-capture-templates
  '(("t" "Task" entry (file+datetree "~/org/tasks.org")
 "** next %?")))
=

~/org/tasks.org may not exist for this to repro. It repros either way.


Repro steps:

1. M-x org-capture

2. enter anything

3. C-c C-c

Result:
"byte-code: To bind the key M-DEL, use "\M-\d", not [M-DEL]"

4. C-c C-c again.

Result:
"save-restriction: Wrong type argument: integer-or-marker-p, nil"

5. Kill the 'CAPTURE-tasks.org' buffer. (C-x k)

6. repeat steps 1-3
Result: Success(!?)



Thanks for investigating!


On Mon, Jan 9, 2012 at 02:57, Bastien  wrote:
> Hi Ido,
>
> Ido Magal  writes:
>
>> When I attempt to org-capture-finalize, I get
>>
>> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
>>   org-capture-bookmark-last-stored-position()
>>   org-capture-finalize(nil)
>>   call-interactively(org-capture-finalize nil nil)
>
> I cannot (even try to) reproduce this.
>
> Please provide a complete and minimal example -- a test file
> and the relevant part of your configuration.
>
> Thanks,
>
> --
>  Bastien



[O] New issue with capture

2012-01-08 Thread Ido Magal
When I attempt to org-capture-finalize, I get

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  org-capture-bookmark-last-stored-position()
  org-capture-finalize(nil)
  call-interactively(org-capture-finalize nil nil)


I'm running Org version 7.8.03 out of ELPA and Emacs 24 out of Brew.

I'd appreciate any assistance.



Re: [O] Editing Org files on the iPad

2011-08-03 Thread Ido Magal
I'm in the same boat. I found that Nebulous Notes is a suitable plain text
editor. I enter data into a inbox.org on dropbox and refile them when back
at a desktop.

I'd easily pay for an ios or web text editor that had rudimentary org syntax
support, such as collapsing drawers and indenting headings.

On Wed, Aug 3, 2011 at 09:46, Carl Bolduc  wrote:

> My setup:
>   - windows pc at work
>   - iMac at home (my wife is monopolizing it :P )
>   - iPad for personal use
>
>
> Is anyone in a similar situation? What are your solutions/workarounds?
>
> Carl
>
>


[O] Agenda global list tweak

2011-07-27 Thread Ido Magal
I have nested tasks that are much harder to parse when presented in the
unindented agenda view.

I would like to replace the CATEGORY column with a column that shows the
parent of the task.

So instead of

todo.txtmow lawn
todo.txtclean mower
todo.txtbuy fuel

i'd see

todo.txt  mow lawn
mow lawn   clean mower
mow lawn   buy fuel

Is this easy to do?


Re: [O] IDs

2011-07-18 Thread Ido Magal
org-mobile-force-id-on-agenda-items!

thanks!

On Mon, Jul 18, 2011 at 22:25, Carsten Dominik wrote:

> org-mobile-force-id-on-agenda-items
>


Re: [O] IDs

2011-07-18 Thread Ido Magal
Hrmm. By your response I takeit that it's not as obvious as I was
expecting. I assumed that ID additions were normal. I'll
reinvestigate.

Thanks.

On Jul 18, 2011, at 7:54, Bastien  wrote:

> Dear Ido,
>
> Ido Magal  writes:
>
>> Is it possible to suppress the creation of IDs? And what might be the
>> consequences of doing so?
>
> Please give more context:
>
> - when do IDs get created?
> - what is your configuration relevant to this?
> - what did you try to turn off the creation of IDs?
>
> Help us replicate the problem to see how we can help you.
>
> Best regards,
>
> --
> Bastien



[O] IDs

2011-07-18 Thread Ido Magal
Is it possible to suppress the creation of IDs? And what might be the
consequences of doing so?

Org-mode tends to add IDs and it makes files less readable outside of Emacs.



Re: [O] Org-toggle-checkbox broken in 7.5?

2011-06-13 Thread Ido Magal
I grossly misunderstood.  org-toggle-checkbox ( C-c C-c, C-c C-x C-b) works
correctly.

I expected org-toggle-checkbox to toggle from

- item

to

- [ ] item

and obviously it doesn't do this.

Sorry for the noise.  Carry on.



On Mon, Jun 13, 2011 at 11:40, Nicolas Goaziou  wrote:

>
>
> That's interesting, even if a bit vague. So, when you use C-c C-c on the
> following line :
>
>  - [ ] Do that
>
> Really nothing happens ?
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Org-toggle-checkbox broken in 7.5?

2011-06-13 Thread Ido Magal
Please report back when you identify the issue.

I regularly get latest org and have never gotten org-toggle-checkbox
to do anything.

On Jun 13, 2011, at 6:05, "Wikström, Gustav"  wrote:

> Good comments!
>
> I did some tests beforehand but did not try the minimal .emacs.
>
> The key is still bound to the function according to C-h c and M-x 
> org-toggle-checkbox did not do any difference. There is something blocking 
> the function in my initialization though, because when using a minimal 
> init.el it did work! Since it's probably a local error springing from 
> something altered by me I'll continue with the debugging on my own.
>
> Thanks for the input.
>
> /Gustav
>
> -Original Message-
> From: n...@dokosmarshall.org [mailto:n...@dokosmarshall.org] On Behalf Of 
> Nick Dokos
> Sent: den 11 juni 2011 19:51
> To: Wikström, Gustav
> Cc: emacs-orgmode@gnu.org; nicholas.do...@hp.com
> Subject: Re: [O] Org-toggle-checkbox broken in 7.5?
>
> Wikström, Gustav  wrote:
>
>> Hello!
>>
>> The command C-c C-x C-b has stopped working for me and I quietly blame 7.5 
>> for it. Anyone who can
>> attest or reject this statement?
>>
>
> Works here: Org-mode version 7.5 (baseline.273.g889a48)
>
> Before blaming org, please do your due diligence:
>
> Execute the function by hand, with M-x org-toggle-checkbox RET, and
> *report the results*: "it does not work" is just not specific enough,
> because it depends on your expectations which may or may not match
> reality. If it does nothing, then say so explicitly.
>
> Is the key still bound to the correct function? C-h c C-c C-x C-b will
> tell you whether the key is still bound to what it is supposed to be
> bound to (org-toggle-checkbox in this case). If not, then you are
> probably using some minor mode that hijacks the key.  Check the mode
> line for what minor modes you are running, eliminate them one by one and
> see if you can get the functionality back.
>
> If this doesn't resolve it, next start up emacs without your
> customizations, just a minimal .emacs file that initializes org-mode,
> visit the file and do the things above again. I keep a very short
> minimal.emacs file for exactly this purpose, start up emacs with
>
>emacs -q -l ~/minimal.emacs
>
> and try to reproduce the problem.
>
> In 99% of problems, these are enough to identify the culprit.
>
> If you feel a bit adventurous and have the time, you can learn a bit
> about debugging (see section 18.2, "Edebug", of the Elisp manual) and
> trace the execution of the function. If you don't know elisp, you may
> feel somewhat apprehensive about this, but it's a good way to dig deeper
> into emacs.
>
> Nick



Re: [O] TAB

2011-05-30 Thread Ido Magal
On Mon, May 30, 2011 at 15:14, Michael Markert <
markert.mich...@googlemail.com> wrote:
>
>
> Well the point is, that it isn't whatsoever related to orgmode but to
> Emacs. And searching for `emacs insert tab' gives helpful results
> already in the first hit.
>
>
Fair enough.  It never occurred to me that emacs might not support the
native literal TAB. Thanks.


Re: [O] TAB

2011-05-30 Thread Ido Magal
Perfect! Thanks!

To the powers that be I'd recommend adding a note, explaining how to get a
literal TAB, in the following two places:

http://orgmode.org/manual/Visibility-cycling.html
http://orgmode.org/orgcard.txt

These are the top results for googling "orgmode tab"

Cheers!


On Mon, May 30, 2011 at 11:27, Darlan Cavalcante Moreira
wrote:

>
> Try C-q TAB.
>
> C-q inserts the next character literally. This is useful to insert control
> characters.
>
> --
> Darlan
>
> At Mon, 30 May 2011 10:07:29 -0700,
> Ido Magal  wrote:
> >
> > [1  ]
> > With TAB being overloaded with visibility cycling, how do I insert a
> regular
> > tab (\t) ?
> > [2  ]
> >
>
>


[O] TAB

2011-05-30 Thread Ido Magal
With TAB being overloaded with visibility cycling, how do I insert a regular
tab (\t) ?


Re: [O] lower-case TODOs

2011-05-17 Thread Ido Magal
I replaced all existing todos with lowercase equivalents and don't recall
having any downsides.  I agree that it's a much more pleasant and less
intimidating visual.

On Tue, May 17, 2011 at 12:34, Nathan Neff  wrote:

>
> Can anyone see foresee any big pitfalls with doing this?
>
>


[O] Re: Custom Agenda that partially skips entries

2011-04-10 Thread Ido Magal
Perfect. Thanks!

-- 
Ido Magal
Sent with Sparrow
On Sunday, April 10, 2011 at 05:30 , Bernt Hansen wrote: 
> Ido Magal  writes:
> 
> > I'd appreciate assistance in constructing a custom agenda that
> > accomplishes the following (if possible):
> > 
> > 1. Block of week's agenda.
> > 2. Block of "next" items that have no schedule ( items that don't
> > show up in block 1 )
> > 
> > This is my starting point:
> > 
> > (setq org-agenda-custom-commands
> > '(("n" "Next tasks"
> > ((todo "next")))
> > ("A" "agenda"
> > ((agenda "" ((org-agenda-ndays 7)))
> > (todo "next")
> > ))
> > ))
> > 
> > The problem here is that I get duplicates because _all_ 'next' items
> > show up in the second block. I'd rather that only unscheduled items
> > showed there.
> > 
> > I thought that this would do it, but it fails:
> > 
> > (setq org-agenda-custom-commands
> > '(("n" "Next tasks"
> > ((todo "next")))
> > ("A" "agenda"
> > ((agenda "" ((org-agenda-ndays 7)))
> > ((todo "next")
> >  (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline
> > 'scheduled)))
> > ))
> > ))
> > 
> > Thanks in advance.
> 
> Hi Ido,
> 
> In the second block set the variable org-agenda-todo-ignore-scheduled to
> either 'future or 'all to avoid listing items with a scheduled date.
> 
> This is part of my block agenda for next tasks:
> 
>  (tags-todo "-WAITING-CANCELLED/!NEXT|STARTED"
>  ((org-agenda-overriding-header "Available to Work on Now")
>  (org-agenda-skip-function 'bh/skip-projects)
>  (org-agenda-todo-ignore-scheduled 'future)
>  (org-agenda-todo-ignore-deadlines 'future)
>  (org-tags-match-list-sublevels t)
>  (org-agenda-sorting-strategy
>  '(effort-up category-keep
> 
> HTH,
> Bernt
> 


[O] Custom Agenda that partially skips entries

2011-04-09 Thread Ido Magal
I'd appreciate assistance in constructing a custom agenda that accomplishes
the following (if possible):

1. Block of week's agenda.
2. Block of "next" items that have no schedule ( items that don't show up in
block 1 )

This is my starting point:

(setq org-agenda-custom-commands
  '(("n" "Next tasks"
 ((todo "next")))
 ("A" "agenda"
 ((agenda "" ((org-agenda-ndays 7)))
  (todo "next")
  ))
))

The problem here is that I get duplicates because _all_ 'next' items show up
in the second block.  I'd rather that only unscheduled items showed there.

I thought that this would do it, but it fails:

(setq org-agenda-custom-commands
  '(("n" "Next tasks"
 ((todo "next")))
 ("A" "agenda"
 ((agenda "" ((org-agenda-ndays 7)))
  ((todo "next")
   (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline
'scheduled)))
  ))
))

Thanks in advance.


Re: [O] Re: [Orgmode] Startup page

2011-03-10 Thread Ido Magal
On Mon, Feb 28, 2011 at 03:51, Konrad Hinsen
wrote:
>
>
> 1) An org-mode file that contains links to everything I am currently
> working on, and which I change as projects start and end. This gives me
> instant access to almost everything I need.
>
> 2) A buffer containing my agenda and to-do list.
>
> Translated to .emacs, this means:
>
> (find-file "~/org/current.org")
> (split-window-vertically)
> (org-agenda nil "g")
>
> Konrad.


 Same here, except I also have a dblock that links to my most recently
modified files to remind myself what I was working on last.

In .emacs I have:

(defun org-dblock-write:recently-modified (params)
  (insert (mapconcat (lambda (arg) (concat "[[file:" arg "][" arg "]]" ))
(split-string (shell-command-to-string "ls -t ~/org *.org | head -5"))
"\n")))

and my startup page looks like this:
--
# -*- eval: (org-update-all-dblocks) -*-

...my stuff...

#+BEGIN: recently-modified
#+END


Re: [O] How to move tasks in agenda view

2011-03-05 Thread Ido Magal
Thanks.  I've tried to refile but it wouldn't let me refile outside of the
original file.  Your answer confirmed it and, digging deeper, I found that I
needed to modify org-refile-targets.

On Sat, Mar 5, 2011 at 20:49, Samuel Wales  wrote:

> m
> B r
>
> --
> AIDS 2.0: The Kafka Pandemic
>
> http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
> I support the Whittemore-Peterson Institute (WPI)
> ===
> I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV
> paper.
>


[O] How to move tasks in agenda view

2011-03-05 Thread Ido Magal
Hi,

I capture tasks in a date-tree task-diary file.  I'm at the point where I
would like to extract a particular set of tasks (in this case, all tasks of
a particular tag) into a separate file.  It's really easy to set the agenda
view to isolate the tasks, but what's a reasonable way to select those items
and move them into a new file?

Thanks in advance.


Re: [Orgmode] Embedded code

2011-02-03 Thread Ido Magal
On Fri, Jan 21, 2011 at 18:05, Eric Schulte  wrote:
>
>
> There are a variety of ways to convert lists to strings, look at the
> `format' function for printing any elisp value to a string.  You can
> also use something like the following to convert a list to a string
>
> #+begin_src emacs-lisp
>  (mapconcat (lambda (el) (format "%S" el)) '(1 2 3 4 5 6) "\t")
> #+end_src
>
> ...

>
> You can use the inline code syntax for very small blocks, e.g.
>
>
I've proceeded with my little project using the dynamic block, since it
seems that this is what it was designed for. I wrote the following bit of
code and would appreciate answers to a couple of questions.

#+begin_src emacs-lisp :results silent
(defun flatten-string-with-links (str)
  (let* ((newstr str))
; find [[link][desc]] and replace with 'desc.
(setq newstr (replace-regexp-in-string
"\\[\\[[^\\[]+\\]\\[[^//[]+\\]\\]"
(lambda (s) (save-match-data
 (nth 2 (split-string s "[\]\[]+" newstr))
; find [[link]] and replace with 'link.
(setq newstr (replace-regexp-in-string "\\[\\[[^\\[]+\\]\\]"
(lambda(s) (save-match-data
  (nth 1 (split-string s "[\]\[]+" newstr))
  newstr))

(defun org-dblock-write:tagged (params)
  (insert (mapconcat 'identity
 (org-map-entries
  (lambda()
 (let* (link desc innerlink)
  (setq desc (nth 4 (org-heading-components)))
  (setq desc (flatten-string-with-links desc))
  (setq link (concat "file:"
 (abbreviate-file-name (buffer-file-name (buffer-base-buffer)))
 "::"
 (org-make-org-heading-search-string)))
  (org-make-link-string link desc)))
 (plist-get params :tag)
(plist-get params :scope))
  "\n")))
 #+end_src

* example   :links:
** not a link
** [[http://google.com][link]]
** some text.[[http://google.com][link]]
** [[http://google.com]]
** some text. [[http://google.com][link]]. more text.
[[http://google.com][link]].
final text.
** [[
http://www.knifecenter.com/kc_new/store_detail.html?s%3DAOBSHARP][brokenlink]]

#+BEGIN: tagged :tag "links"
#+END


Q1: I've tried to leverage as much built-in org functionality as possible,
but deeply suspect that I'm overlooking some, since agendas do much of this
work.  Is there a simpler solution than mine?

Q2: The link generated for the last item ("broken link") does not work.
 Removing the "%" from the URL fixes it.  This seems to be a bug
in org-make-org-heading-search-string?  Or am I misusing it?

Any help would be greatly appreciated.
___
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] Embedded code

2011-01-28 Thread Ido Magal
Thanks.  Removing package.el and replacing (required 'org) with (required
'org-install) fixed it.  I still don't know what the difference is but I
seem to be functional now.

On Tue, Jan 25, 2011 at 20:54, Eric Schulte  wrote:

> Ido Magal  writes:
>
> > I've gotten the fix and am trying to verify it, however I keep seeing
> >
> >>File local-variables error: (invalid-function
> org-save-outline-visibility)
> >
>
> Hmm, this function is defined in org-macs.el, and is required by ob.el
> so if you have Org-mode and Babel loaded then the function should be
> defined.  I can't reproduce the error, maybe it is specific to your
> Emacs version or configuration?
>
> Best -- 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
>
___
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] Embedded code

2011-01-25 Thread Ido Magal
I've gotten the fix and am trying to verify it, however I keep seeing

>File local-variables error: (invalid-function org-save-outline-visibility)

I'm not sure if it's relevant or not.  This is my test file:


# -*- eval: (org-babel-execute-buffer) -*-

src_sh[:results append]{ls -t ~/org/ *.txt|head -5}




>
> Thanks for the catch, you are correct, `org-babel-execute-buffer' did
> not evaluate inline code blocks, I've just pushed up a fix for this.
>
>
___
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] Embedded code

2011-01-24 Thread Ido Magal
On Fri, Jan 21, 2011 at 18:05, Eric Schulte  wrote:

>
> You can use the inline code syntax for very small blocks, e.g.
>
>  src_emacs-lisp{(tagged "foo")}
>

I'm missing something.  This does not evaluate with

# -*- eval: (org-babel-execute-buffer) -*-
___
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] archive-done-tasks

2011-01-24 Thread Ido Magal
This is the result:

Debugger entered--Lisp error: (quit)
  re-search-forward("- State \"\\(\\(?:done\\)\\)\"\\s-*\\[\\([^]\n]+\\)\\]"
605 t)
  (if (re-search-forward state-regexp end t) (progn (let* ... ...)))
  (when (re-search-forward state-regexp end t) (let* (... ...) (if ...
...)))
  (let ((end ...) begin) (goto-char (line-beginning-position)) (setq begin
(point)) (when (re-search-forward state-regexp end t) (let* ... ...)))
  (while (re-search-forward done-regexp nil t) (let (... begin) (goto-char
...) (setq begin ...) (when ... ...)))
  (let ((done-regexp ...) (state-regexp ...)) (while (re-search-forward
done-regexp nil t) (let ... ... ... ...)))
  (save-excursion (goto-char (point-min)) (let (... ...) (while ... ...)))
  archive-done-tasks()
  call-interactively(archive-done-tasks t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

On Sun, Jan 23, 2011 at 05:24, David Maus  wrote:

> At Sun, 9 Jan 2011 20:11:18 -0800,
> Ido Magal wrote:
> >
> > Hi everyone,
> >
> > I'm new to org-mode and I'm trying to incorporate this bit of code
> > into my setup:
> >
> > archive-done-tasks
> >
> > However when I run it it seems to hang emacs (osx)
> > terminally.  Since emacs, org-mode, and lisp are all alien to me,
> > there's no shortage of places where I could be failing so I'll spare
> > details of my setup until it's confirmed that that code should still
> > work ( it's from 2007 and I don't see that it's been integrated into
> > org-mode proper ).
>
> Can you stop Emacs hanging by pressing C-g ?
>
> If so, you might turn on debugging for C-g (M-x toggle-debug-on-quit
> RET), hit the loop and press C-g.  The backtrace might give a clue why
> and where Emacs is hanging.
>
> HTH,
>  -- David
>
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber dmj...@jabber.org
> Email. dm...@ictsoc.de
>
___
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] Why is the category in the agenda view displaying the wrong information

2011-01-24 Thread Ido Magal
>From my understanding, you are using the wrong syntax. You are using the
syntax for setting the category for the entire buffer and not for individual
headings.

See this:

http://www.gnu.org/software/emacs/manual/html_node/org/Categories.html


On Jan 23, 2011, at 18:23, Carl Bolduc  wrote:

Please see this screenshot:
http://carlbolduc.tumblr.com/post/2902432656/petit-probleme-de-categorie-avec-emacs-org-mode

>From what I know, I should see the name of the org file on the left side of
"TODO prendre mon synthroïde".

Instead, I see "Ann", which is a category that is used in another section of
the org file. What is going on here?

___
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] Embedded code

2011-01-21 Thread Ido Magal
Perfect!  Thanks on both counts.

On Fri, Jan 21, 2011 at 18:05, Eric Schulte  wrote:

> >
> > I have a few elementary questions I hope someone can bother to answer:
> >
> > 1. It seems that when org prints a list, it automatically formats it into
> a
> > table.  In lisp, what's a proper way of converting a list to a string so
> I
> > can have more control over the format?  My first attempts were
> unsuccessful.
> >
>
> There are a variety of ways to convert lists to strings, look at the
> `format' function for printing any elisp value to a string.  You can
> also use something like the following to convert a list to a string
>
> #+begin_src emacs-lisp
>  (mapconcat (lambda (el) (format "%S" el)) '(1 2 3 4 5 6) "\t")
> #+end_src
>
> >
> > 2. I'd like to use Org's macros to replace
> >
> > #+begin_src
> > (tagged "foo")
> > #+end_src
> >
> > with
> >
> > {{{(tagged "foo")}}}
> >
> > but Org macros only expand on export.  Would it be feasible to change the
> > macro functionality and hook into file loading?  Or is there some other
> way
> > I can slim these down to be terse?
> >
>
> You can use the inline code syntax for very small blocks, e.g.
>
>  src_emacs-lisp{(tagged "foo")}
>
> See http://orgmode.org/manual/Structure-of-code-blocks.html
>
> Cheers -- 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] Embedded code

2011-01-20 Thread Ido Magal
So I was able to construct the following functioning bit of code from
someone else recent post:

#+begin_src emacs-lisp :results output raw
(defun tagged (tag &optional scope)
 (let ((entries ()))
   (org-map-entries
 (lambda ()
   (add-to-list 'entries
(list (concat "[[" (nth 4 (org-heading-components))
"]]"
 tag scope)

   (sort entries (lambda (f s)
(string-lessp (car f) (car s))

(tagged "buy" 'agenda)
#+end_src

I have a few elementary questions I hope someone can bother to answer:

1. It seems that when org prints a list, it automatically formats it into a
table.  In lisp, what's a proper way of converting a list to a string so I
can have more control over the format?  My first attempts were unsuccessful.

2. I'd like to use Org's macros to replace

#+begin_src
(tagged "foo")
#+end_src

with

{{{(tagged "foo")}}}

but Org macros only expand on export.  Would it be feasible to change the
macro functionality and hook into file loading?  Or is there some other way
I can slim these down to be terse?


On Tue, Jan 18, 2011 at 22:46, Ido Magal  wrote:

> Excellent.
>
> Now that I see that it's possible, I'm struggling to find sufficient
> examples to help me understand how to go about writing the bits of lisp that
> would allow to me create useful blocks of org-mode code, such as a
> back-links block or a list of links to entries of a certain tag.  I'm
> lisp-illiterate but I was expecting that if it was possible then someone had
> already done it and that I could cut and paste my way to success.
>
> Do these examples exist?  Does anyone use babel to extend the functionality
> of the note organizing aspect of org-mode?  All of the babel examples I've
> found relate to manipulating content for export as opposed to enhancing
> organizational utility.
>
> Cheers and thanks again.
>
>
> On Tue, Jan 18, 2011 at 12:42, Eric Schulte wrote:
>
>> >
>> > 2. Is it possible to manipulate or reference the results so that they're
>> not
>> > bound to a RESULTS block.  I'm finding all of the blocks of orgmode
>> > distracting and I'm trying to avoid and eliminate them as much as
>> possible.
>> >  I'm not used to it and they really impedes the readability of my notes.
>>
>> Yes, you can change the look of the results of code blocks, see the
>> results header argument for more information.
>> http://orgmode.org/manual/results.html
>>
>
>
___
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] Embedded code

2011-01-18 Thread Ido Magal
Excellent.

Now that I see that it's possible, I'm struggling to find sufficient
examples to help me understand how to go about writing the bits of lisp that
would allow to me create useful blocks of org-mode code, such as a
back-links block or a list of links to entries of a certain tag.  I'm
lisp-illiterate but I was expecting that if it was possible then someone had
already done it and that I could cut and paste my way to success.

Do these examples exist?  Does anyone use babel to extend the functionality
of the note organizing aspect of org-mode?  All of the babel examples I've
found relate to manipulating content for export as opposed to enhancing
organizational utility.

Cheers and thanks again.


On Tue, Jan 18, 2011 at 12:42, Eric Schulte  wrote:

> >
> > 2. Is it possible to manipulate or reference the results so that they're
> not
> > bound to a RESULTS block.  I'm finding all of the blocks of orgmode
> > distracting and I'm trying to avoid and eliminate them as much as
> possible.
> >  I'm not used to it and they really impedes the readability of my notes.
>
> Yes, you can change the look of the results of code blocks, see the
> results header argument for more information.
> http://orgmode.org/manual/results.html
>
___
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] Embedded code

2011-01-18 Thread Ido Magal
Eric,

thanks.  This is great.

Couple of followups:

1. Is it possible to avoid the confirmations on every file load?
2. Is it possible to manipulate or reference the results so that they're not
bound to a RESULTS block.  I'm finding all of the blocks of orgmode
distracting and I'm trying to avoid and eliminate them as much as possible.
 I'm not used to it and they really impedes the readability of my notes.
 Ideally my notes would look something like this:

* note 1
* note 2

* Back-links to this note:
(backlinks-function)
* All notes tagged with /foo/
(tagged-with( foo ))
* All notes tagged with /bar/
(tagged-with( bar ))

Is this possible?

Thanks again.  Cheers.


On Tue, Jan 18, 2011 at 08:16, Eric Schulte  wrote:

> Rainer M Krug  writes:
>
> > On 01/18/2011 12:48 AM, Eric Schulte wrote:
> >> Hi,
> >>
> >> This is possible using Babel, the attached org-mode file will execute
> >> its code block every time it is opened.  You can replace the contents of
> >> the code block with any arbitrary elisp you would like to have executed
> >> in the file.
> >>
> >> To see this work, save the attached org-mode file to your system, open
> >> the file, answer "y" to allow execution, and then check your messages
> >> buffer for the "I have been run" message to see that the code block has
> >> in fact been evaluated.
> >
> > This is indeed very useful (e.g. if I open an R script, to open an R
> > session and source the file).
> >
> > But it seems that all code blocks are evaluated on loading. Is there a
> > way of only executing a specific code block?
> >
>
> Yes, replace the
>
> # -*- eval: (org-babel-execute-buffer) -*-
>
> with
>
> # -*- eval: (save-excursion (org-babel-goto-named-src-block NAME)
> (org-babel-execute-src-block)) -*-
>
> where NAME is replaced with the name of the code block to execute.
>
> Cheers -- 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


[Orgmode] Embedded code

2011-01-18 Thread Ido Magal
Hello,

Is it possible to put code in a document such that it gets evaluated
when the document is opened?  For example, I'd like to have a
link-back section in each note. I'm aware of babel but I neither
understand how to make it auto-evaluate on open nor do i know if
making it compact ( and avoid separate code and result blocks ) is
possible.

Thanks in advance.

___
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] Embedded code

2011-01-17 Thread Ido Magal
Hello,

Is it possible to put a block of code in a document such that it gets
evaluated when the document is opened?  For example, I'd like to have
a link-back section in each note.

I'm aware of babel but I neither understand how to make it auto-evaluate on
open nor do i know if
making it compact ( and avoid having code and result blocks ) is possible.
 I see examples where it's used for export but haven't seen one for general
org usage.

Thanks in advance.
___
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] archive-done-tasks

2011-01-09 Thread Ido Magal
Hi everyone,

I'm new to org-mode and I'm trying to incorporate this bit of code into my
setup:

archive-done-tasks

However when I run it it seems to hang emacs (osx) terminally.  Since emacs,
org-mode, and lisp are all alien to me, there's no shortage of places where
I could be failing so I'll spare details of my setup until it's confirmed
that that code should still work ( it's from 2007 and I don't see that it's
been integrated into org-mode proper ).

Thanks in advance.
___
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