[O] agenda start date

2016-06-23 Thread Francis J. Monari, Esquire
To: emacs-orgmode@gnu.org
Subject: Bug: agenda start day [8.3.4 (8.3.4-88-g792bb9-elpaplus @
c:/USR/FJM/APP/.emacs.d/elpa/org-plus-contrib-20160620/)]
From: monarif...@verizon.net (F. J. Monari)
--text follows this line--

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

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

Your bug report will be posted to the Org-mode mailing list.

After adding the sexps below a previously working custom agenda stopped
working
what you expected to happen
=  I expected the agenda to complete for an entire month
what in fact did happen.
=  The agenda stopped at various points during the month
comments
=  Although I included the sexps, they do not appear to be the real problem
=  The start date of the custom agenda seems to hold the key

#
#+BEGIN_SRC emacs-lisp
%%(diary-remind
  '(diary-float t 3 -1)
  '(-07) nil) 14:30 @

%%(and (diary-float t 3 -1)
   (not (or
   ; (diary-date 2016 05 25) ;
   (diary-date 2016 06 29) ;
) ;end-- or
   ) ;end-- not
  ) 14:30 @


%%(diary-remind
  '(and (diary-float t 3 -1)
(not (or
; (diary-date 2016 05 25) ;
(diary-date 2016 06 29) ;
 ) ;end-- or
) ;end-- not
   )
  '(-07) nil) 14:30 @
#+END_SRC

# first sexp works
# second sexp works
# third sexp does not work when following custom agenda is run:

  ("Er" "Esquire review month" ;single block agenda begin
( ;list of agenda commands begin
  (agenda "" ;agenda command begin
( ;list of options for specific command begin
  (org-agenda-entry-types '(:timestamp :sexp :deadline
:scheduled)) ;in agendas
  (org-agenda-files
'("C:/ESQ/FIRM/USR/ESQ/FJM/DAT/DBF/ORG/fjm-esq-emacs.org")) ;list of
agenda files
  (org-agenda-include-diary nil)
  (org-agenda-overriding-header "Esquire month review")
  (org-agenda-show-all-dates t) ;nil only if entry on date
  (org-agenda-span 'month) ;Can be day, week, month, year,
or any number of days.
  (org-agenda-start-day (org-read-date nil nil "-01m 01d"))
  (org-agenda-start-on-weekday nil)
  (org-agenda-sorting-strategy '(habit-down time-up
scheduled-down deadline-down todo-state-up priority-down effort-down
alpha-up))
  (org-agenda-time-grid '((daily)  ""  (0400 0600
0800 1000 1200 1400 1600 1800 2000 2200)))
) ;list of options for specific command end
  ) ;agenda command end
) ;list of agenda commands end
( ;list of block options begin
  (org-agenda-log-mode-items '(clock state))
  (org-agenda-start-with-log-mode '(clock state))
  (org-agenda-with-colors t)
) ;list of block options end
("C:/ESQ/FIRM/USR/ESQ/FJM/DAT/DOC/ESQ_month-review.html")
;exports block
  ) ;single block agenda end

# error shown is: Wrong type argument:  sequencep, t
# commenting out the following lines seems to make part of the agenda work.
# (org-agenda-span 'month)
# (org-agenda-start-day (org-read-date nil nil "-01m 01d")) ;trying to
start at the first of the prior month
# problems seem to occur around the end of the month.
# 07 works
# 14 works
# 21 works
# 22 works
# 27 works
# 28 does not work
# 31 does not work
# if I substitute
# (org-agenda-start-day (org-read-date "01")) for
# (org-agenda-start-day (org-read-date nil nil "-01m 01d"))
# then the agenda works
# if I just remove the org-agenda-start-day, then the agenda fails
# org-mobile-push work, however, I would like to automate the selection
of the first day of the current month.
#

#


Emacs  : GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Package: Org-mode version 8.3.4 (8.3.4-88-g792bb9-elpaplus @
c:/USR/FJM/APP/.emacs.d/elpa/org-plus-contrib-20160620/)



[O] MobileOrg Export Broken

2016-06-23 Thread Ian Dunn

I run Org from the git repo, updating daily.  I unsuccessfully tried 
syncing with MobileOrg (Android) about two hours ago.  I reverted org-mobile.el 
back to the version from yesterday and found the problem: TODO keywords aren't 
being listed correctly.  Here's an example:

Old:
#+TODO: TODO | DEFERRED DONE PENDING CANCELLED

New:
#+TODO: TODO

This messes with MobileOrg, preventing it from syncing.

I worked through the problem, which appears to be caused by org-delete-all 
being called before the TODO keywords are inserted into the file.  I attached a 
patch that fixes this problem.

-- 
Ian Dunn

diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 9c69128..9192561 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -446,8 +446,9 @@ agenda view showing the flagged items."
   x))
 			 (cdr entry)))
 	   (dwds (or (member "|" kwds) (last kwds)))
