Re: [O] org-agenda-files for calfw

2015-08-27 Thread Nick Dokos
Julien Cubizolles  writes:

> Eric S Fraga  writes:
>
>> On Thursday, 27 Aug 2015 at 14:06, Julien Cubizolles wrote:
>>> I'd like to choose only a few of my org-agenda-files to be displayed by
>>> cfw:open-org-calendar. I couldn't find a variable for that. Should I use
>>> some temporary variable to store the content of the real
>>> org-agenda-files while launching calfw or is there an easier way ?
>>
>> You could try advising the function maybe?
>>
>> https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html
>
> OK, here is my first unsuccessful attempt. I've never used advises
> before so I'm not even sure it makes sense. 
>
> (defun jc-change-agenda-files ()
>   (make-local-variable 'org-agenda-files)
>   (setq org-agenda-files '('"~/org/orgfiles/planning.org")))
>
> (advice-add 'cfw:open-org-calendar :before
> 'jc-change-agenda-files)
>
> When I run cfw:open-org-calendar, I see entries from all my agenda
> files. However, without the make-local-variable part, I only get the
> entries from planning.org but that's not what I want since I don't want
> to change org-agenda-files for the other agenda views.
>

Bind org-agenda-files in a let before calling cfw:open-org-calendar:

(let ((org-agenda-files '(...)))
  (cfw:open-org-calendar))

Nick





Re: [O] Links to Info manuals in exported HTML/LaTeX

2015-08-27 Thread Richard Y. Kim
Marcin Borkowski  writes:

> Hi all,
>
> it seems that links to Info manuals are broken in HTML and LaTeX export
> (and possibly in other backends, too).
>
> Would it make sense to make them work, i.e., link to the official web
> versions, at least for standard Info manuals, like Emacs manual, Elisp
> reference or Org manual?

It is not broken for my use case.  I like the fact that 

[[info:emacs#Top][Emacs Manual]]

is turned into

Emacs Manual

because I generated emacs.html, elisp.html, org.html, etc. all in
my ~/public_html/ or sub-directories.  Hence 
Emacs Manual
works fine for my use case.  It is a lot faster to access GNU manuals
when they are all on local host.

Should the current behavior be the default?  Perhaps not.  I believe
makeinfo and/or texi2html generates html links pointing to the official
pages at gnu.org.  This could be the default behavior, but I hope not
the *only* behavior.  If current export code is to be changed, I would
like to see user selectable option so that I can choose to use the
current behavior.



Re: [O] org-agenda-files for calfw

2015-08-27 Thread Julien Cubizolles
Eric S Fraga  writes:

> On Thursday, 27 Aug 2015 at 14:06, Julien Cubizolles wrote:
>> I'd like to choose only a few of my org-agenda-files to be displayed by
>> cfw:open-org-calendar. I couldn't find a variable for that. Should I use
>> some temporary variable to store the content of the real
>> org-agenda-files while launching calfw or is there an easier way ?
>
> You could try advising the function maybe?
>
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html

OK, here is my first unsuccessful attempt. I've never used advises
before so I'm not even sure it makes sense. 

--8<---cut here---start->8---
(defun jc-change-agenda-files ()
  (make-local-variable 'org-agenda-files)
  (setq org-agenda-files '('"~/org/orgfiles/planning.org")))

(advice-add 'cfw:open-org-calendar :before
  'jc-change-agenda-files)
--8<---cut here---end--->8---

When I run cfw:open-org-calendar, I see entries from all my agenda
files. However, without the make-local-variable part, I only get the
entries from planning.org but that's not what I want since I don't want
to change org-agenda-files for the other agenda views.

Julien.




Re: [O] beamer_env tag issue with empty headlines

2015-08-27 Thread Pip Cet
On Thu, Aug 27, 2015 at 6:53 PM, Nicolas Goaziou 
wrote:

> Pip Cet  writes:
>
> > Could you explain your reasoning for this in some more detail? I use
> > empty headlines + tags (properties, actually) in my "set properties in
> > headlines rather than special drawers" code, and I wouldn't want it to
> > break even more than it currently is because of this limitation.
>
> The reasoning is that it is a tricky situation, which may not be handled
> everywhere in code base, e.g., depending on the regexp used. As
> a consequence you're in /terra incognita/ anytime you use such
> constructs.
>

IMHO it would be a good idea to reduce the number of regexps anyway; for
example, there are more than twenty regexps trying to match the tags at the
end of the line. (I've fixed that here, and will submit a patch as soon as
the copyright papers have been accepted)

> I don't, but empty headlines are useful for setting tags (or, in my
> > case, properties) without making up a title, so in my humble opinion
> > it's a clear-cut case to support empty headlines + tags.
>
> Possible. The fact that we're having this discussion means we should
> probably choose one option, write it down in Org syntax, then deal with
> the bugs. Which option is open for debate. I am not married to any of
> them.
>

I think we have three options:
1. declare empty headlines forbidden
2. declare empty headlines allowed, and hope everything goes well
3. declare empty headlines allowed and go through the code making sure we
deal with them everywhere.

My preference is 3, but 1 is better than 2. I'm volunteering to try to find
the time for #3 (if only there were some sort of Emacs extension to help me
organize things better), but can't really promise anything. However, I
think we should make the decision first so it's not a total waste of effort.

I should clarify that I consider only headlines with at least one space
following the stars "empty headlines". A star on a line of its own doesn't
count.

Thanks!
Pip


Re: [O] org-agenda-files for calfw

2015-08-27 Thread Julien Cubizolles
Eric S Fraga  writes:

> On Thursday, 27 Aug 2015 at 14:06, Julien Cubizolles wrote:
>> I'd like to choose only a few of my org-agenda-files to be displayed by
>> cfw:open-org-calendar. I couldn't find a variable for that. Should I use
>> some temporary variable to store the content of the real
>> org-agenda-files while launching calfw or is there an easier way ?
>
> You could try advising the function maybe?
>
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html

Thanks for this advice... I'll try to something with make-local-variable
in an advice around the function calling the agenda.

Julien.



[O] "no such file or directory" "gnuplot"

2015-08-27 Thread Tobias Frischholz

Hi there!

I'm glad that there's a mailing list which might help me with my 
org-mode setup.


Somehow I'm not capable of running gnuplot.
But first things first.

My system is an OSX Yosemite with Emacs 24.5.1 and org-mode 8.3.1 (both 
installed via Homebrew).


For training purposes I have tried this example:
https://www.gnu.org/software/emacs/manual/html_node/org/Org_002dPlot.html

Upon hitting C-c " g, I get the following in my *Messages* buffer:

Debugger entered--Lisp error: (file-error "Searching for program" "no 
such file or directory" "gnuplot")
  call-process-region(1 13 "gnuplot" 
"/var/folders/f9/tl9s3mg13c71lshbwly9wk48gn/T/emacs9W768b" #*temp*-822530>)

  gnuplot-fetch-version-number()
  gnuplot-mode()
  org-plot/gnuplot()
  call-interactively(org-plot/gnuplot nil nil)
  command-execute(org-plot/gnuplot)

I have gnuplot installed via Homebrew (brew install gnuplot) and within 
Emacs (M-x package-install RET gnuplot).


Any help would be greatly appreciated!


Best regards!
Tobias Frischholz

PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?search=0xCD463AC1&op=index



Re: [O] [PATCH] org.texi: Fix typo

2015-08-27 Thread Nicolas Goaziou
Hello,

jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes:

> Hi, I think that the correct option for the comments header argument
> is "link" not "links".
>
> From bb7824dfab8dc2855a6f02d49f271b63ec251cfc Mon Sep 17 00:00:00 2001
> From: "Jorge A. Alfaro Murillo" 
> Date: Tue, 25 Aug 2015 15:12:43 -0400
> Subject: [PATCH] org.texi: Fix typo
>
> * doc/org.texi (Extracting source code): Fix typo.

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] beamer_env tag issue with empty headlines

2015-08-27 Thread Nicolas Goaziou
Pip Cet  writes:

> Could you explain your reasoning for this in some more detail? I use
> empty headlines + tags (properties, actually) in my "set properties in
> headlines rather than special drawers" code, and I wouldn't want it to
> break even more than it currently is because of this limitation.

The reasoning is that it is a tricky situation, which may not be handled
everywhere in code base, e.g., depending on the regexp used. As
a consequence you're in /terra incognita/ anytime you use such
constructs.

> As you say, there are limitations in both cases, but do you actually
> see headlines beginning with a colon being useful anywhere?

FWIW, I don't even see empty headlines useful anywhere. You can, for
example, use \nbsp{} or some such to hide a headline. But IMO, it looks
weird in overview display and is totally uninformative.

> I don't, but empty headlines are useful for setting tags (or, in my
> case, properties) without making up a title, so in my humble opinion
> it's a clear-cut case to support empty headlines + tags.

Possible. The fact that we're having this discussion means we should
probably choose one option, write it down in Org syntax, then deal with
the bugs. Which option is open for debate. I am not married to any of
them.

Regards,



Re: [O] A bug with expanding headlines of the sparse tree?

2015-08-27 Thread Nicolas Goaziou
Meir Goldenberg  writes:

> Why not just have a command to exit the sparse tree mode?

There is no sparse tree mode so there is nothing to exit from. A sparse
tree is just a special folding. You can always unfold globally using
S-TAB, tho.

Anyway, I have the gut feeling that hiding top level headlines just
won't cut it. Perhaps a mock-up would help.


Regards,



Re: [O] Easy entry of date ranges

2015-08-27 Thread Miguel Ruiz
ÜFigid

Enviado desde Type



En 27/08/2015, 18:14, en 18:14, Eric S Fraga  escrito:
>On Thursday, 27 Aug 2015 at 23:33, Eric Abrahamsen wrote:
>> Oh man, I should have known not to second-guess Org.
>
>Gets me all the time!  :-)
>-- 
>: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org
>release_8.3.1-176-g45abec


Re: [O] Easy entry of date ranges

2015-08-27 Thread Eric S Fraga
On Thursday, 27 Aug 2015 at 23:33, Eric Abrahamsen wrote:
> Oh man, I should have known not to second-guess Org.

Gets me all the time!  :-)
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] Repeat only a certain number of times

2015-08-27 Thread Eric S Fraga
On Thursday, 27 Aug 2015 at 12:01, Samuel W. Flint wrote:
> I was wondering, is there a way to set a date-stamp so that it only
> repeats a certain number of times?  If not, what would it take to add
> it?

http://orgmode.org/worg/org-faq.html#org-class

However, my usual approach (for timetabling lectures, say) is to use:

,[ C-h f org-clone-subtree-with-time-shift RET ]
| org-clone-subtree-with-time-shift is an interactive compiled Lisp
| function in ‘org.el’.
| 
| (org-clone-subtree-with-time-shift N &optional SHIFT)
| 
| Clone the task (subtree) at point N times.
| The clones will be inserted as siblings.
| 
| In interactive use, the user will be prompted for the number of
| clones to be produced.  If the entry has a timestamp, the user
| will also be prompted for a time shift, which may be a repeater
| as used in time stamps, for example ‘+3d’.  To disable this,
| you can call the function with a universal prefix argument.
| 
| When a valid repeater is given and the entry contains any time
| stamps, the clones will become a sequence in time, with time
| stamps in the subtree shifted for each clone produced.  If SHIFT
| is nil or the empty string, time stamps will be left alone.  The
| ID property of the original subtree is removed.
| 
| If the original subtree did contain time stamps with a repeater,
| the following will happen:
| - the repeater will be removed in each clone
| - an additional clone will be produced, with the current, unshifted
|   date(s) in the entry.
| - the original entry will be placed *after* all the clones, with
|   repeater intact.
| - the start days in the repeater in the original entry will be shifted
|   to past the last clone.
| In this way you can spell out a number of instances of a repeating task,
| and still retain the repeater to cover future instances of the task.
| 
| As described above, N+1 clones are produced when the original
| subtree has a repeater.  Setting N to 0, then, can be used to
| remove the repeater from a subtree and create a shifted clone
| with the original repeater.
| 
| [back]
`

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



[O] Repeat only a certain number of times

2015-08-27 Thread Samuel W. Flint
I was wondering, is there a way to set a date-stamp so that it only
repeats a certain number of times?  If not, what would it take to add
it?

Thanks,

Sam

--
Samuel W. Flint
4096R/266596F4
  (9477 D23E 389E 40C5 2F10  DE19 68E5 318E 2665 96F4)
(λs.s s) λs.s s



Re: [O] HTML export doesn't work when #+TITLE: is added

2015-08-27 Thread Lohan Gunaweera
On 08/27/2015 08:16 PM, Kyle Meyer wrote:

> 
> This looks similar to previous issues related to a loaded version of Org
> interfering with the update (for example,
> http://permalink.gmane.org/gmane.emacs.orgmode/99535).
> 
> Please uninstall and then update again without any version of Org
> loaded.
> 
> --
> Kyle
> 

Thanks very much Kyle!

I reinstalled emacs and then installed org-mode from within emacs
list-packages.

Exports are working fine now.

Best regards,
Lohan




Re: [O] Easy entry of date ranges

2015-08-27 Thread Eric Abrahamsen
Eric S Fraga  writes:

> On Thursday, 27 Aug 2015 at 11:46, Eric Abrahamsen wrote:
 Ken Mankoff  writes:

> Org and the calendar make it fairly easy to enter time ranges, by
> typing "--" and then the end time or "+" and then the duration. I'd
> like to do something similar for dates, but it doesn't seem to be
> supported. Is there an easy way to enter a date range for a scheduled
> task?
>
> [...]
>
>> For a vacation, a plain timestamp is more appropriate. However! That
>> just begs the question of how to make it easier to enter a date range.
>> That's a question I don't know the answer to -- I suspect there isn't
>> any way but just hitting a couple of hyphens and then "C-c ." again. I
>> suppose Org could help by setting the default date of the end time to
>> something after the start time.
>>
>> Eric
>
> Actually, org is quite smart in this respect.  if you enter a time stamp
> and then ask to enter another, org automatically inserts the -- between
> the two time stamps.  E.g. try this key sequence to get a time range
> that covers 7 days starting today:
>
>   C-c . RET C-c . +6 RET
>
> and you should get: <2015-08-27 Thu>--<2015-09-02 Wed>

Oh man, I should have known not to second-guess Org. Thank you so much
for this tip!




Re: [O] Not getting replies from the orgmode list to my e-mail address

2015-08-27 Thread Jorge A. Alfaro-Murillo

Eric Abrahamsen writes:


Jorge A. Alfaro-Murillo writes:


I do not subscribe with my email to lists, but using 
news.gwene.org in gnus. There must be a way to check for 
duplicates in two different servers, but so few people reply to 
both the personal email address and the email list that I have 
never found the need to look how to set that up. I just delete 
the email and get slightly annoyed. I also have 
gnus-confirm-mail-reply-to-news set to t not to make the 
mistake of replying instead of following-up to news. 


I'm also reading through the Gnus newsreader. Personally I 
appreciate getting replies emailed to me directly, because some 
of these groups are high traffic and it can be easy to miss 
replies to threads.


This is a cool trick for that:

#+BEGIN_SRC emacs-lisp
 (add-hook 'message-sent-hook 'gnus-score-followup-thread)
#+END_SRC

In your case, have you tried setting the Mail-Followup-To 
header? Gnus also provides the `gnus-suppress-duplicates' 
option, which will at least mark the duplicates as read. That 
helps a bit.


Thanks! I'll check that next time I have the problem.

--
Jorge.




Re: [O] org-agenda-files for calfw

2015-08-27 Thread Eric S Fraga
On Thursday, 27 Aug 2015 at 14:06, Julien Cubizolles wrote:
> I'd like to choose only a few of my org-agenda-files to be displayed by
> cfw:open-org-calendar. I couldn't find a variable for that. Should I use
> some temporary variable to store the content of the real
> org-agenda-files while launching calfw or is there an easier way ?

You could try advising the function maybe?

https://www.gnu.org/software/emacs/manual/html_node/elisp/Advising-Functions.html

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] HTML export doesn't work when #+TITLE: is added

