Re: [O] sip: links

2015-06-21 Thread Michael Strey
Hi Christian,

On Sa, 2015-06-20, Christian Thaeter wrote:

 anyone of you happen to have a url handler for 'sip:' links invoking a
 telephony app (eg. linphone) when clicked?

The attached org-dial.el provides support for a link type `tel:' as well
as for dialing from properties in org-contacts.

Enjoy.

-- 
Michael Strey
http://www.strey.biz * https://twitter.com/michaelstrey



org-dial.el
Description: application/emacs-lisp


Re: [O] including svg files in odt exports?

2015-06-21 Thread Nicolas Goaziou
Hello,

joa...@verona.se writes:

 Adding svg to the org-odt-inline-image-rules regexp works. Could this be
 included in org?

This is already the case in master. Default value is

  '((file . \\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\'))


Regards,

-- 
Nicolas Goaziou



Re: [O] Filters lost after reviving buried, sticky agenda

2015-06-21 Thread Daimrod
Daniel Borchmann daniel.borchm...@tu-dresden.de writes:

 Dear all,

 I regularly lose all my filters when I bury a sticky agenda and revive
 it later.  In that case, the variable `org-agenda-tag-filter' is set to
 nil, although it was non-nil before burying.

 I played around a bit, and found out that `org-agenda-tag-filter' is
 buffer-local (which is not a surprise).  When the agenda buffer is
 revived, the function `org-agenda-prepare' is called, which, among
 others, should reset the filters (provided that
 `org-agenda-persistent-filter' is set).  The beginning of the function
 is

 ---8---
 (defun org-agenda-prepare (optional name)
   (let ((filter-alist (if org-agenda-persistent-filter
   (list `(tag . ,org-agenda-tag-filter)
 `(re . ,org-agenda-regexp-filter)
 `(car . ,org-agenda-category-filter)
   ...))
 ---8---

 It seems to me that `org-agenda-tag-filter' is read *before* the old
 agenda buffer is poped up (i.e., made current), and thus results in a
 `nil' value.  Indeed, if I replace the definition of `filter-alist' by

 ---8---
 (let ((filter-alist (if org-agenda-persistent-filter
 (with-current-buffer
 (get-buffer org-agenda-buffer-name)
   (list `(tag . ,org-agenda-tag-filter)
 `(re . ,org-agenda-regexp-filter)
 `(car . ,org-agenda-category-filter))
   ...)
 ---8---

 then the bug (seems to) disappear.

 My question is now: is this correct, or did I understand something
 wrong?  If my understanding is correct, how this bug be fixed more
 elegantly?

It doesn't work at startup when agenda hasn't been built yet. The
following patch does seem to fix that. If it's ok, I can push it.
From d2e8fef81585c249f33fa37260f6228709a67017 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= gregoire.j...@univ-nantes.fr
Date: Fri, 12 Jun 2015 17:35:30 +0200
Subject: [PATCH] lisp/org-agenda.el : Fix non-persistent filters when
 refreshing sticky agenda

* lisp/org-agenda.el (org-agenda-prepare): Fix non-persistent filters when refreshing sticky agenda

When a sticky agenda is buried, then reviving and refreshing, existing
filters are ignored even when org-agenda-persistent-filter is `t'.

Reported and fixed by Daniel Borchmann
---
 lisp/org-agenda.el | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index f5d1022..3a1f5bc 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3642,10 +3642,11 @@ FILTER-ALIST is an alist of filters we need to apply when
 
 (defun org-agenda-prepare (optional name)
   (let ((filter-alist (if org-agenda-persistent-filter
-			  (list `(tag . ,org-agenda-tag-filter)
-`(re . ,org-agenda-regexp-filter)
-`(effort . ,org-agenda-effort-filter)
-`(car . ,org-agenda-category-filter)
+			  (with-current-buffer
+			  (get-buffer-create org-agenda-buffer-name)
+			(list `(tag . ,org-agenda-tag-filter)
+  `(re . ,org-agenda-regexp-filter)
+  `(car . ,org-agenda-category-filter))
 (if (org-agenda-use-sticky-p)
 	(progn
 	  (put 'org-agenda-tag-filter :preset-filter nil)
-- 
1.9.1


Best,

-- 
Daimrod/Greg


signature.asc
Description: PGP signature


Re: [O] including svg files in odt exports?

2015-06-21 Thread joakim
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 joa...@verona.se writes:

 Adding svg to the org-odt-inline-image-rules regexp works. Could this be
 included in org?

 This is already the case in master. Default value is

Okay, good! Obviously I should switch to master then :)


   '((file . \\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\'))


 Regards,

-- 
Joakim Verona



Re: [O] tentative patch Re: commit found, was: Re: ECM for: issues with publishing to LaTeX using #INCLUDE

2015-06-21 Thread Robert Klein
Hello,

you're right about eval and symbol-value, of course. I mixed up my test
files, so both the commit I `identified' and the `patch' are bogus.

I now used git bisect for both my current minimal setup (.emacs
attached as .femacs and the files ~/ot/1.org, ~/ot/2.org, and
~/ot/3.org all three having the contents of the attached file 1.org)
and the setup and project I first encountered the issue.


The issue occurs always during publishing the _second_ file, that is,
the first file being published gets published Ok, and the following
files don't.


For the minimal example I cd'd to ~/ot and called emacs using the
command line:

rm *.tex ~/.org-timestamps/linux-e-pdf.cache ; emacs -q -l ~/.femacs


For the original project I used my full setup but also deleted *.tex,
*.pdf, and ~/.org-timestamps/linux-e-pdf.cache.


To be sure nothing went wrong I bisected twice for each project.


For the minimal example commit 2965f8fb0c048a20b52ba90627e7cca6fe706c93
is identified as the first bad one.

For my full setup it is the earlier commit
69dd4301ab7aeb581968f1c7e75167338d024c8f.


My Emacs version is  : GNU Emacs 24.5.1 (x86_64-suse-linux-gnu, GTK+
Version 3.10.2) of 2015-04-30 on build83



Meanwhile I added a second elisp source and call (between
latex_class_options and the later options line).  With this added I
don't see the error anymore.  Same for the minimal example (org files
all having the content of the attached file working.org)


I'm sorry for the earlier confusion.

Best regards
Robert



On Sun, 21 Jun 2015 00:15:49 +0200
Nicolas Goaziou m...@nicolasgoaziou.fr wrote:

 Hello,
 
 Robert Klein rokl...@roklein.de writes:
 
  when I change a `symbol-value' in the commit back to `eval', export
  seems to work again.
 
 Actually, I cannot reproduce your issue.
 
  Patch is attached.
 
 I don't understand why replacing `symbol-value' with `eval' could
 solve the issue. Could you debug this and see what happens with both
 `symbol-value' and `eval'?
 
 Thank you.
 
 Regards,
 



1.org
Description: Binary data


.femacs
Description: Binary data


working.org
Description: Binary data


[O] including svg files in odt exports?

2015-06-21 Thread joakim
Hello,

I would like to include svg files in odt exports.

png files seem to work fine, but svg files do not get inlined by
default.

Adding svg to the org-odt-inline-image-rules regexp works. Could this be
included in org?


-- 
Joakim Verona




Re: [O] sip: links

2015-06-21 Thread Christian Thaeter
On 2015-06-21 12:37, Michael Strey wrote:

 Hi Christian,
 
 On Sa, 2015-06-20, Christian Thaeter wrote:
 
  anyone of you happen to have a url handler for 'sip:' links
  invoking a telephony app (eg. linphone) when clicked?
 
 The attached org-dial.el provides support for a link type `tel:' as
 well as for dialing from properties in org-contacts.
 
 Enjoy.

looks good, I'll use that instead of my hack. I've a minor ideas to add:

Instead just append the telephone number to the end of the
dial command one could use (org-replace-escapes STRING TABLE), that
allows little more flexible commandline generation.

Thanks
Christian




Re: [O] Is it possible to embed tag search as a link?

2015-06-21 Thread Jay Dresser

You could always do it with elisp, perhaps:

   [[elisp:(org-tags-view nil +work-boss-TODO=\DONE\)]]

which would be like C-c a m

Or:

   [[elisp:(org-match-sparse-tree nil +work-boss-TODO=\DONE\)]]

which would be like C-c \.

Change nil to t for TODO only.

Piotr Isajew pisa...@yahoo.com writes:

 Hi,

 what I'm looking for is a link format that, when C-c C-o'ed,
 opens agenda match query view for custom query which arguments
 are specified in the link. I.e.:

 org-search://+work-boss-TODO=DONE

 I am aware of org-protocol which can be used to develop a custom
 handler for something like this. I would just like to check if
 there exists any working solution before I start working on my
 own.

 Bests,

 Piotr

--
Jay Dresser



Re: [O] [PATCH] org-contacts.el: Catch 'nextfile in org-contacts-db

2015-06-21 Thread Daimrod
Philippe Crama phcrama.e...@gmx.com writes:

 Hi,

Hello Philippe,

 This is a small patch to catch the 'nextfile thrown by
 `org-check-agenda-file' in `org-contacts-db'.

 I don't know how to fix the TODO in the comment myself, sorry.  At
 least, with the patch, the execution doesn't abort anymore.

Thanks for the report and the patch. I've attached a patch inspired by
yours. WDYT?

From b3bb252c6e2138fa65b7c960060d68ea8c260873 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= gregoire.j...@univ-nantes.fr
Date: Mon, 15 Jun 2015 09:36:36 +0200
Subject: [PATCH] org-contacts.el: Handle missing files in `org-contacts-files'
 gracefully

* contrib/lisp/org-contacts.el (org-contacts-files): Catch 'nextfile
From `org-check-agenda-file' and update `org-contacts-files' if
modified.

(org-contacts-db): Don't call `org-check-agenda-file' now called in
`org-contacts-files'.

When `org-agenda-files' contains non-existent files, remove them if
the user asks for it instead of failing.

Modified from a patch proposal by Philippe Crama
---
 contrib/lisp/org-contacts.el | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el
index bc07fc1..3e14c7e 100644
--- a/contrib/lisp/org-contacts.el
+++ b/contrib/lisp/org-contacts.el
@@ -227,7 +227,12 @@ A regexp matching strings of whitespace, `,' and `;'.)
 
 (defun org-contacts-files ()
   Return list of Org files to use for contact management.
-  (or org-contacts-files (org-agenda-files t 'ifmode)))
+  (org-remove-if (lambda (file)
+		   (when (catch 'nextfile
+			   (org-check-agenda-file file))
+		 (customize-save-variable 'org-contacts-files
+	  (delete file org-contacts-files
+		 (or org-contacts-files (org-agenda-files t 'ifmode
 
 (defun org-contacts-db-need-update-p ()
   Determine whether `org-contacts-db' needs to be refreshed.
@@ -261,7 +266,6 @@ to dead or no buffer.
 	 (make-progress-reporter Updating Org Contacts Database... 0 (length org-contacts-files)))
 	(i 0))
 	(dolist (file (org-contacts-files))
-	  (org-check-agenda-file file)
 	  (with-current-buffer (org-get-agenda-file-buffer file)
 	(unless (eq major-mode 'org-mode)
 	  (error File %s is not in `org-mode' file))
-- 
1.9.1



 Regards,

-- 
Daimrod/Greg


signature.asc
Description: PGP signature


Re: [O] Order of TODO entries by `org-sort-entries' [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-06-21 Thread Kyle Meyer
Hi,

Simen Heggestøyl simen...@gmail.com wrote:
 Hi!

 Consider the following outline tree:

 * Tasks
 ** TODO [#B] B
 ** DONE C
 ** TODO [#A] A

 When calling `org-sort-entries' on the top level headline, and
 selecting `o' to sort by TODO order, the order becomes the following:
 B, A, C. However, I would expect the order A, B, C, since A has higher
 priority than B. A, B, C is also the order chosen by the agenda.

 So I'm wondering, is this a bug, intended behavior, or just a missing
 feature of `org-sort-entries'?

I think that's the intended behavior.  The priority is not considered
when sorting by TODO keywords.

--
Kyle



Re: [O] Filters lost after reviving buried, sticky agenda

2015-06-21 Thread Daimrod
Daniel Borchmann daniel.borchm...@tu-dresden.de writes:

 ghItlhpu' Daimrod daim...@gmail.com:
 My question is now: is this correct, or did I understand something
 wrong?  If my understanding is correct, how this bug be fixed more
 elegantly?

 It doesn't work at startup when agenda hasn't been built yet. The
 following patch does seem to fix that. If it's ok, I can push it.

 It works for me.

Great! If nobody complains in the next days, I'll push it.

Best,

-- 
Daimrod/Greg


signature.asc
Description: PGP signature


[O] [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones

2015-06-21 Thread Kyle Meyer
Hello,

I'd like to clone a subtree with a repeating timestamp so that the
repeater is removed from the original subtree and a single shifted and
repeating clone is created.  I don't think this is currently possible
with org-clone-subtree-with-time-shift.  For example, running
org-clone-subtree-with-time-shift with 1 clone and a shift of +2d on

* sub
2015-06-21 Sun +1w

results in

* sub
2015-06-21 Sun
* sub
2015-06-23 Tue
* sub
2015-06-25 Thu +1w

This is inline with the docstring of org-clone-subtree-with-time-shift.
The one clone is the subtree in the middle, and the two flanking
subtrees are how a repeating timestamp is handled.

The attached patch allows the number of specified clones to be 0,
resulting in

* sub
2015-06-21 Sun
* sub
2015-06-23 Tue +1w

which is still consistent with the documented behavior.

From 37a917e4f7e4d2c05355735ab08f1f555b9dc942 Mon Sep 17 00:00:00 2001
From: Kyle Meyer k...@kyleam.com
Date: Sun, 21 Jun 2015 21:46:54 -0400
Subject: [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones

* lisp/org.el (org-clone-subtree-with-time-shift): Allow argument
  specifying number of clones to be 0.

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add
  tests.

This makes it possible to clone a subtree with a repeating timestamp
so that the repeater is removed from the original subtree and a single
shifted, repeating clone is created.  If the original subtree does not
have a repeating timestamp, no clones will be made.
---
 etc/ORG-NEWS |  4 
 lisp/org.el  |  9 +++--
 testing/lisp/test-org.el | 38 ++
 3 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 92be86b..bcbd068 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -392,6 +392,10 @@ of tables and lists of listings can be inserted in the document with
 *** Countdown timer support hh:mm:ss format
 In addition to setting countdown timers in minutes, they can also be
 set using the hh:mm:ss format.
+*** Extend ~org-clone-subtree-with-time-shift~
+~org-clone-subtree-with-time-shift~ now accepts 0 as an argument for
+the number of clones, which removes the repeater from the original
+subtree and creates one shifted, repeating clone.
 ** Miscellaneous
 *** Strip all meta data from ITEM special property
 ITEM special property does not contain TODO, priority or tags anymore.
diff --git a/lisp/org.el b/lisp/org.el
index 7b720f8..25f8cd0 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8739,7 +8739,12 @@ (defun org-clone-subtree-with-time-shift (n optional shift)
 - 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.
+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.
   (interactive nNumber of clones to produce: )
   (let ((shift
 	 (or shift
@@ -8757,7 +8762,7 @@ (defun org-clone-subtree-with-time-shift (n optional shift)
 	(org-clock-re (format ^[ \t]*%s.*$ org-clock-string))
 	beg end template task idprop
 	shift-n shift-what doshift nmin nmax)
-(if (not (and (integerp n) ( n 0)))
+(if (not (and (integerp n) (= n 0)))
 	(user-error Invalid number of replications %s n))
 (if (and (setq doshift (and (stringp shift) (string-match \\S- shift)))
 	 (not (string-match \\`[ \t]*\\+?\\([0-9]+\\)\\([hdwmy]\\)[ \t]*\\'
diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el
index 04e0843..e8287a2 100644
--- a/testing/lisp/test-org.el
+++ b/testing/lisp/test-org.el
@@ -1067,6 +1067,44 @@ (ert-deftest test-org/insert-todo-heading-respect-content ()
  (org-insert-todo-heading-respect-content)
  (and (eobp) (org-at-heading-p)
 
+(ert-deftest test-org/clone-with-time-shift ()
+  Test `org-clone-subtree-with-time-shift'.
+  ;; Clone non-repeating once.
+  (should
+   (equal \
+* H1\n2015-06-21 Sun
+* H1\n2015-06-23 Tue
+
+	  (org-test-with-temp-text * H1\n2015-06-21 Sun
+	(org-clone-subtree-with-time-shift 1 +2d)
+	(buffer-string
+  ;; Clone repeating once.
+  (should
+   (equal \
+* H1\n2015-06-21 Sun
+* H1\n2015-06-23 Tue
+* H1\n2015-06-25 Thu +1w
+
+	  (org-test-with-temp-text * H1\n2015-06-21 Sun +1w
+	(org-clone-subtree-with-time-shift 1 +2d)
+	(buffer-string
+  ;; Clone non-repeating zero times.
+  (should
+   (equal \
+* H1\n2015-06-21 Sun
+
+	  (org-test-with-temp-text * H1\n2015-06-21 Sun
+	(org-clone-subtree-with-time-shift 0 +2d)
+	(buffer-string
+  ;; Clone repeating zero times.
+  (should
+   (equal \
+* H1\n2015-06-21 Sun
+* H1\n2015-06-23 Tue +1w
+
+	  (org-test-with-temp-text 

[O] Tangling #+Results block?

2015-06-21 Thread Joon Ro
Is it possible to tangle #+RESULTS: block? For example,
#+BEGIN_SRC rst :tangle ./test.txt :noweb yesTangle_Test#+END_SRC
#+BEGIN_SRC python :exports results :results output rawprint(Printed 
Results)#+END_SRC
#+RESULTS: Printed Results
And I want to tangle #+RESULTS: part, not the actual Python source code, so the 
tangled test.txt file has the following:
Printed Results
Best,Joon

  

Re: [O] helm-bibtex questions

2015-06-21 Thread Titus von der Malsburg

On 2015-06-19 Fri 03:56, Xebar Saram wrote:
 Hi again Titus

 2 quick questions that arose from using helm-bitex today extensively:

 how does one exclude in the search items? for example i want to search for
 xebar without keyword progress (I want to exclude in progress articles
 not published yet)

 is it possible to define default enter command in helm-bibtex ?

Yes.  Helm uses the first action as the default action.  To move an
action to the top of the list you can use the following code:

  (helm-delete-action-from-source Insert BibTeX key helm-source-bibtex)
  (helm-add-action-to-source Insert BibTeX key 'helm-bibtex-insert-key 
helm-source-bibtex 0)

The second argument in the second line is the function that executes the
action.  Here is a list of all actions and their functions:
  
  Open PDF file (if present): helm-bibtex-open-pdf
  Open URL or DOI in browser: helm-bibtex-open-url-or-doi
  Insert citation: helm-bibtex-insert-citation
  Insert reference: helm-bibtex-insert-reference
  Insert BibTeX key: helm-bibtex-insert-key
  Insert BibTeX entry: helm-bibtex-insert-bibtex
  Attach PDF to email: helm-bibtex-add-PDF-attachment
  Edit notes: helm-bibtex-edit-notes
  Show entry: helm-bibtex-show-entry

Best,

  Titus


 best

 Z

 On Thu, Jun 18, 2015 at 9:38 PM, Titus von der Malsburg malsb...@posteo.de
 wrote:


 On 2015-06-18 Thu 04:32, Xebar Saram wrote:
  Hi Titus and thx so much for the answers!
 
  i will in the future use the github page to make requests.
 
  The number of matches will be displayed in the mode line. 
 
  i see that now thx! :) the problem was(is) that its colored black on my
  black modline BG which makes it invisible ;-) i assume thats an helm
 config
  i need to change
 
 
  If you don’t want to type these search expressions, you could create a
  command that invokes helm-bibtex with a default search expression and
 that
  command could be bound to a keyboard shortcut.
 
  that would be prefect for me and a solution to my issue. would you mind
  giving an example of such a code chunk. unfortunately i dont know elisp
 though
  as john recommended i will do my best this summer when the semester ends
 to
  try and pick it up :)

 Sure, here you go:

 #+BEGIN_SRC elisp
 ;; Define helm-search with predefined search expression:
 (defun helm-bibtex-my-publications ()
   Search BibTeX entries authored by Xebar Saram.
   (interactive)
   (helm :sources '(helm-source-bibtex)
 :full-frame t
 :input xebar saram
 :candidate-number-limit 500))

 ;; Bind this search function to Ctrl-x p:
 (global-set-key (kbd C-x p) 'helm-bibtex-my-publications)
 #+END_SRC

  i will definitely use your tag system as you recommended, sounds perfect
  for me

 The tag system also comes in handy when generating publication lists for
 CVs and web pages because BibTeX does not distinguish between conference
 papers, posters, and talks.  If you have tags for that, it’s relatively
 easy to create separate sections for these types of publications using
 biblatex or bib2bib and bibtex2html in the case of web pages.

  thanks again for your kind help and the amazing app ;-)

 You are welcome.

   Titus

 
  best
 
  Z
 
 
 
  On Wed, Jun 17, 2015 at 11:02 PM, Titus von der Malsburg 
 malsb...@posteo.de
  wrote:
 
 
  On 2015-06-17 Wed 11:08, Xebar Saram wrote:
   Hi Titus
  
   I have been exploring helm-bibtex a bit today and have some questions.
  btw
   is this the preferred way to make requests/ask questions or is
   github preferred?
 
  Helm-bibtex is not part of org (although it tries to work well with
  org).  So I’m not sure whether this list is the best place for
  discussing it.  For now the issue tracker on Github might be a better
  option:
 
https://github.com/tmalsburg/helm-bibtex/issues
 
   in any case i was wondering a few things:
  
   1. is it possible to have custom sorting? i want all views to sort by
   Author, year, month
 
  I prefer to see the entries in the (inverse) order in which they appear
  in the BibTeX file.  This way, recent additions show up at the
  top.  However, I agree that sorting would be useful (see issues #5 and
  #21); it just doesn’t have high priority for me.  Pull requests welcome.
 
   2. i would really like a way to have stored smart groups (like the
 jabref
   dynamic groups if your aware of that). that is for example create a
 group
   that auto selects all publications i have (by my first/last name) and
  shows
   the count (in numbers) of these publications.
 
  I’m not familiar with smart groups but it seems that all helm-bibtex is
  doing is giving you very flexible smart groups defined by your search
  expressions.  For example, if you want a list of your publications, you
  can simple enter your name.  And if you want a list of your articles,
  you can enter your name + “article”.  If you want all your articles from
  2010, enter your name + “articles 2010”.  And so on.  The number of
  matches will be displayed in the mode 

Re: [O] helm-bibtex questions

2015-06-21 Thread John Kitchin
sweet! I did not know you could do that! I will be refactoring org-ref soon
to do that instead of redefining the commands!

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


On Sun, Jun 21, 2015 at 2:29 PM, Titus von der Malsburg malsb...@posteo.de
wrote:


 On 2015-06-19 Fri 03:56, Xebar Saram wrote:
  Hi again Titus
 
  2 quick questions that arose from using helm-bitex today extensively:
 
  how does one exclude in the search items? for example i want to search
 for
  xebar without keyword progress (I want to exclude in progress articles
  not published yet)
 
  is it possible to define default enter command in helm-bibtex ?

 Yes.  Helm uses the first action as the default action.  To move an
 action to the top of the list you can use the following code:

   (helm-delete-action-from-source Insert BibTeX key helm-source-bibtex)
   (helm-add-action-to-source Insert BibTeX key 'helm-bibtex-insert-key
 helm-source-bibtex 0)

 The second argument in the second line is the function that executes the
 action.  Here is a list of all actions and their functions:

   Open PDF file (if present): helm-bibtex-open-pdf
   Open URL or DOI in browser: helm-bibtex-open-url-or-doi
   Insert citation: helm-bibtex-insert-citation
   Insert reference: helm-bibtex-insert-reference
   Insert BibTeX key: helm-bibtex-insert-key
   Insert BibTeX entry: helm-bibtex-insert-bibtex
   Attach PDF to email: helm-bibtex-add-PDF-attachment
   Edit notes: helm-bibtex-edit-notes
   Show entry: helm-bibtex-show-entry

 Best,

   Titus

 
  best
 
  Z
 
  On Thu, Jun 18, 2015 at 9:38 PM, Titus von der Malsburg 
 malsb...@posteo.de
  wrote:
 
 
  On 2015-06-18 Thu 04:32, Xebar Saram wrote:
   Hi Titus and thx so much for the answers!
  
   i will in the future use the github page to make requests.
  
   The number of matches will be displayed in the mode line. 
  
   i see that now thx! :) the problem was(is) that its colored black on
 my
   black modline BG which makes it invisible ;-) i assume thats an helm
  config
   i need to change
  
  
   If you don’t want to type these search expressions, you could create
 a
   command that invokes helm-bibtex with a default search expression and
  that
   command could be bound to a keyboard shortcut.
  
   that would be prefect for me and a solution to my issue. would you
 mind
   giving an example of such a code chunk. unfortunately i dont know
 elisp
  though
   as john recommended i will do my best this summer when the semester
 ends
  to
   try and pick it up :)
 
  Sure, here you go:
 
  #+BEGIN_SRC elisp
  ;; Define helm-search with predefined search expression:
  (defun helm-bibtex-my-publications ()
Search BibTeX entries authored by Xebar Saram.
(interactive)
(helm :sources '(helm-source-bibtex)
  :full-frame t
  :input xebar saram
  :candidate-number-limit 500))
 
  ;; Bind this search function to Ctrl-x p:
  (global-set-key (kbd C-x p) 'helm-bibtex-my-publications)
  #+END_SRC
 
   i will definitely use your tag system as you recommended, sounds
 perfect
   for me
 
  The tag system also comes in handy when generating publication lists for
  CVs and web pages because BibTeX does not distinguish between conference
  papers, posters, and talks.  If you have tags for that, it’s relatively
  easy to create separate sections for these types of publications using
  biblatex or bib2bib and bibtex2html in the case of web pages.
 
   thanks again for your kind help and the amazing app ;-)
 
  You are welcome.
 
Titus
 
  
   best
  
   Z
  
  
  
   On Wed, Jun 17, 2015 at 11:02 PM, Titus von der Malsburg 
  malsb...@posteo.de
   wrote:
  
  
   On 2015-06-17 Wed 11:08, Xebar Saram wrote:
Hi Titus
   
I have been exploring helm-bibtex a bit today and have some
 questions.
   btw
is this the preferred way to make requests/ask questions or is
github preferred?
  
   Helm-bibtex is not part of org (although it tries to work well with
   org).  So I’m not sure whether this list is the best place for
   discussing it.  For now the issue tracker on Github might be a better
   option:
  
 https://github.com/tmalsburg/helm-bibtex/issues
  
in any case i was wondering a few things:
   
1. is it possible to have custom sorting? i want all views to sort
 by
Author, year, month
  
   I prefer to see the entries in the (inverse) order in which they
 appear
   in the BibTeX file.  This way, recent additions show up at the
   top.  However, I agree that sorting would be useful (see issues #5
 and
   #21); it just doesn’t have high priority for me.  Pull requests
 welcome.
  
2. i would really like a way to have stored smart groups (like the
  jabref
dynamic groups if your aware of that). that is for example create a
  group
that auto selects all 

Re: [O] Why navigating in Org mode is so slow in overview mode?

2015-06-21 Thread Nicolas Goaziou
Gregor Zattler telegr...@gmx.net writes:

 - but there some hangs now and then.

Is it a complete freeze (i.e., you need to use C-g to get out of the
loop) or a slowdown of a couple of seconds? 

The former is a bug. However, some changes in the buffer imply a massive
loss of the cache (e.g., inserting a block clears cache in the whole
section), so the next action can be slow since you need to fill it
again, hence the slowdown.

 At that moment I cannot
   start the profiler.  If I start the profiler at the
   beginning of using this org file and stop it maybe hours later
   after something was slow: Would such report be helpful?

It might not give any useful information. However, the best way to know
is to look at it.

Regards,



Re: [O] What is the symbol/glyph that ... ?

2015-06-21 Thread Sharon Kimble
Juan Pechiar j...@pechiar.com writes:

 I (capital letter i) is bound to org-agenda-clock-in.

 You can check binding in your installation via describe-function:

C-h f org-agenda-clock-in

 In the agenda buffer, you can check what is I bound to:

C-h k I

Thanks for this Juan.

For some obscure reasons I is working properly now, but I did check
the key-bindings to check it was all configured properly.

Thanks
Sharon.


 On Sat, Jun 20, 2015 at 06:30:17AM +0100, Sharon Kimble wrote:
 What is the symbol/glyph or whatever for clocking in on a task in the
 agenda please? The menu says that it is I, yet whatever I press on
 this UK keyboard I can't find it! I've tried I, 1, !, and even |,
 but none of them work! I can clock out okay using the keyboard, but
 just not able to clock in from the keyboard in the agenda view.

 Is it possible to customise it please to something that will work
 here? I've looked in all the org-agenda customisation files that I
 can find but can't see where I can change it from.

-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.1


signature.asc
Description: PGP signature


Re: [O] Why navigating in Org mode is so slow in overview mode?

2015-06-21 Thread Gregor Zattler
Hi Nicolas,
* Nicolas Goaziou m...@nicolasgoaziou.fr [21. Jun. 2015]:
 Gregor Zattler telegr...@gmx.net writes:
 - but there some hangs now and then.
 
 Is it a complete freeze (i.e., you need to use C-g to get out of the
 loop) or a slowdown of a couple of seconds? 

It’s a slow down.

 The former is a bug. However, some changes in the buffer imply a massive
 loss of the cache (e.g., inserting a block clears cache in the whole
 section), so the next action can be slow since you need to fill it
 again, hence the slowdown.

Hmh.  Last time I was annoyed was when I wanted the cursor to
move down a few lines in the agenda: pressing „arrow down“ took
two seconds or some such before the cursor actually moved.

 At that moment I cannot
   start the profiler.  If I start the profiler at the
   beginning of using this org file and stop it maybe hours later
   after something was slow: Would such report be helpful?
 
 It might not give any useful information. However, the best way to know
 is to look at it.

OK I’ll start with profiler then.  Thanks, Gregor



[O] Order of TODO entries by `org-sort-entries' [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)]

2015-06-21 Thread Simen Heggestøyl

Hi!

Consider the following outline tree:

* Tasks
** TODO [#B] B
** DONE C
** TODO [#A] A

When calling `org-sort-entries' on the top level headline, and
selecting `o' to sort by TODO order, the order becomes the following:
B, A, C. However, I would expect the order A, B, C, since A has higher
priority than B. A, B, C is also the order chosen by the agenda.

So I'm wondering, is this a bug, intended behavior, or just a missing
feature of `org-sort-entries'?

-- Simen


Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
of 2015-03-07 on trouble, modified by Debian
Package: Org-mode version 8.2.10 (release_8.2.10 @ 
/usr/share/emacs/24.4/lisp/org/)