-	   (twds (org-delete-all dwds kwds)))
+	   (twds kwds))
 	  (insert "#+TODO: " (mapconcat 'identity kwds " ") "\n")
+	  (org-delete-all dwds twds)
 	  (setq todo-kwds (org-delete-all twds todo-kwds))
 	  (setq done-kwds (org-delete-all dwds done-kwds
   (when (or todo-kwds done-kwds)


[O] Help using [#] insert template options categories

2016-06-23 Thread Nooreen Dabbish
Dear org,

Basic question here: I use C-c-C-e-# to insert a  template header into my
org-mode files.
It prompts me for an Options category, and I always say default. However, I
have to manually edit it every time, changing the title and toc:t to
toc:nil and maybe other things. I might also drop in some LATEX_HEADER
statements, which I would prefer to do automagically.

I have searched extensively for any kind of documentation on how to create
a new default for this, but either I am not using the right search words or
this isn't documented. I would love some help!

Thanks,
Nooreen


>
>
>
> End of Emacs-orgmode Digest, Vol 124, Issue 12
> **
>


Re: [O] Agenda view of BBDB entries with Hebrew dates for anniversaries

2016-06-23 Thread Nicolas Goaziou
Hello,

ST  writes:

> Here is what BBDB developers have to say about my issue... maybe it will
> help...

Could you show an ECM demonstrating the issue? Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-ref: customizing bibtex key names generated by doi-utils

2016-06-23 Thread John Kitchin
You can customize the bibtex keys like this:

;; variables that control bibtex key format for auto-generation
;; I want firstauthor-year-title-words
;; this usually makes a legitimate filename to store pdfs under.
(setq bibtex-autokey-year-length 4
  bibtex-autokey-name-year-separator "-"
  bibtex-autokey-year-title-separator "-"
  bibtex-autokey-titleword-separator "-"
  bibtex-autokey-titlewords 2
  bibtex-autokey-titlewords-stretch 1
  bibtex-autokey-titleword-length 5)



The closest you can get changing the way citations are exported is
outlined here:

http://kitchingroup.cheme.cmu.edu/blog/2015/12/11/Introduction-to-a-citation-processor-in-org-ref/

It is not yet an easy thing to do.


David Dynerman writes:

> Hi all,
>
> I'm interested in exporting HTML from an org document that contains 
> references managed by org-ref.
>
> I'm running into the following problem. I have a reference that doi-utils 
> added with a very long bibtex key:
>
> @article{saldin09_struc_isolat_biomol_obtain_from ...
>
> When exporting to html, org-ref uses this bibtex key as the link text in 
> every citation. This quickly becomes unreadable, especially if you cite the 
> above paper several times in a paragraph.
>
> Does anyone know how easy it would be to customize the bibtex keys generated 
> by doi-utils, for instance  by doi-add-bibtex-entry? For instance, if the 
> above key were just the first author and year, it'd be
>
> @article{Saladin2009
>
> which would be much more readable after HTML export. I took a 30 mins look at 
> the relevant doi-utils functions but couldn't piece out a reasonable way to 
> make the change.
>
> I guess another solution would be to modify HTML export to change citation 
> link text, but that seems like the wrong place to make this change.
>
> Any advice is appreciated!
> David


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



[O] org-ref: customizing bibtex key names generated by doi-utils

2016-06-23 Thread David Dynerman
Hi all,

I'm interested in exporting HTML from an org document that contains references 
managed by org-ref.

I'm running into the following problem. I have a reference that doi-utils added 
with a very long bibtex key:

@article{saldin09_struc_isolat_biomol_obtain_from ...

When exporting to html, org-ref uses this bibtex key as the link text in every 
citation. This quickly becomes unreadable, especially if you cite the above 
paper several times in a paragraph.

Does anyone know how easy it would be to customize the bibtex keys generated by 
doi-utils, for instance  by doi-add-bibtex-entry? For instance, if the above 
key were just the first author and year, it'd be

@article{Saladin2009

which would be much more readable after HTML export. I took a 30 mins look at 
the relevant doi-utils functions but couldn't piece out a reasonable way to 
make the change.

I guess another solution would be to modify HTML export to change citation link 
text, but that seems like the wrong place to make this change.

Any advice is appreciated!
David




Re: [O] Agenda view of BBDB entries with Hebrew dates for anniversaries

2016-06-23 Thread ST
Here is what BBDB developers have to say about my issue... maybe it will
help...

On Thu, 2016-06-23 at 21:22 +0200, Roland Winkler wrote:
> On Thu Jun 23 2016 ST wrote:
> > I managed to add anniversaries/birthdays to BBDB and display them in
> > org-agenda. Now I need to move to the next step and provide those dates
> > as Hebrew dates. In diary mode the dates seem to look like HSivan 17,
> > 5776 . However if I put it to BBDB like anniversary: HSivan 17, 5776
> > birthday - I get error while trying to generate agenda view: bad-sexp at
> > line 5 /path/to/agenda.org (org-bbdb-anniversaries). Any ideas on how to
> > get it working?
> 
> You might want to ask this question on a list for org mode.
> bbdb-anniv.el has been designed to work with the Emacs calendar.  As
> described in this file
> 
>   In particular, `calendar-date-style' is obeyed via `diary-date-forms'.
> 
> Yet I do not know anything about how org mode might interact with
> BBDB anniversaries.
> 
> You mention that you get an error from org-bbdb-anniversaries.  This
> function is part of org mode, not of BBDB.  I do not know what it is
> doing / what it is supposed to do.
> 
> (Do your Hebrew dates interact properly with the Emacs calendar?)
> 
> Roland




Re: [O] How to export to latex from command line?

2016-06-23 Thread Giacomo M

Il 23/06/2016 18:30, Rasmus ha scritto:

hymie!  writes:


In our last episode, the evil Dr. Lacto had captured our hero,
   Giacomo M , who said:

Dear all,

I would like to export an org file to either tex or pdf from bash.

I have been using this:
 ${EMACS} $filename -f org-html-export-to-html -f kill-emacs

There are similar functions org-latex-export-to-pdf and
org-latex-export-to-latex.

I use,

 emacs --batch --no-init-file --load EXPORT-CONFIG.el --find-file 
EXPORT_FILE.org --funcall org-export-to-FORMAT


I don't think org does plain TeX; I'd be thrilled if it does.

I haven't seen a plain TeX backend.



Thanks.

I'm not able to run a final hook (also not in batch).
Where am I wrong?

#+BEGIN_SRC emacs-lisp
(defun remove-orgmode-latex-labels ()
  "Remove labels generated by org-mode"
  (interactive)
  (let ((case-fold-search nil))
   (goto-char 1)
   (replace-regexp "label{sec.*}" "")
   )
)
(add-hook 'org-export-latex-final-hook 'remove-orgmode-latex-labels)
#+END_SRC

Best,

Giacomo



Re: [O] How to export to latex from command line?

2016-06-23 Thread Rasmus
hymie!  writes:

> In our last episode, the evil Dr. Lacto had captured our hero,
>   Giacomo M , who said:
>> Dear all,
>>
>> I would like to export an org file to either tex or pdf from bash.
>
> I have been using this:
> ${EMACS} $filename -f org-html-export-to-html -f kill-emacs
>
> There are similar functions org-latex-export-to-pdf and
> org-latex-export-to-latex.

I use,

emacs --batch --no-init-file --load EXPORT-CONFIG.el --find-file 
EXPORT_FILE.org --funcall org-export-to-FORMAT

> I don't think org does plain TeX; I'd be thrilled if it does.

I haven't seen a plain TeX backend.

Rasmus

-- 
This message is brought to you by the department of redundant departments




Re: [O] How to export to latex from command line?

2016-06-23 Thread Giacomo M

Il 23/06/2016 16:48, hymie! ha scritto:

In our last episode, the evil Dr. Lacto had captured our hero,
   Giacomo M , who said:

Dear all,

I would like to export an org file to either tex or pdf from bash.

I have been using this:
 ${EMACS} $filename -f org-html-export-to-html -f kill-emacs

There are similar functions org-latex-export-to-pdf and
org-latex-export-to-latex.  I don't think org does plain TeX; I'd be
thrilled if it does.



Thanks, great!

by tex I meant latex (as in a metonymy where you use the extension for 
the language), so no particularly thrilling perspectives implied.


Best,

Giacomo




Re: [O] How to export to latex from command line?

2016-06-23 Thread hymie!
In our last episode, the evil Dr. Lacto had captured our hero,
  Giacomo M , who said:
> Dear all,
>
> I would like to export an org file to either tex or pdf from bash.

I have been using this:
${EMACS} $filename -f org-html-export-to-html -f kill-emacs

There are similar functions org-latex-export-to-pdf and
org-latex-export-to-latex.  I don't think org does plain TeX; I'd be
thrilled if it does.

--hymie!http://lactose.homelinux.net/~hymiehy...@lactose.homelinux.net




[O] How to export to latex from command line?

2016-06-23 Thread Giacomo M

Dear all,

I would like to export an org file to either tex or pdf from bash.

Any help on the lisp code to pass to the --eval argument of emacs to 
achieve this?


Thanks,

Giacomo




Re: [O] Does org-nofity uses dbus?

2016-06-23 Thread Xi Shen
I also think it is a good idea to add some functions in Emacs for Win32
platform, and let other's used those functions from elisp. Thanks~

On Thu, Jun 23, 2016 at 1:02 AM Fabrice Popineau 
wrote:

> 2016-06-22 14:16 GMT+02:00 Xi Shen :
>
>> Well~that's good news. But I think dbus requires X11 to work. But in
>> Cygwin environment, people usually do not configure a full X11 environment.
>>
>
> No, dbus doesn't require X11 to work. Neither does emacs require  Cygwin
> to work.
> Actually, Emacs compiles as a native Windows application (using MinGW32 or
> MinGW64) and it is also the case of dbus.
>
>
>> Besides, for org-notify, could dbus help it playing a notification sound
>> on Windows? Or popup a notification message?
>>
>>
> I guess it will work the same way it does elsewhere.
>
>
>
>> So what I am thinking is to get some Windows native behavior for
>> org-notify on Windows/Cygwin environment.
>>
>>
> I too think that a native, session only module that will provide the same
> interface as dbus could be interesting
> for Windows users. However, that shouldn't prevent those who want to use
> dbus to use it.
>
> AFAIU, using dbus, you could have a distant running emacs (ssh) session
> and get notifications on your local desktop,
> provided the right setup.
>
> Well, browsing the source code, I see that Eli Zaretskii has already
> implemented native win32 tray notifications.
> They are a small subset of the dbus notifications.
> However, he made them exclusive with dbus. I don't see the reason yet.
>
> Fabrice
>
-- 


Thanks,
David S.


[O] Agenda view of BBDB entries with Hebrew dates for anniversaries

2016-06-23 Thread ST
Hi,

I managed to add anniversaries/birthdays to BBDB and display them in
org-agenda. Now I need to move to the next step and provide those dates
as Hebrew dates. In diary mode the dates seem to look like HSivan 17,
5776 . However if I put it to BBDB like anniversary: HSivan 17, 5776
birthday - I get error while trying to generate agenda view: bad-sexp at
line 5 /path/to/agenda.org (org-bbdb-anniversaries). Any ideas on how to
get it working?

Thank you!
ST




Re: [O] latex-export + columnview: misinterpretation of section prefixes as emphasis

2016-06-23 Thread Lele Gaifax
Nicolas Goaziou  writes:

>> Do you know if/when it will be merged into Emacs?
>
> I don't know, but that will not happen before Emacs 25.1 release.

Thanks anyway, I installed latest development sources and I appreciate the
work that has been done in this (and many other) areas: the new colview
produces a much nicer LaTeX!

One minor issue: previously I used a custom setting for the variable
`org-time-clocksum-format`, to print something like "2gg 03:10" instead of "2d
03:10". With the version currently distributed with Emacs 25.1 it was used for
both the "effort" and "clocksum" columns, now only on the latter (matching
name and documentation). Is there an equivalent setting for the "effort"
sum, to get a table with the two columns sharing the same style? I tried to
look around in the sources and in the doc but I missed it...

BTW, in lisp/org-colview.el there is what seems a typo in the name of the
function `org-columns-hscoll-title`: since accordingly with "git grep" it is
referenced in two places and only in that source, is the following acceptable?

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index e29f88a..6809305 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -438,9 +438,9 @@ for the duration of the command.")
   (org-add-props " " nil 'display '(space :align-to 0))
   (org-add-props (substring title 0 -1) nil 'face 
'org-column-title)))
 (setq org-columns-previous-hscroll -1)
-(add-hook 'post-command-hook 'org-columns-hscoll-title nil 'local)))
+(add-hook 'post-command-hook 'org-columns-hscroll-title nil 'local)))

-(defun org-columns-hscoll-title ()
+(defun org-columns-hscroll-title ()
   "Set the `header-line-format' so that it scrolls along with the table."
   (sit-for .0001) ; need to force a redisplay to update window-hscroll
   (when (not (= (window-hscroll) org-columns-previous-hscroll))
@@ -463,7 +463,7 @@ for the duration of the command.")
   (when (local-variable-p 'org-previous-header-line-format)
(setq header-line-format org-previous-header-line-format)
(kill-local-variable 'org-previous-header-line-format)
-   (remove-hook 'post-command-hook 'org-columns-hscoll-title 'local))
+   (remove-hook 'post-command-hook 'org-columns-hscroll-title 'local))
   (move-marker org-columns-begin-marker nil)
   (move-marker org-columns-top-level-marker nil)
   (org-with-silent-modifications

Thanks a lot,
bye, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
l...@metapensiero.it  | -- Fortunato Depero, 1929.