2015-08-27 Thread Kyle Meyer
Hello,

Lohan Gunaweera  writes:

> I am running org-mode 8.3.1 with Emacs 24.5.1. When I attempt to export
> a file that contains #+TITLE: the export fails. Instead I am shown the
> following message:
>
> "Wrong type argument: listp, #("Title_of_the_document" 0 40 (: parent (#0)))

This looks similar to previous issues related to a loaded version of Org
interfering with the update (for example,
http://permalink.gmane.org/gmane.emacs.orgmode/99535).

Please uninstall and then update again without any version of Org
loaded.

--
Kyle



[O] HTML export doesn't work when #+TITLE: is added

2015-08-27 Thread Lohan Gunaweera
Hello, I am new to this mailing list and relatively new to org-mode too.

I am running org-mode 8.3.1 with Emacs 24.5.1. When I attempt to export
a file that contains #+TITLE: the export fails. Instead I am shown the
following message:

"Wrong type argument: listp, #("Title_of_the_document" 0 40 (: parent (#0)))

Until now I was using emacs 23, the version provided by my operating
system (Trisquel 6) org export worked without any problem until I
installed the latest version.

What can I do to resolve this issue?

Regards,
Lohan



Re: [O] Getting rid of the #+begin_example #+end_example in src blocks evaluation

2015-08-27 Thread Julien Cubizolles
John Kitchin  writes:

> Put :results raw in the src header?

Thank you! 




[O] org-agenda-files for calfw

2015-08-27 Thread Julien Cubizolles
I'd like to choose only a few of my org-agenda-files to be displayed by
cfw:open-org-calendar. I couldn't find a variable for that. Should I use
some temporary variable to store the content of the real
org-agenda-files while launching calfw or is there an easier way ?

Julien.




Re: [O] Getting rid of the #+begin_example #+end_example in src blocks evaluation

2015-08-27 Thread John Kitchin
Put :results raw in the src header?

On Thursday, August 27, 2015, Julien Cubizolles 
wrote:

> I'm trying to create a list of entries with timeshifts. I found this
> very nice example:
>
> #+begin_src emacs-lisp
> (with-temp-buffer
>   (insert "*** Cours
> <2014-09-07 lun 8:45-12:00>")
>   (goto-char (point-min))
>   (org-clone-subtree-with-time-shift 30 "+1w")
>   ;; ignore this
>   (let ((str (buffer-string)))
>  (set-text-properties 0 (length str) nil str) str))
> #+end_src
>
> but the results is bracketed by a
>
> #+begin_example
> *** Cours
> #+end_example
>
> which can of course very easily be removed. Is there a way to get only
> the headings ?
>
> Julien.
>
>
>

-- 
John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


Re: [O] using holiday dates from an ICAL calendar

2015-08-27 Thread Julien Cubizolles
Matt Lundin  writes:


> (my-calculate-skip-weeks '(10 17 2015) '(11 1 2015) 3) => (43 44)
>
> Based on this information, the org-class sexp could be written like
> this:
>
> %%(org-class 2015 9 15 2015 12 20 3 43 44) My class

I want to use the result of my-calculate-skip-weeks several times.

(my-calculate-skip-weeks) is run from an emacs-lisp source block. I
tried:

--8<---cut here---start->8---
(setq my-holidays '(43 44))

%%(org-class 2015 9 15 2015 12 20 3 'my-holidays') My class
--8<---cut here---end--->8---

but the entry isn't picked up by the agenda. Also, could org-class
access directly the #+RESULTS value if it's named ?

Julien.




Re: [O] Easy entry of date ranges

2015-08-27 Thread Ken Mankoff
Hi Eric, Eric, Rasmus, and Nicolas,

On 2015-08-27 at 05:36, Eric S Fraga  wrote:
> On Thursday, 27 Aug 2015 at 11:46, Eric Abrahamsen wrote:
 Ken Mankoff  writes:

> Org and the calendar make it fairly easy to enter time ranges, by
> typing "--" and then the end time or "+" and then the duration. I'd
> like to do something similar for dates, but it doesn't seem to be
> supported. Is there an easy way to enter a date range for a scheduled
> task?
>
> [...]
>
>> For a vacation, a plain timestamp is more appropriate. However! That
>> just begs the question of how to make it easier to enter a date range.
>> That's a question I don't know the answer to -- I suspect there isn't
>> any way but just hitting a couple of hyphens and then "C-c ." again. I
>> suppose Org could help by setting the default date of the end time to
>> something after the start time.
>>
>> Eric
>
> Actually, org is quite smart in this respect.  if you enter a time stamp
> and then ask to enter another, org automatically inserts the -- between
> the two time stamps.  E.g. try this key sequence to get a time range
> that covers 7 days starting today:
>
>   C-c . RET C-c . +6 RET
>
> and you should get: <2015-08-27 Thu>--<2015-09-02 Wed>


Thank you all for the reminder of SCHEDULED, DEADLINE, normal and inactive 
timestamp use cases, and the information about easy-entry of inactive ranges. 
Workflow much improved!

  -k.





[O] Combining org-clone-subtree-with-time-shift and the skip weeks of org-class

2015-08-27 Thread Julien Cubizolles
Instead of cloning N times like org-clone-subtree-with-time-shift does,
could one generate the right amount of headings the same way org-class
does. Instead of getting the same entry repeated like org-class does,
you could later change the title of each entry individually:

org-clone-entry-with-class-type-range on
* Cours
  <2015-01-01 8:00-10:00>

would create (with a + 1 month timeshift) something like
* Cours
  <2015-02-01 8:00-10:00>
* Cours
  <2015-02-01 8:00-10:00>  
  ...
  some weeks skipped
  some holidays skipped


Julien.




[O] Getting rid of the #+begin_example #+end_example in src blocks evaluation

2015-08-27 Thread Julien Cubizolles
I'm trying to create a list of entries with timeshifts. I found this
very nice example:

#+begin_src emacs-lisp
(with-temp-buffer
  (insert "*** Cours
<2014-09-07 lun 8:45-12:00>")
  (goto-char (point-min))
  (org-clone-subtree-with-time-shift 30 "+1w")
  ;; ignore this
  (let ((str (buffer-string)))
 (set-text-properties 0 (length str) nil str) str))
#+end_src

but the results is bracketed by a

#+begin_example
*** Cours
#+end_example

which can of course very easily be removed. Is there a way to get only
the headings ?

Julien.




Re: [O] emacs & org mode for scholars questions

2015-08-27 Thread John Kitchin
this is a customizable option in org-ref. Helm is not required. You can
also use the reftex mechanism for inserting references, or define your
own method using icicles.

https://github.com/jkitchin/org-ref/blob/master/org-ref.el#L131

Marcin Borkowski writes:

> On 2015-08-25, at 15:51, John Kitchin  wrote:
>
>> What would make it even better?
>
> Not imposing Helm on the user?
>
> (I know nothing about Helm, but I use Icicles.)
>
> Best,

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Easy entry of date ranges

2015-08-27 Thread Rasmus
Eric S Fraga  writes:

> if you enter a time stamp and then ask to enter another, org
> automatically inserts the -- between the two time stamps

I had no idea.  This is awesome!

Rasmus

-- 
When the facts change, I change my mind. What do you do, sir?




Re: [O] Easy entry of date ranges

2015-08-27 Thread Eric S Fraga
On Thursday, 27 Aug 2015 at 11:46, Eric Abrahamsen wrote:
>>> Ken Mankoff  writes:
>>>
 Org and the calendar make it fairly easy to enter time ranges, by
 typing "--" and then the end time or "+" and then the duration. I'd
 like to do something similar for dates, but it doesn't seem to be
 supported. Is there an easy way to enter a date range for a scheduled
 task?

[...]

> For a vacation, a plain timestamp is more appropriate. However! That
> just begs the question of how to make it easier to enter a date range.
> That's a question I don't know the answer to -- I suspect there isn't
> any way but just hitting a couple of hyphens and then "C-c ." again. I
> suppose Org could help by setting the default date of the end time to
> something after the start time.
>
> Eric

Actually, org is quite smart in this respect.  if you enter a time stamp
and then ask to enter another, org automatically inserts the -- between
the two time stamps.  E.g. try this key sequence to get a time range
that covers 7 days starting today:

  C-c . RET C-c . +6 RET

and you should get: <2015-08-27 Thu>--<2015-09-02 Wed>

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] Not getting replies from the orgmode list to my e-mail address

2015-08-27 Thread Eric Abrahamsen
Rasmus  writes:

> Eric Abrahamsen  writes:
>
>> I'm also reading through the Gnus newsreader. Personally I appreciate
>> getting replies emailed to me directly, because some of these groups are
>> high traffic and it can be easy to miss replies to threads.
>
> +1.  Also it's a big help when searching for old threads.  I wish I could
> to the following:
>
> 1. set a followup-like header that says to always include me.  However, I
>think followup itself might not be great since e.g. Nicolas uses it to
>exclude himself.
>
> 2. set up Gnus so that when I click F it would send copies to gmane and
>the author of the email I reply to.

Next-best option is F, followed C-c C-t to add a mail response to the
sender (which warns you if they don't want it). Maybe that could be
wrapped up in a function called
`gnus-summary-followup-with-original-and-maybe-mail-author' (not really)
that would follow-up the article, then check the Mail-Followup-To header
and add a mail message if desired.




[O] Links to Info manuals in exported HTML/LaTeX

2015-08-27 Thread Marcin Borkowski
Hi all,

it seems that links to Info manuals are broken in HTML and LaTeX export
(and possibly in other backends, too).

Would it make sense to make them work, i.e., link to the official web
versions, at least for standard Info manuals, like Emacs manual, Elisp
reference or Org manual?

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] Easy entry of date ranges

2015-08-27 Thread Nicolas Goaziou
Eric Abrahamsen  writes:

> Ken Mankoff  writes:
>
>> No, scheduled + deadline is a different use case. The syntax I use,
>> =SCHEDULED: <2020-01-01>--<2020-01-07>=, is valid,

I wouldn't bet on it. I'm sure this can lead to subtle problems. For
example,

  * Test
SCHEDULED: <2020-01-01>--<2020-01-07>

(org-entry-get (point-min) "SCHEDULED") => <2020-01-01>, i.e, range end
information is lost.

>>. One (of many) use cases: a week long vacation.
>> This use case is supported by Org since the Agenda helpfully shows
>> "(1/7)", and "(2/7)", etc. before each entry. Everything else is so
>> efficient and has shortcuts, including time ranges, I just hoped I was
>> missing something here. Perhaps it hasn't been implemented yet.
>
> I think what Nicolas means is that, in the sort of use case you're
> outlining above, you should probably be using a plain timestamp.
> SCHEDULED means "I'm going to work on this TODO now", in which case
> a time span doesn't quite make sense -- you start working at the start
> of the span, and you finish when you toggle the keyword to DONE. For
> a vacation, a plain timestamp is more appropriate.

Exactly.

If you know the exact range, use a plain timestamp. SCHEDULED is for
when you know when to start, but not when to end. With
SCHEDULED + DEADLINE, you know when to start, you're not sure when to
end, but it must be done before deadline.

Regards,



Re: [O] Not getting replies from the orgmode list to my e-mail address

2015-08-27 Thread Rasmus
Eric Abrahamsen  writes:

> I'm also reading through the Gnus newsreader. Personally I appreciate
> getting replies emailed to me directly, because some of these groups are
> high traffic and it can be easy to miss replies to threads.

+1.  Also it's a big help when searching for old threads.  I wish I could
to the following:

1. set a followup-like header that says to always include me.  However, I
   think followup itself might not be great since e.g. Nicolas uses it to
   exclude himself.

2. set up Gnus so that when I click F it would send copies to gmane and
   the author of the email I reply to.

Rasmus

-- 
⠠⠵




Re: [O] headings in odt export

2015-08-27 Thread Rasmus
Eric Abrahamsen  writes:

> Libreoffice has started behaving horribly on both my Arch machines
> (quits when I scroll, display can't keep up with modest typing speeds)
> but I wonder if it's because I'm not using a desktop environment, and LO
> is getting confused. That's a total guess, but

I don't see how that could be related.

> I use git, not makepkg, for both Emacs and Org (Emacs with "make
> install", Org in-place), and there's no reference to tmp in
> org-loaddefs, so I don't know if that's related.

OK.  makepkg screws up org-loaddef because it built in tmp.  And ox-odt is
bad at finding the "right" stylefiles.

> As far as I know, nothing at all changed on my system apart from these
> general updates.

You can check the variables I mentioned earlier in the thread.

> I'm still inclined to blame LO!

This is in vain.  Org included the wrong style files.  This problem pops
up frequently.

Rasmus

-- 
El Rey ha muerto. ¡Larga vida al Rey!




Re: [O] subscript on a table caption

2015-08-27 Thread Suvayu Ali
Hi,

May I suggest not to top post, makes it much harder to follow the
discussion.

On Wed, Aug 26, 2015 at 11:54:57PM -0400, Peter Salazar wrote:
> What do you see if you do C-h v org-export-latex-emphasis-alist
> and org-html-text-markup-alist? Anything about subscript?

sub/super-scripts are different from emphasis/markup.  Also the emphasis
variable you mention does not exist, maybe you meant org-emphasis-alist?

In any case, all of this is moot.  The bug has been fixed.

  

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Two problems with exporting options

2015-08-27 Thread Eric Abrahamsen
Meir Goldenberg  writes:

> Can I set this in #OPTIONS?

Check the docstring of `org-export-with-statistics-cookies'!

> On Wed, Aug 26, 2015 at 11:55 PM, Grant Rettke
>  wrote:
>
>
> Counters: `org-export-with-statistics-cookies'
> Grant Rettke
> --
> g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> “All creativity is an extended form of a joke.” --Kay
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to
> stop
> taking it seriously.” --Thompson
>
> On Tue, Aug 25, 2015 at 7:20 AM, Meir Goldenberg
>  wrote:
> > I have the following exporting options:
> > #+OPTIONS: date:t stat:nil timestamp:t num:nil toc:nil p:nil
> todo:nil
> >
> > Two questions:
> >
> > 1. I did not notice an option that would remove check-boxes ([ ]
> ) and
> > counters ([/]) from the output of the export. Is there a way to
> export
> > without these? (actually, I thought that stat:nil would do it,
> but it does
> > not have any effect.
> >
> > 2. The options date:t stat:nil timestamp:t do not have any
> noticeable effect
> > on the resulting pdf. The \date{\today} command does appear in
> the latex
> > file, but the date does not show in the pdf...




Re: [O] Two problems with exporting options

2015-08-27 Thread Meir Goldenberg
Can I set this in #OPTIONS?

On Wed, Aug 26, 2015 at 11:55 PM, Grant Rettke 
wrote:

> Counters: `org-export-with-statistics-cookies'
> Grant Rettke
> --
> g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> “All creativity is an extended form of a joke.” --Kay
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
>
>
> On Tue, Aug 25, 2015 at 7:20 AM, Meir Goldenberg 
> wrote:
> > I have the following exporting options:
> > #+OPTIONS: date:t stat:nil timestamp:t num:nil toc:nil p:nil todo:nil
> >
> > Two questions:
> >
> > 1. I did not notice an option that would remove check-boxes ([ ]) and
> > counters ([/]) from the output of the export. Is there a way to export
> > without these? (actually, I thought that stat:nil would do it, but it
> does
> > not have any effect.
> >
> > 2. The options date:t stat:nil timestamp:t do not have any noticeable
> effect
> > on the resulting pdf. The \date{\today} command does appear in the latex
> > file, but the date does not show in the pdf...
>