[O] org-get-tags-at

2016-06-08 Thread Fabrice Popineau
Hi,

I'm trying to program some stuff of my own and
either I misunderstand the documentation or something is wrong
with  #'org-get-tags-at.

I have a heading:

* Bar   :foo:bar:baz:

(org-get-tags-at)
while on the heading returns ("baz")
I would expect ("foo" "bar" "baz")

What is the reason for tat result?

Regards,

Fabrice


[O] [PATCH} Re: inline code block problem; first attempt

2016-06-08 Thread Charles C. Berry



Patch atteched.

Replaced ']' with '{' in the regex `header' group.

Comments?

Chuck
From 2a060d4ca51dabbc6931a1483ae6c0ac29e0586c Mon Sep 17 00:00:00 2001
From: Charles Berry 
Date: Wed, 8 Jun 2016 19:36:30 -0700
Subject: [PATCH] org-element-inline-src-block-parser fix regexp

* org-element.el (org-element-inline-src-block-parser): Header may
  include `[' and `]', but not `{'. This allows tables to be indexed
  in :var arguments.

Reported by: Charles Millar
http://article.gmane.org/gmane.emacs.orgmode/107624
---
 lisp/org-element.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-element.el b/lisp/org-element.el
index 8745ef3..d47f6f0 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -2916,7 +2916,7 @@ Assume point is at the beginning of the inline src block."
 (catch :no-object
   (when (let ((case-fold-search nil))
  (looking-at "\\

Re: [O] org-notify: Need to get notifications at the start time of the task (in addition to the deadline)

2016-06-08 Thread Charles Philip Chan
Amit Tendulkar  writes:

Hi Amit:

> I put notify.el in my load path and added the following lines in my init
> file.
>
> (autoload 'notify "notify" "Notify TITLE, BODY.")
> (appt-activate 1)
> (org-agenda-to-appt)
>
> Still I am getting only inline intimations for the appointments. Am I
> missing something?

Sorry, I set this up a long time ago, so I gave you the wrong info,
After searching my configuration files, I found this:

;; Update appt list and dbus appt notification
; Get appointments for today
(defun my-org-agenda-to-appt ()
  (interactive)
  (setq appt-time-msg-list nil)
  (let ((org-deadline-warning-days 0));; will be automatic in org 5.23
(org-agenda-to-appt)))

; Run once, activate and schedule refresh
(my-org-agenda-to-appt)
(appt-activate t)
(run-at-time "00:01" nil 'my-org-agenda-to-appt)

; 5 minute warnings
(setq appt-message-warning-time 15)
(setq appt-display-interval 5)

; Update appt each time agenda opened.
(add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt)

; Setup zenify, we tell appt to use window, and replace default function
(setq appt-display-format 'window)
(setq appt-disp-window-function (function my-appt-disp-window))

(defun my-appt-disp-window (min-to-app new-time msg)
  (save-window-excursion
(shell-command
 (concat "/home/hoor/bin/org-appt-notify '" msg "'  '" min-to-app "'&")
 nil nil)
)
  )


and here is the content of "org-appt-notify"


#!/bin/sh
SOUND="/home/hoor/GNUstep/Library/WindowMaker/Sounds/Kopete_Received.ogg"
ICON="/home/hoor/GNUstep/Library/Icons/apps/system-config-date.tif"

ogg123 "$SOUND"
notify-send --icon="$ICON" "APPOINTMENT" "$1\ndue in $2 mins."


Charles

-- 
Your job is being a professor and researcher: That's one hell of a good excuse
for some of the brain-damages of minix.
(Linus Torvalds to Andrew Tanenbaum)


signature.asc
Description: PGP signature


[O] bug#23725: 25.0.94; Org mode uses removed aliases to scroll the calendar

2016-06-08 Thread Paul Eggert

I installed the patch and am marking this as done.





Re: [O] UEFA EURO 2016 schedule for Org-mode

2016-06-08 Thread Igor Sosa Mayor
Sauli Heinola  writes:

> Hello!
>
> Taking inspiration from djcb's EURO 2012 [1] and Ruediger's 2014 World
> cup [2] schedules, I whipped up the schedule for the EURO 2016 for
> Org-mode, which can be retrieved from https://github.com/n2o4/org-uefa-2016
>
> All times are CEST (UTC+2) but can be changed with the function attached
> in the Org-file.

thanks!

-- 
:: Igor Sosa Mayor :: joseleopoldo1...@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/  ::
:: jabberid: rogorido  ::::




[O] Org HTML export (ReadTheOrg)

2016-06-08 Thread Fabrice Niessen
Dear all,

FYI, ReadTheOrg (awesome CSS theme, I dear saying it ;-) [1], for your
HTML exports from Org mode) is now "Web Responsive", thanks to a patch
from Geekplux!  Enjoy!

See https://github.com/fniessen/org-html-themes for more information.

Best regards,
Fabrice

[1] I just cloned the awesome Sphinx CSS theme used in the great
http://readthedocs.org/ Web site (see, for example,
http://org-babel.readthedocs.io/en/latest/).
All credit goes to the author(s) of Sphinx!

-- 
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/




Re: [O] inline code block problem; first attempt

2016-06-08 Thread Charles C. Berry

On Wed, 8 Jun 2016, Eric S Fraga wrote:


Can you please post a complete example so that others can try it?  Also,
what version of org etc.?


A bug in `org-element-inline-src-block-parser', I think.

Here is an ECM:

src_emacs-lisp[:var totalcommissions=TOTALCOM]{totalcommissions}
src_emacs-lisp[:var totalcommissions=TOTALCOM[-1,-1]]{totalcommissions}
#+BEGIN_SRC emacs-lisp
(save-excursion
  (org-babel-goto-src-block-head)
  (forward-line -1)
  (list (org-element-type (org-element-inline-src-block-parser))
(progn (forward-line -1)
   (org-element-type
 (org-element-inline-src-block-parser)

#+END_SRC

#+RESULTS:
| nil | inline-src-block |


Chuck



Re: [O] inline code block problem; first attempt

2016-06-08 Thread Charles Millar

I am getting careless.


On 06/08/2016 02:36 PM, Eric S Fraga wrote:

Can you please post a complete example so that others can try it?  Also,
what version of org etc.?


sample.org file

* TOTALCOM   :ignoreheading:

#+NAME: TOTALCOM
#+ATTR_LATEX: :mode table :environment longtable :align p{415pt}N{8}{2}
| {{{cmhfill}}} Total commissions due | 0.00 |


#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1]
totalcommissions
#+end_src

#+RESULTS:
: 0.0

Inline version src_emacs-lisp[:var 
totalcommissions=TOTALCOM[-1,-1]]{totalcommissions}


GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 
2015-03-07 on trouble, modified by Debian


Org-mode version 8.3.4 (release_8.3.4-894-gf94df5 @ 
/usr/local/share/emacs/site-lisp/org-mode/lisp/)


Charlie



Re: [O] inline code block problem; first attempt (correction)

2016-06-08 Thread Charles Millar


On 06/08/2016 02:28 PM, Charles Millar wrote:

C-c C-c works on this

#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1]
totalcommissions
#+end_src

#+RESULTS:
: 0.0

but not on this




Inline version src_emacs-lisp[:var 
totalcommissions=TOTALCOM[-1,-1]]{totalcommissions}



What am I missing?

Charlie Millar








Re: [O] How to contribute?

2016-06-08 Thread Achim Gratz
aermo...@mirantis.com writes:
> I'm also thinking of contributing to orgmode, so my question is - is
> there any publicly available contributing guide, being SPOT for
> newcomers?

http://orgmode.org/worg/org-contribute.html

If you think anything is missing or needs better explanation, make that
your first contribution!


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] org-notify: Need to get notifications at the start time of the task (in addition to the deadline)

2016-06-08 Thread Amit Tendulkar
Thanks Marco. Yes, appointment reminders will work for me. Any idea how to
configure them in such a way that I get popups? Popups are helpful
especially when my focus is not on Emacs. Or even when I am connected to
a remote desktop (say through Citrix).

Regards,
Amit

Marco Wahl  writes:

> Hi Amit,
>
>> I need a way to get notifications at the time of starting a task or at
>> the start of the meeting (i.e. the SCHEDULED timestamp). Currently I
>> know of only getting notifications for the DEADLINE timestamp. However,
>> it will be more productive for me to get notification to tell me to
>> start working on a task (or attend a meeting).
>
> Have you tried "Appointment reminders"?  See (info "(org) Weekly/daily
> agenda").
>
>
> HTH,

DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.




Re: [O] How to contribute?

2016-06-08 Thread aermolov
Hi Bastien,

I'm also thinking of contributing to orgmode, so my question is - is
there any publicly available contributing guide, being SPOT for
newcomers?

Thanks

--
Alex

Bastien Guerry  writes:

> Hi Xi Shen,
>
>> I would like to make some code change to org-mode. I followed the
>> instruction on http://orgmode.org/worg/org-contribute.html#patches,
>> but I got stuck at the first step.
>
> Thanks in advance for your contributions and welcome!
>
>> I send my RSA public key, to the system, but I never got a response.
>
> The system is a human being (me).  :)
>
> I suggest you submit a few patches on the mailing list first,
> then Nicolas or other core committers can review and apply them.
>
> When everyone is confident about giving you direct write access,
> I add your key.
>
> In the meantime I gave you access to worg, which you can now clone
> like this:
>
> ~$ git clone orgm...@orgmode.org:org-mode.git
>
> ... then commit, and push.
>
> Thanks!
>
> -- 
>  Bastien



Re: [O] inline code block problem; first attempt

2016-06-08 Thread Eric S Fraga
Can you please post a complete example so that others can try it?  Also,
what version of org etc.?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.94.1, Org release_8.3.4-869-gf2c421



[O] inline code block problem; first attempt

2016-06-08 Thread Charles Millar

C-c C-c works on this

#+begin_src emacs-lisp :var totalcommissions=TOTALCOM[-1,-1]
totalcommissions
#+end_src

#+RESULTS:
: 0.0

but not on this

Inline version src-emacs-lisp[:var 
totalcommissions=TOTALCOM[-1,-1]]{totalcommissions}


What am I missing?

Charlie Millar




[O] bug#23725: 25.0.94; Org mode uses removed aliases to scroll the calendar

2016-06-08 Thread Glenn Morris
Kyle Meyer wrote:

> Ari Roponen  writes:
>
>> Org mode uses aliases that were removed by this commit:
>>
>>   commit 3f65970414538063e38ada2a47cb4ef4f35b630e
>>   Author: Glenn Morris 
>>   Date:   Sun Oct 5 19:02:04 2014 -0700
>>
>>   Remove calendar code obsolete since at least version 23.1
>
> This was fixed in the upstream Org repo with 8b63dc9 (org.el: Fix
> bindings of < and > for calendar scrolling, 2014-10-20), which is
> included in version 8.3.

But not included in the version included with Emacs. Please could
someone port that fix to the emacs-25 branch.

(If simple fixes don't get propagated for over a year, the system isn't
working.)





Re: [O] org-notify: Need to get notifications at the start time of the task (in addition to the deadline)

2016-06-08 Thread Nick Dokos
Amit Tendulkar  writes:

> Charles Philip Chan  writes:
>
>> Marco Wahl  writes:
>>
>>> http://emacs-fu.blogspot.de/2009/11/showing-pop-ups.html
>>> looks promising.
>>
>> This is what I use:
>>
>> https://www.emacswiki.org/emacs/notify.el
>
> I put notify.el in my load path and added the following lines in my init
> file.
>
> (autoload 'notify "notify" "Notify TITLE, BODY.")
> (appt-activate 1)
> (org-agenda-to-appt)
>
> Still I am getting only inline intimations for the appointments. Am I
> missing something?

The commentary at the top of notify.el says:

,
| ;; This provides a single function, `notify', that will produce a notify
| ;; pop-up via D-Bus, libnotify, simple message or growl.
| ;; To use, just put (autoload 'notify "notify" "Notify TITLE, BODY.")
| ;;  in your init file.  You may override default chosen notification
| ;;  method by assigning `notify-method' to one of 'notify-via-dbus
| ;; 'notify-via-libnotify or 'notify-via-message
`

Does that help? You probably need to set notify-method to something
reasonable for your platform. BTW, completely untested.

There are also some relevant answers in the FAQ:

http://orgmode.org/worg/org-faq.html#Appointments/Diary

http://orgmode.org/worg/org-faq.html#automatic-reminders

--
Nick





[O] [PATCH] ob-sql.el: Support sqlcmd and cygwin environment

2016-06-08 Thread Xi Shen
Hi,

I would like to apply this path to add sqlcmd support, and allow org-mode
to execute and capture sqlcmd output in cygwin environment.

I added a "platform-convert-file-name" function to convert a *nix path to
Windows path. Should I put this function in ob-sql.el, or somewhere else?


Thanks,
David

-- 

Thanks,
David S.


0001-ob-sql.el-Support-sqlcmd-and-cygwin-environment.patch
Description: Binary data


[O] Where should I add a new utility function?

2016-06-08 Thread Xi Shen
Hi,

I would like to add a utility function which will be used by the
org-babel-execute:sql function. The function would look like this:

+(defun platform-convert-file-name (file)
+  (if (fboundp 'cygwin-convert-file-name-to-windows)
+  (format "\"%s\"" (cygwin-convert-file-name-to-windows file))
+(t file)))
+

As its name suggests, this function if very platform specific. Should I put
this definition in the ob-sql.el file, the ob-core.el file or somewhere
else?


Thanks,
David

-- 

Thanks,
David S.


Re: [O] How to setup a development for org-mode?

2016-06-08 Thread Xi Shen
I found the minimal-org trick works for me.


On Wed, Jun 8, 2016 at 3:04 PM Robert Klein  wrote:

> Hi,
>
> On Wed, 08 Jun 2016 06:55:08 +
> Xi Shen  wrote:
>
> > Tried that at first, but got:
> >
> > Symbol's function definition is void: org-babel--get-vars
> >
> > Maybe it is because I am in cygwin environment, so Emacs eval buffers
> > differently?
>
> You are using org-mode 8.3.4 from then maint branch (or earlier) which
> hasn't org-babel--get-vars.  The version of ob-sql.el you are editing
> is from the master branch.
>
> Best regards
> Robert
>
>
> >
> >
> > Thanks,
> > David
> >
> >
> > On Wed, Jun 8, 2016 at 2:42 PM Rasmus  wrote:
> >
> > > Xi Shen  writes:
> > >
> > > > Hi,
> > > >
> > > > I want to make some change to the ob-sql.el file. But I don't
> > > > want to
> > > "make
> > > > install" every time I change something. I tried to use
> > > > “load-file" to reload the file I changed, but I got symbol not
> > > > found error.
> > >
> > > Open the file you've edited and do,
> > >
> > > M-x eval-buffer RET
> > >
> > > Hope it helps,
> > > Rasmus
> > >
> > >
> > > --
> > > Hvor meget poesi tror De kommer ud af et glas isvand?
> > >
> > >
> > > --
> >
> > Thanks,
> > David S.
>
> --

Thanks,
David S.


Re: [O] How to setup a development for org-mode?

2016-06-08 Thread Robert Klein
Hi,

On Wed, 08 Jun 2016 06:55:08 +
Xi Shen  wrote:

> Tried that at first, but got:
> 
> Symbol's function definition is void: org-babel--get-vars
> 
> Maybe it is because I am in cygwin environment, so Emacs eval buffers
> differently?

You are using org-mode 8.3.4 from then maint branch (or earlier) which
hasn't org-babel--get-vars.  The version of ob-sql.el you are editing
is from the master branch.

Best regards
Robert


> 
> 
> Thanks,
> David
> 
> 
> On Wed, Jun 8, 2016 at 2:42 PM Rasmus  wrote:
> 
> > Xi Shen  writes:
> >
> > > Hi,
> > >
> > > I want to make some change to the ob-sql.el file. But I don't
> > > want to
> > "make
> > > install" every time I change something. I tried to use
> > > “load-file" to reload the file I changed, but I got symbol not
> > > found error.
> >
> > Open the file you've edited and do,
> >
> > M-x eval-buffer RET
> >
> > Hope it helps,
> > Rasmus
> >
> >
> > --
> > Hvor meget poesi tror De kommer ud af et glas isvand?
> >
> >
> > --
> 
> Thanks,
> David S.




[O] Proposal to use sqlcmd for connecting to SQL Server

2016-06-08 Thread Xi Shen
Hi,

I tried the use the msosql engine in org-mode, but it cannot format the
result into a table. I think MS has made some change that the output of the
command is not compatible with org-mode. More specifically, the output add
"1> 2> 3> 4>  " to the begging and break the table formatting. I saw this
result on Windows 7 with osql 10.50.1600.1.

However, I found that the output of "sqlcmd" can be formatted into a table
in org-mode correctly without any trick.

osql and sqlcmd take similar command arguments, with sqlcmd has more
options. I think it is safe to simply replace the "osql" command into
"sqlcmd" command in the ob-sql.el file.

The only major difference between these two tools are: osql uses ODBC to
connect to the server; while sqlcmd uses the fancy native client to connect
to the server.

I would like to hear ideas/suggestions about this.


Thanks,
David

-- 

Thanks,
David S.


Re: [O] How to setup a development for org-mode?

2016-06-08 Thread Xi Shen
Tried that at first, but got:

Symbol's function definition is void: org-babel--get-vars

Maybe it is because I am in cygwin environment, so Emacs eval buffers
differently?


Thanks,
David


On Wed, Jun 8, 2016 at 2:42 PM Rasmus  wrote:

> Xi Shen  writes:
>
> > Hi,
> >
> > I want to make some change to the ob-sql.el file. But I don't want to
> "make
> > install" every time I change something. I tried to use “load-file" to
> > reload the file I changed, but I got symbol not found error.
>
> Open the file you've edited and do,
>
> M-x eval-buffer RET
>
> Hope it helps,
> Rasmus
>
>
> --
> Hvor meget poesi tror De kommer ud af et glas isvand?
>
>
> --

Thanks,
David S.


Re: [O] How to setup a development for org-mode?

2016-06-08 Thread Rasmus
Xi Shen  writes:

> Hi,
>
> I want to make some change to the ob-sql.el file. But I don't want to "make
> install" every time I change something. I tried to use “load-file" to
> reload the file I changed, but I got symbol not found error.

Open the file you've edited and do,

M-x eval-buffer RET

Hope it helps,
Rasmus


-- 
Hvor meget poesi tror De kommer ud af et glas isvand?