Re: [O] M- does not work as described in the manual

2014-05-26 Thread Charles Millar

Kevin Van Horn wrote:

Thank you for your help -- I have been beating my head against this for quite 
some time. Putting the cursor at the beginning of the line does in fact work.

I'm going to argue that there is still a problem here, though. Here's what I 
read at http://orgmode.org/manual/Structure-editing.html:

"If the command is used at the beginning of a headline, the new headline is created 
before the current line."



IMHO the definition of a headline is clear in the manual

2.2 Headlines

Headlines define the structure of an outline tree. The headlines in Org 
*start* with one or more stars, on the left margin


Regards, Charlie Millar

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com




Re: [O] ob-lua.el

2014-05-26 Thread Dieter Schoen
At Sun, 25 May 2014 07:24:07 +0200,
Bastien wrote:
> 
> OK -- I see there are still references to both lua-mode.el and lua.el
> (which does not exist) and you need to add a link to the lua-mode.el
> github repository.

The reference to lua.el should be gone now.
Link added.

> Okay.  Another thing:
> 
>   :version "24.4"
>   :package-version '(Org . "8.0")
> 
> needs to be
> 
>   :version "24.5"
>   :package-version '(Org . "8.3")
> 
> to be accurate.

Fixed.

One problem which I am currently working on is session mode.
This is not yet working.
Therefore I have put an (error "..") in org-babel-lua-initiate-session.

> Thanks for the ongoing work, keep us posted and we can put this in
> master when you get the confirmation from the FSF for the copyright
> assignment.

I already received the confirmation from FSF (the signed PDF), and I have seen
that I have been added to the contributors of org-mode.

Kind regards,
Dieter

;;; ob-lua.el --- org-babel functions for lua evaluation

;; Copyright (C) 2009-2014 Free Software Foundation, Inc.

;; Authors: Dieter Schoen
;;   Eric Schulte, Dan Davison
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see .

;; Requirements:
;; for session support, lua-mode is needed.
;; lua-mode is not part of GNU Emacs/orgmode, but can be obtained
;; from marmalade or melpa.
;; The source respository is here:
;; https://github.com/immerrr/lua-mode

;; However, sessions are not yet working.

;; Org-Babel support for evaluating lua source code.

;;; Code:
(require 'ob)
(eval-when-compile (require 'cl))

(declare-function org-remove-indentation "org" )
(declare-function lua-shell "ext:lua-mode" (&optional argprompt))
(declare-function lua-toggle-shells "ext:lua-mode" (arg))
(declare-function run-lua "ext:lua" (cmd &optional dedicated show))

(defvar org-babel-tangle-lang-exts)
(add-to-list 'org-babel-tangle-lang-exts '("lua" . "lua"))

(defvar org-babel-default-header-args:lua '())

(defcustom org-babel-lua-command "lua"
  "Name of the command for executing Lua code."
  :version "24.5"
  :package-version '(Org . "8.3")
  :group 'org-babel
  :type 'string)

(defcustom org-babel-lua-mode 'lua-mode
  "Preferred lua mode for use in running lua interactively.
This will typically be 'lua-mode."
  :group 'org-babel
  :version "24.5"
  :package-version '(Org . "8.3")
  :type 'symbol)

(defcustom org-babel-lua-hline-to "None"
  "Replace hlines in incoming tables with this when translating to lua."
  :group 'org-babel
  :version "24.5"
  :package-version '(Org . "8.3")
  :type 'string)

(defcustom org-babel-lua-None-to 'hline
  "Replace 'None' in lua tables with this before returning."
  :group 'org-babel
  :version "24.5"
  :package-version '(Org . "8.3")
  :type 'symbol)

(defun org-babel-execute:lua (body params)
  "Execute a block of Lua code with Babel.
This function is called by `org-babel-execute-src-block'."
  (let* ((session (org-babel-lua-initiate-session
   (cdr (assoc :session params
 (result-params (cdr (assoc :result-params params)))
 (result-type (cdr (assoc :result-type params)))
 (return-val (when (and (eq result-type 'value) (not session))
   (cdr (assoc :return params
 (preamble (cdr (assoc :preamble params)))
 (full-body
  (org-babel-expand-body:generic
   (concat body (if return-val (format "\nreturn %s" return-val) ""))
   params (org-babel-variable-assignments:lua params)))
 (result (org-babel-lua-evaluate
  session full-body result-type result-params preamble)))
(org-babel-reassemble-table
 result
 (org-babel-pick-name (cdr (assoc :colname-names params))
  (cdr (assoc :colnames params)))
 (org-babel-pick-name (cdr (assoc :rowname-names params))
  (cdr (assoc :rownames params))

(defun org-babel-prep-session:lua (session params)
  "Prepare SESSION according to the header arguments in PARAMS.
VARS contains resolved variable references"
  (let* ((session (org-babel-lua-initiate-session session))
 (var-lines
  (org-babel-variable-assignments:lua params)))
(org-babel-comint-in-buffer session
  (mapc (lambda (var)
  (end-of-line 1) (insert var) (comin

Re: [O] Insert calc vector directly into spreadsheet cells?

2014-05-26 Thread Michael Brand
Hi Steven

On Mon, May 26, 2014 at 9:39 PM, Steven Adrian  wrote:
> This is great. I wish I had seen this earlier. I did not know about
> the subscr function, but I had basically gotten to the same point by
> writing an equivalent custom calc function.

With the Calc function defmath? How does it look like?

> 1. I wrote a custom calc function called tailsInARow that uses the
> calc random function to simulate a coin toss and return the number
> of tails in a row. I used this function to fill a 20x20 table of
> values. I then used the calc histogram function in a table formula
> to read the table values, histogram the number of tails in a row,
> then write the histogram to a new table.

Didn't know that Calc has a histogram function. The histogram values
would fit perfectly to the ASCII plot within an Org table:
http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html

> 2. I calculated a rotation matrix as a succession of individual
> rotations about x, y, and z axes. I then wrote the resulting matrix
> to a table. I then wrote a table function to read the matrix, take
> the inverse, and write the result to a new table.

Interesting. How does the "function to read the matrix" look like?

Michael



Re: [O] org-contacts development

2014-05-26 Thread Michael Strey
On 2014-05-23, Alexis wrote:

> What would be useful would be an 'official', fleshed-out spec for
> org-contacts data, which handles a greater range of contact-related
> info. At the moment, for example, my org-contacts file makes use of the
> properties:
>
> #+PROPERTY: LANDLINE
> #+PROPERTY: MOBILE
> #+PROPERTY: POST
> #+PROPERTY: RESIDENCE

I have been following a VCard-like naming scheme for org-contacts
properties for a longer time. 

see
https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg01224.html

Recently, because of the lack of support for properties in MobileOrg and
the lost support for links in properties, I finally decided to export my
contact data to Google Contacts and -- just in order to try it -- to
BBDB.  I accomplished this by creating a table with org-collector and
exporting it to CSV that can be imported by Google Contacts and BBDB.

Therefore I had to change the naming scheme.  It is now similar to that
of Google Contacts.

Here is the appropriate code:

#+BEGIN_SRC org
# -*- mode: org; org-cycle-hook: (org-cycle-hide-archived-subtrees 
org-cycle-hide-inline-tasks org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change) -*-
* Contacts
:PROPERTIES:
:CATEGORY: Contacts
:ID: 39584cda-bff0-4b8a-9460-4fefb5b5922c
:END:
** A - Contacts :CONTACT:
:PROPERTIES:
:CATEGORY: Contacts
:END:
*** Actia Sodielec  :DAB:DVB:EMPFÄNGER:noexport:
:PROPERTIES:
:KIND: org
:Organization 1 - Name: Actia Sodielec
:Address 1 - Type: Work
:Address 1 - Street: 
:Address 1 - PO Box: Site Aveyron
:Address 1 - Extended Address: BP-9 Route de Mayres
:Address 1 - City: Saint Georges de Luzen\c{c}on
:Address 1 - Region: 
:Address 1 - Postal Code: 12100
:Address 1 - Country: France
:Phone 1 - Type: Work
:Phone 1 - Value: +33 565 623740
:Phone 2 - Type: Fax
:Phone 2 - Value: +33 565 623070
:Website 1 - Type: Work
:Website 1 - Value: http://www.actiasodielec.fr
:LANG: en
:END:

Saint Georges de Luzenḉon

 Carsac, Sara
:PROPERTIES:
:KIND: individual
:Organization 1 - Name: Actia Sodielec
:Organization 1 - Department: Broadcast, Rail & Transport (BTF)
:Organization 1 - Title: Responsable Commercial, Sales Manager
:FN:   Sara Carsac
:Family Name: Carsac
:Given Name: Sara
:Nickname: Dear Sara
:EMAIL: s.car...@actiasodielec.fr
:Phone 1 - Type: Work
:Phone 1 - Value: +33 618 12345
:Phone 3 - Type: Mobile
:Phone 3 - Value: +33 668 12345
:Phone 2 - Type: Fax
:Phone 2 - Value: +33 565 12345
:Website 1 - Type: Work
:Website 1 - Value: http://actiasodielec.fr
:LANG: en
:END:

** B - Contacts :CONTACT:
:PROPERTIES:
:CATEGORY: Contacts
:END:
*** BTI Technologieagentur Dresden GmbH  :ADMIN:

 Naumann, Michael
:PROPERTIES:
:KIND: individual
:Organization 1 - Name: BTI Technologieagentur Dresden GmbH
:Organization 1 - Department: EU Forschung und Technologie
:FN:   Michael  Naumann
:Family Name: Naumann
:Given Name: Michael
:Nickname: Sehr geehrter Herr Naumann
:Address 1 - Type: Work
:Address 1 - Street: Gostritzer Str. 61-63
:Address 1 - PO Box: 
:Address 1 - Extended Address: 
:Address 1 - City: Dresden
:Address 1 - Region: 
:Address 1 - Postal Code: DE-01217
:Address 1 - Country: Germany
:EMAIL: eu-forsch...@bti-dresden.de
:Phone 1 - Type: Work
:Phone 1 - Value: +49 351 871 7560
:Website 1 - Type: Work
:Website 1 - Value: http://www.bti-dresden.de
:LANG: de
:END:

* Export

** Export for Google Contacts
- C-c C-c on line #+BEGIN: updates the table
- place cursor within the table
- M-x org-table-export

#+BEGIN: propview :id "39584cda-bff0-4b8a-9460-4fefb5b5922c" :cols (Given\ Name 
Family\ Name ITEM Name\ Prefix Name\ Suffix Nickname EMAIL Phone\ 1\ -\ Type 
Phone\ 1\ -\ Value Phone\ 2\ -\ Type Phone\ 2\ -\ Value Phone\ 3\ -\ Type 
Phone\ 3\ -\ Value Phone\ 4\ -\ Type Phone\ 4\ -\ Value Address\ 1\ -\ Type 
Address\ 1\ -\ Street Address\ 1\ -\ PO\ Box Address\ 1\ -\ Extended\ Address 
Address\ 1\ -\ City Address\ 1\ -\ Region Address\ 1\ -\ Postal\ Code Address\ 
1\ -\ Country Address\ 2\ -\ Type Address\ 2\ -\ Street Address\ 2\ -\ PO\ Box 
Address\ 2\ -\ Extended\ Address Address\ 2\ -\ City Address\ 2\ -\ Region 
Address\ 2\ -\ Postal\ Code Address\ 2\ -\ Country Address\ 3\ -\ Type Address\ 
3\ -\ Street Address\ 3\ -\ PO\ Box Address\ 3\ -\ Extended\ Address Address\ 
3\ -\ City Address\ 3\ -\ Region Address\ 3\ -\ Postal\ Code Address\ 3\ -\ 
Country Organization\ 1\ -\ Name Birthday Organization\ 1\ -\ Title 
Organization\ 1\ -\ Department Website\ 1\ -\ Type Website\ 1\ -\ Value LANG 
TAGS) :colnames ("Given Name" "Family Name" "Name" "Name Prefix" "Name Suffix" 
"Nickname" "E-mail 1 - Value" "Phone 1 - Type" "Phone 1 - Value" "Phone 2 - 
Type" "Phone 2 - Value" "Phone 3 - Type" "Phone 3 - Value" "Phone 4 - Type" 
"Phone 4 - Value" "Address 1 - Type" "Address 1 - Street" "Address 1 - PO Box" 
"Address 1 -

Re: [O] Advice needed: Cant find a decent way to autosync my work TODO org file between laptop and work pc

2014-05-26 Thread Thierry Banel
You can try GIT-ANNEX
https://git-annex.branchable.com/

It is a synchronizer built on top of GIT



Le 24/05/2014 07:11, Xebar Saram a écrit :
> Hi all
>
> i need to sync my main work TODO org file between my work PC and
> laptop i carry around on work related trips and when im at home. i
> have tried several methods buy really none of them work.
>
> i mainly used git over the last 6 months but that forces me to
> pull/commit/push manually each time i add something to either machine
> and that is really annoying. plus i get merge conflicts all the time
>
> I have tried dropbox at the past but again this causes conflicts, isnt
> reliable to me (on my linux laptop it doesn't always resume sync after
> sleep)
>
> I am using linux (arch linux on laptop  and debian on work PC to be
> precise)
>
> Also i use mobileorg on phones/tablets which works with various levels
> of success :)
>
> any advice would be hugely appreciated!
>
> thanks alot
>
> Z




Re: [O] "No link found" on links in drawers

2014-05-26 Thread Karl Voit
* Bastien  wrote:
> Hi Karl,
>
> Karl Voit  writes:
>
>> FYI: I just updated my Org-mode from the git repos and the issue
>> still persists.
>
> this is now fixed in master...

I can confirm that it is working again.

Thank you very much, Bastien!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] New worg page: Publishing beamer slideshows and articles from one source

2014-05-26 Thread Rasmus
Bastien  writes:

> Hi Rasmus,
>
> Rasmus  writes:
>
>>> The only tricky part is to remove the heading from the table
>>> of contents, but this is optional and the limitation can be advertized
>>> as such.
>>
>> Come on, that's not really acceptable for an advice on org-mode.org.
>
> It is better than the current situation.

I disagree. Let's try to keep the quality on Worg high.  Let's not put
broken code there, especially without explaining why.

I have attached a quick patch with a text that I think is more
accurate and that tries to explain the issue.  I think the tone may be
too "academic"/dry.

Since Suvayu put the initial effort into the answer I will wait for
his approval before submitting it.

>> To deal with the tricky part you need an additional filter.  Or you
>> need a filter on the final output and you'd probably need to make some
>> accounting of what's present and what is not so that you can update
>> counters and TOCs.
>
> That's why I say it's tricky.
>
> Let's keep this constructive and move forward -- maybe that was not
> your intention, but the tone of your first email was a bit harsh.
> I'm sure Suvayu is open to suggestions on how to improve the filter.

That was not the intention.  For that I appoligize.

–Rasmus

-- 
Summon the Mothership!
diff --git a/org-hacks.org b/org-hacks.org
index 63dfa62..2679a00 100644
--- a/org-hacks.org
+++ b/org-hacks.org
@@ -2195,30 +2195,52 @@ before you proceed.
 :CUSTOM_ID: ignoreheadline
 :END:
 #+index: Export!ignore headlines
-Sometimes users want to ignore the headline text during export.  In
-the old exporter one would use a export hook.  From Org 8.0 onwards,
-the export filter mechanism is used (see: =org-export-filters-alist=).
-
-To ignore a headline during export using special tags, you can use the
-following filter.
-#+begin_src emacs-lisp
-  (defun sa-ignore-headline (contents backend info)
-"Ignore headlines with tag `ignoreheading'."
-(when (and (org-export-derived-backend-p backend 'latex 'html 'ascii)
-(string-match "\\`.*ignoreheading.*\n"
-  (downcase contents)))
-  (replace-match "" nil nil contents)))
-
-  (add-to-list 'org-export-filter-headline-functions 'sa-ignore-headline)
-#+end_src
-Adding this to your configuration, you can ignore headlines by tagging
-them with =ignoreheading=.  In the above snippet, this works for
-LaTeX, HTML, and ASCII backends.  You can add more backends to the
-list by just appending the appropriate name like this: =\'backend=.
-If you would rather have this feature in all backends, then simply
-remove the =when= condition.
+Sometimes users want to ignore the headline text during export like in
+the Beamer exporter (=ox-beamer=).  In the [[http://orgmode.org/manual/Beamer-export.html#Beamer-export][Beamer exporter]] one can use
+the tag =ignoreheading= to disable the export of a certain headline,
+whilst still retaining the content of the headline.  We can imitate
+this feature in other export backends.  Note that this is not a
+particularly easy problem, as the Org exporter creates a static
+representation of section numbers, table of contents etc.
+
+Consider the following document
+#+BEGIN_SRC org
+  ,* head 1   :noexport:
+  ,* head 2  :ignoreheading:
+  ,* head 3
+  ,* =head 4=:ignoreheading:
 
-You can find the latest version of the filter in [[https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el][my setup on github]].
+#+END_SRC
+We want to remove heading 2 and 4.
+
+There are different strategies to accomplish this:
+1. The best option is to remove headings tagged with =ignoreheading=
+   before export starts.  This can be accomplished with the hook
+   =org-export-before-parsing-hook= that runs before the buffer has
+   been parsed.  In the example above, however, =head 2= would not be
+   exported as it becomes part of =head 1= which is not exporter.  To
+   overcome this move perhaps =head 1= can be moved to the end of the
+   buffer.  An example of a hook that removes headings is before
+   parsing is available [[https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg01459.html][here]].  Note, this solution is compatible with
+   /all/ export formats!
+2. The problem is simple when exporting to LaTeX, as the LaTeX
+   compiler determines numbers.  We can thus use
+   =org-export-filter-headline-functions= to remove the offending
+   headlines.  One regexp-based solution that looks for the word
+   =ignoreheading= is available on [[https://stackoverflow.com/questions/10295177/is-there-an-equivalent-of-org-modes-b-ignoreheading-for-non-beamer-documents][StackOverflow]] for both the legacy
+   exporter Org v7 exporter and the current Org v8 exporter.  Note,
+   however, that this filter will only work with LaTeX (numbering and
+   the table of co

Re: [O] [RFC] Sloppy `org-element-context'?

2014-05-26 Thread Bastien
Hi Nicolas,

Bastien  writes:

> Indeed -- but this can easily be fixed.  Thanks for the comment
> on my dirty hack, I will implement something based on this idea
> and we'll see if it fits.

This is now implemented in
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=b11570

Best,

-- 
 Bastien



Re: [O] "No link found" on links in drawers

2014-05-26 Thread Bastien
Hi Karl,

Karl Voit  writes:

> FYI: I just updated my Org-mode from the git repos and the issue
> still persists.

this is now fixed in master...

-- 
 Bastien



Re: [O] Filtering org-clock-display

2014-05-26 Thread Noah Slater
Aha! Sorry, I hadn't updated my checkout to HEAD.

I see that when I run that command now, I get a prompt asking me for
"Range" with the following options:

lastmonth lastweek lastyear thismonth
thisweek thisyear today yesterday

And the new doc:

With one universal prefix argument, show the total time for
today.  With two universal prefix arguments, show the total time
for a custom range, entered at the prompt.  With three universal
prefix arguments, show the total time in the echo area.

That's pretty cool. Any reason it doesn't use the same syntax as the
:tstart param though?

This breaks a function I had written (and perhaps other people's functions).

To replicate this breakage, I wrote this function:

(defun clock-display-test ()
  (interactive)
  (org-clock-display))

Before this change, that would successfully call org-clock-display. Now it
displays this error in *Messages*:

clock-display-test: Wrong number of arguments: (lambda (arg) "Show subtree
times in the entire buffer.

With one universal prefix argument, show the total time for
today.  With two universal prefix arguments, show the total time
for a custom range, entered at the prompt.  With three universal
prefix arguments, show the total time in the echo area.

Use \\[org-clock-remove-overlays] to remove the subtree times."
(interactive "P") (org-clock-remove-overlays) (let* ((todayp (equal arg
(quote (4 (customp (equal arg (quote (16 (prop (cond (todayp
:org-clock-minutes-today) (customp :org-clock-minutes-custom) (t
:org-clock-minutes))) time h m p) (cond (todayp (org-clock-sum-today))
(customp (org-clock-sum-custom)) (t (org-clock-sum))) (if (eq arg (quote
(64))) nil (save-excursion (goto-char (point-min)) (while (or (and (equal
(setq p (point)) (point-min)) (get-text-property p prop)) (setq p
(next-single-property-change (point) prop))) (goto-char p) (if (setq time
(get-text-property p prop)) (progn (org-clock-put-overlay time (setq h
(/ org-clock-file-total-minutes 60) m (- org-clock-file-total-minutes (* 60
h))) (if org-remove-highlights-with-change (progn (org-add-hook (quote
before-change-functions) (quote org-clock-remove-overlays) nil (quote
local)) (message (concat (format "Total file time%s: " (cond (todayp "
for today") (customp " (custom)") (t ""))) (org-minutes-to-clocksum-string
org-clock-file-total-minutes) " (%d hours and %d minutes)") h m))), 0

That doesn't look right to me. Should an error be printing out all that
stuff like that?

How should I change my function to call org-clock-display? Can I pass in
the range as an argument somehow?

Does it make sense for this function to behave like it used to if you just
call it like (org-clock-display) with no other arguments? (i.e. Make this
great new functionality backwards compatible, and off-by-default.)



On 26 May 2014 07:14, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > How do I configure the filtering?
>
> What filtering?
>
> Please re-read the whole thread (where I mention that we *could* have
> an option for the default filtering option).  Also put more context in
> your questions -- such terse sentences makes me feel like I'm just an
> answering machine.
>
> Thanks,
>
> --
>  Bastien
>


Re: [O] intra links and worg

2014-05-26 Thread Bastien
Hi Alan,

Alan Schmitt  writes:

> Ah, thanks, I see now. It does work indeed.

I've now applied a slightly modified version of the patch I sent.

Thanks,

-- 
 Bastien



Re: [O] Stickiness of agenda buffers overrides persistent filters

2014-05-26 Thread Bastien
Hi Thomas,

Thomas Morgan  writes:

> When `org-agenda-sticky' and `org-agenda-persistent-filter' are
> both set, filters are not carried over to new agenda views, at least
> in some cases.

This should now be fixed too, thanks again.

-- 
 Bastien



Re: [O] Clock-in in agenda makes some headings with links disappear

2014-05-26 Thread Bastien
Hi Thomas,

Thomas Morgan  writes:

> Here is a small patch for this bug.  It works as far as I can tell
> though it's possible that it introduces other problems or that there's
> a better solution.

The solution was to clean-up `org-move-to-column' directly.

It used to do complex stuff when agenda filters were using overlays,
now it's more simple and things should be all right also in other
places than the agenda where `org-move-to-column' is in use (e.g.
tables, headlines when aligning the tags, etc.)

Thanks again for the patch,

-- 
 Bastien



Re: [O] New worg page: Publishing beamer slideshows and articles from one source

2014-05-26 Thread Bastien
Hi Rasmus,

Rasmus  writes:

>> The only tricky part is to remove the heading from the table
>> of contents, but this is optional and the limitation can be advertized
>> as such.
>
> Come on, that's not really acceptable for an advice on org-mode.org.

It is better than the current situation.

> To deal with the tricky part you need an additional filter.  Or you
> need a filter on the final output and you'd probably need to make some
> accounting of what's present and what is not so that you can update
> counters and TOCs.

That's why I say it's tricky.

Let's keep this constructive and move forward -- maybe that was not
your intention, but the tone of your first email was a bit harsh.
I'm sure Suvayu is open to suggestions on how to improve the filter.

-- 
 Bastien



Re: [O] Clock-in in agenda makes some headings with links disappear

2014-05-26 Thread Bastien
Hi Thomas,

Thomas Morgan  writes:

> An indication that it was scheduled appears in the echo area:
>
> ,
> | Scheduled to <2014-05-25 Sun>
> `
>
> But the calendar window remains until you press `C-g'.

this is now fixed, thanks!

-- 
 Bastien



Re: [O] New worg page: Publishing beamer slideshows and articles from one source

2014-05-26 Thread Rasmus
Bastien  writes:

> Hi Rasmus,
>
> Rasmus  writes:
>
>> The intention is nice, but this entry is flawed to the point that it
>> should be removed or undergo some heavy editing IMO. . .
>
> Yes, the sa-ignore-headline function should be updated.
>
> Can you give it a go?

In two weeks.

> I don't see why this should not be easy: you can simply try to match
> different regexps depending on the backend, and remove the correct
> stuff.

Sure.  But the regexp that was posted fails in this regard.

> The only tricky part is to remove the heading from the table
> of contents, but this is optional and the limitation can be advertized
> as such.

Come on, that's not really acceptable for an advice on org-mode.org.

To deal with the tricky part you need an additional filter.  Or you
need a filter on the final output and you'd probably need to make some
accounting of what's present and what is not so that you can update
counters and TOCs.

—Rasmus

-- 
Together we'll stand, divided we'll fall




Re: [O] [ANN] Gnorb: Glue code between Gnus, Org, and BBDB

2014-05-26 Thread Eric Abrahamsen
Eric Abrahamsen  writes:

> I'm writing two more functions to complement `gnorb-org-handle-mail'. In
> the end there will be three:
>
> 1. A function that says "make an Org todo out of the email I'm sending
> now" (to keep track of conversations that need following-up).
>
> 2. A function that says "this email I just received is relevant to some
> Org heading, and should trigger a TODO state-change or a note on that
> heading". It will be able to suggest the correct heading.
>
> 3. A function that says "send an email by reading the current Org
> heading and doing what I what". That's `gnorb-org-handle-mail'.
>
> Everything else just depends on how you've set up your capture
> templates, and how you like to structure your mail-related TODOs. I
> don't want to enforce anything else, but I want those three functions to
> be good at guessing how you do things, and I'll provide user options to
> help them guess correctly. In particular, how `gnorb-org-handle-mail'
> interprets the heading under point is important.

Okay, the above is basically up and working, modulo bugs. In an OCD fit
I had to rename a couple of functions, I'm going to coder hell, I know
it. gnorb-gnus-outgoing-make-todo is now gnorb-gnus-outgoing-do-todo,
and gnorb-gnus-message-trigger-todo is now gnorb-gnus-incoming-do-todo.

The readme at https://github.com/girzel/gnorb has a general description
of how one might use this for email tracking.

E




Re: [O] Beamer Export: US date format despite \usepackage[ngerman]{babel}

2014-05-26 Thread Loris Bennett
Nick Dokos  writes:

> "Loris Bennett"  writes:
>
>> "Loris Bennett"  writes:
>>
>>> Hi,
>>>
>>> If I have  the following:
>>>
>>> ,
>>> | #+TITLE: Test
>>> | #+AUTHOR: Loris Bennett
>>> | 
>>> | #+OPTIONS: H:1 toc:nil
>>> | 
>>> | #+LATEX_HEADER: \usepackage[ngerman]{babel}
>>> | 
>>> | #+DATE: \today
>>> | 
>>> | * Test
>>> | 
>>> | Test
>>> `
>>>
>>> And export as to Beamer PDF, the tex file contains
>>>
>>> ,-
>>> | \usepackage[ngerman, english]{babel}
>>> `-
>>>
>>> And the date is rendered as
>>>
>>> ,-
>>> | May 22, 2014
>>> `-
>>>
>>> Is this a bug or should I be doing something else to get "22. Mai 2014"?
>>>
>
> I sent too soon:
>
> .. or set `org-export-default-language' - and see
>
> (info "(org) Export settings")
>
> for more options.

So if I have the following in my Org file

,---
| +LANGUAGE: de
| +LATEX_HEADER: \usepackage[ngerman]{babel}
`---

I get this in my LaTeX file:

,-
| \usepackage[ngerman, germanb]{babel}
`-

and I get \today is rendered correctly for German:

,-
| 26. Mai 2014
`-

However, without a \usepackage{babel} header and just

,--
| +LANGUAGE: de
`--

there is no \usepackage line in the LaTeX file for babel and I get

,-
| May 26, 2014
`-

The specific idiosyncrasy with German seems to be that there are 3
options with babel: german, ngerman, and germanb.  If the LATEX_HEADER
includes babel, then setting LANGUAGE will append germanb to the list of
language options given, if not already given.

So my problem is solved (thanks, Nick), although one question remains:

Does setting LANGUAGE, without \usepackage{babel} on its own actually
achieve anything for LaTeX, or is it just for other backends?

Cheers,

Loris



-- 
This signature is currently under construction.




Re: [O] Advice needed: Cant find a decent way to autosync my work TODO org file between laptop and work pc

2014-05-26 Thread Samuel Loury
Melleus  writes:

> Richard Lawrence  writes:
>
>> Also, Unison (http://www.cis.upenn.edu/~bcpierce/unison/) promises to do
>> two-way file sync between *nix and Windows.  I've never tried it; has
>> anyone else?
>
> I can recommend rsync (you can get it from Cygwin for Windows) for such
> things. No fancy GUIs though. It just works.
I have not tried it yet, but
https://github.com/dooblem/bsync/blob/master/README.md could be of some
help. I guess it does like unison but using rsync.

Also, if you handle big files also, you may try git-annex
(http://git-annex.branchable.com/). I could be used to simply
synchronize files with "git config annex.largefiles 'exclude=*'" and
"git annex sync".

--
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A


pgpnQ7lfyjwxH.pgp
Description: PGP signature