Re: [O] Open buffers, etc in other window

2019-08-14 Thread Nathan Neff
I just found the term I'm looking for:  "advice" -- here's an unrelated
example:
https://emacs.stackexchange.com/questions/17169/change-order-of-buffers-in-helm-buffers-list

On Wed, Aug 14, 2019 at 3:36 PM Nathan Neff  wrote:

> Hello all,
>
> There are quite a few commands I run in org-mode to jump to
> headlines:  org-clock-goto org-capture-goto-last-stored, etc.
>
> Sometimes, I would prefer that those "jump" commands would use
> a new window to perform the jump.
>
> In my quest to learn Lisp a bit better, I'd like to ask for recommended
> way(s) to set some kind of flag "e.g. use-other-window", and "wrap"
> the various jump commands with code to switch to the other window (or
> create one)
> and then call the function.
>
> For example, something like:
>
> (def decorator njn-switch-or-create-window() )
> (if use-other-window ( switch or create window))
> (call original function)
> )
>
> (decorate (org-tags-view, org-clock-goto, org-capture-goto-last-stored
> njn-switch-or-create-window
>
> I *know* Lisp has a bunch of ways of doing this, but I would
> like to hear the "best" way to attempt something like this :)
>
> Thanks,
> --Nate
>
>
>


Re: [O] exported contacts problem

2019-08-14 Thread Eric Abrahamsen
David Masterson  writes:

> Eric Abrahamsen  writes:
>
>> But Org can be an excellent *interface* to those tools, mostly through
>> dynamic blocks. I've started using small sqlite databases to keep track
>> of things, and dynamic blocks as sql composers/views, and it works
>> great. It's very easy to play with the queries, and this is the first
>> time I'm actually starting to feel comfortable with sql.
>>
>> I think in general Org is best used as a compositional tool for data
>> drawn from elsewhere.
>
> What do you think of RDB? It seems to be an old set of Perl scripts
> derived from /rdb (an older set of Unix shell scripts) that can be used
> to do basic relational database commands on textual database tables.  If
> it could be translated into an Elisp package, it would fit the Emacs
> model of open source and easily understandable data storage.  It can be
> gotten via ftp here:
>
> cdb.netbsd.org/pub/pkgsrc/distfiles/RDB-2.6d.tar.gz

I've never heard of it! But from your description it kind of sounds like
another attempt to use relational databases without actually using
relational databases :) I guess I think databases are one of those
things you should delegate to an external program. Org is already pretty
good at interfacing with them.



[O] Open buffers, etc in other window

2019-08-14 Thread Nathan Neff
Hello all,

There are quite a few commands I run in org-mode to jump to
headlines:  org-clock-goto org-capture-goto-last-stored, etc.

Sometimes, I would prefer that those "jump" commands would use
a new window to perform the jump.

In my quest to learn Lisp a bit better, I'd like to ask for recommended
way(s) to set some kind of flag "e.g. use-other-window", and "wrap"
the various jump commands with code to switch to the other window (or
create one)
and then call the function.

For example, something like:

(def decorator njn-switch-or-create-window() )
(if use-other-window ( switch or create window))
(call original function)
)

(decorate (org-tags-view, org-clock-goto, org-capture-goto-last-stored
njn-switch-or-create-window

I *know* Lisp has a bunch of ways of doing this, but I would
like to hear the "best" way to attempt something like this :)

Thanks,
--Nate


Re: [O] Bug: Description of org agenda columns format in manual not correct/misleading

2019-08-14 Thread Nick Dokos
"Fraga, Eric"  writes:

> I have this setting in my Emacs initialization:
>
> (setq org-agenda-overriding-columns-format "%5TODO %TIMESTAMP %40ITEM 
> %LOCATION %TAGS")
>
> HTH,
> eric

Shouldn't you be using org-columns-default-format instead?

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




Re: [O] NLS/Augment

2019-08-14 Thread Samuel Wales
org-mouse works well for me and i depend on it frequently.

the main thing i am missing in it is the ability to select a todo kw
for a header.

i use require.  i never understood modules or their purpose.

-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.



Re: [O] defconst: Symbol’s value as variable is void: css-syntax-propertize-function

2019-08-14 Thread Nick Dokos
"Charles R (Charlie) Martin"  writes:

> I'm getting this error when trying to export HTML from org-mode. Is this a 
> known issue? I haven't found
> any solutions via google.
>

When I do `C-h v css-syntax-propertize-function RET' I get:

,
| css-syntax-propertize-function is a variable defined in ‘css-mode.el’.
| Its value is #f(compiled-function (start end) #)
| 
|   This variable may be risky if used as a file-local variable.
| 
| Documentation:
| Not documented as a variable.
`

Maybe try `M-x load-library RET css-mode RET' and try the export again?
A backtrace would be useful for identifying what is going awry. Try

M-x toggle-debug-on-error RET

and try the export againg; then post the backtrace.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




Re: [O] NLS/Augment

2019-08-14 Thread John Kitchin
strange. It has always worked fine for me. It turns out in the long run I
don't use it much, C-c C-c does the same thing on check boxes, and speed
commands on headings end up being easier to use for me.  YMMV of course.

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 Wed, Aug 14, 2019 at 9:35 AM Jean Louis  wrote:

> * John Kitchin  [2019-08-12 15:05]:
> >
> > Jean Louis  writes:
> >
> > > * Steve Quezadas  [2019-08-12 05:59]:
> > >> Guys,
> > >>
> > >> This is a slightly offtopic, but I've been using org-mode and I love
> love
> > >> loveit. Was the writing of org-mode related in any way to Douglas
> > >> Engelbart's NLS/Augment system? A lot of the features seem to
> crossover. Or
> > >> is this simply coincidence?
> > >
> > > I have been watching the demonstration on these pages:
> > > http://dougengelbart.org/content/view/216/000/#Augment
> > >
> > > and videos by Christina Engelbart,
> > >
> https://www.youtube.com/watch?list=PLCGFadV4FqU15vunAfsTDzeEPnHDaf7n0=STRuciV6L38
> > >
> > > Org mode look similar to that Augment browser, definitely. With
> > > differences. But it looks as nice information management system.
> > >
> > > It would be good that Org mode gets some kind of buttons follow the
> > > mouse feature upon turning it on, just as shown on this video:
> > > https://vimeo.com/81238285
> > >
> >
> > I think (require 'org-mouse) provides lots of mouse support for
> > opening/closing outlines, checking/unchecking checkboxes, etc.
>
> I have tried it, but it does not turn on at all times. Documentation
> is vague. It is unclear how should it turn on.
>
> Jean
>


Re: [O] NLS/Augment

2019-08-14 Thread Jean Louis
* John Kitchin  [2019-08-12 15:05]:
> 
> Jean Louis  writes:
> 
> > * Steve Quezadas  [2019-08-12 05:59]:
> >> Guys,
> >>
> >> This is a slightly offtopic, but I've been using org-mode and I love love
> >> loveit. Was the writing of org-mode related in any way to Douglas
> >> Engelbart's NLS/Augment system? A lot of the features seem to crossover. Or
> >> is this simply coincidence?
> >
> > I have been watching the demonstration on these pages:
> > http://dougengelbart.org/content/view/216/000/#Augment
> >
> > and videos by Christina Engelbart,
> > https://www.youtube.com/watch?list=PLCGFadV4FqU15vunAfsTDzeEPnHDaf7n0=STRuciV6L38
> >
> > Org mode look similar to that Augment browser, definitely. With
> > differences. But it looks as nice information management system.
> >
> > It would be good that Org mode gets some kind of buttons follow the
> > mouse feature upon turning it on, just as shown on this video:
> > https://vimeo.com/81238285
> >
> 
> I think (require 'org-mouse) provides lots of mouse support for
> opening/closing outlines, checking/unchecking checkboxes, etc.

I have tried it, but it does not turn on at all times. Documentation
is vague. It is unclear how should it turn on.

Jean



Re: [O] Bug: Description of org agenda columns format in manual not correct/misleading

2019-08-14 Thread Andrew Francis Swann
Yes, but the documentation says to use that variable, but the variable's own 
documentation says it should not be used.  What I am reporting is a 
documentation bug.

-- 
Andrew Swann | Associate Professor | Tel +45 871 55767 | sw...@math.au.dk | 
http://home.math.au.dk/swann/ | Department of Mathematics, Aarhus University, 
Ny Munkegade 118, Bldg 1530, DK-8000 Aarhus C, Denmark | Dept +45 871 5 | 
Fax +45 8613 1769
 

-Original Message-
From: "Fraga, Eric" 
Date: Wednesday, 14 August 2019 at 12:44
To: Andrew Francis Swann 
Subject: Re: [O] Bug: Description of org agenda columns format in manual not 
correct/misleading

On Wednesday, 14 Aug 2019 at 10:37, Andrew Francis Swann wrote:
> Thank you, but that variable is now obseleted and points to
> org-overriding-columns-format whose documatiton says it should not be
> used.  From the documentation of the variable

Interesting.  My org-overriding-columns-format has the same value so I
guess the string I gave you should work for that variable?

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d




Re: [O] FW: Bug: Description of org agenda columns format in manual not correct/misleading

2019-08-14 Thread Fraga, Eric


I'll copy my response to the list as well!  Didn't notice the list was
not copied.


On Wednesday, 14 Aug 2019 at 10:37, Andrew Francis Swann wrote:
> Thank you, but that variable is now obseleted and points to
> org-overriding-columns-format whose documatiton says it should not be
> used.  From the documentation of the variable

Interesting.  My org-overriding-columns-format has the same value so I
guess the string I gave you should work for that variable?

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d



[O] FW: Bug: Description of org agenda columns format in manual not correct/misleading

2019-08-14 Thread Andrew Francis Swann


-- 
Andrew Swann | Associate Professor | Tel +45 871 55767 | sw...@math.au.dk | 
http://home.math.au.dk/swann/ | Department of Mathematics, Aarhus University, 
Ny Munkegade 118, Bldg 1530, DK-8000 Aarhus C, Denmark | Dept +45 871 5 | 
Fax +45 8613 1769
 

-Original Message-
From: Andrew Francis Swann 
Date: Wednesday, 14 August 2019 at 12:37
To: "Fraga, Eric" 
Subject: Re: [O] Bug: Description of org agenda columns format in manual not 
correct/misleading

Thank you,  but that variable is now obseleted and points to 
org-overriding-columns-format whose documatiton says it should not be used.  
From the documentation of the variable

org-agenda-overriding-columns-format is a variable defined in 
‘org-compat.el’.
Its value is nil

  This variable is an alias for ‘org-overriding-columns-format’.
  This variable is obsolete since Org 9.2.2;
  use ‘org-overriding-columns-format’ instead.

Documentation:
When set, overrides any other format definition for the agenda.
Don’t set this, this is meant for dynamic scoping.  Set
‘org-local-columns-format’ instead.

-- 
Andrew Swann | Associate Professor | Tel +45 871 55767 | sw...@math.au.dk | 
http://home.math.au.dk/swann/ | Department of Mathematics, Aarhus University, 
Ny Munkegade 118, Bldg 1530, DK-8000 Aarhus C, Denmark | Dept +45 871 5 | 
Fax +45 8613 1769
 

-Original Message-
From: "Fraga, Eric" 
Date: Wednesday, 14 August 2019 at 12:33
To: Andrew Francis Swann 
Cc: Org mode 
Subject: Re: [O] Bug: Description of org agenda columns format in manual 
not correct/misleading

I have this setting in my Emacs initialization:

(setq org-agenda-overriding-columns-format "%5TODO %TIMESTAMP %40ITEM 
%LOCATION %TAGS")

HTH,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d






Re: [O] Bug: Description of org agenda columns format in manual not correct/misleading

2019-08-14 Thread Fraga, Eric
I have this setting in my Emacs initialization:

(setq org-agenda-overriding-columns-format "%5TODO %TIMESTAMP %40ITEM %LOCATION 
%TAGS")

HTH,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d



[O] Bug: Description of org agenda columns format in manual not correct/misleading

2019-08-14 Thread Andrew Francis Swann
I am trying to work out how to specify the column view from the standard 
org-agenda-list command.  The manual is confusing me, and I can see some of the 
variables have changed in commit cc020dbe4d .  The documentation only seems to 
partially address this and does not fit with the documentation of the variables 
themselves.  Please see below for more details.

This manual is for Org version 9.2.
Emacs  : GNU Emacs 26.2 (build 1, x86_64-apple-darwin18.5.0, Carbon Version 158 
AppKit 1671.4)
 of 2019-04-14
Package: Org mode version 9.2.5 (9.2.5-1-gff6508-elpaplus @ 
/Users/au5316/.emacs.d/elpa/org-plus-contrib-20190812/)

In the info pages under Agenda Views > Agenda Column View point 1. says

  1. Org needs to make a decision which columns format to use.  Since
 the entries in the agenda are collected from different files, and
 different files may have different columns formats, this is a
 non-trivial problem.  Org first checks if the variable
 ‘org-overriding-columns-format’ is currently set, and if so, takes
 the format from there.  Otherwise it takes the format associated
 with the first item in the agenda, or, if that item does not have a
 specific format (defined in a property, or in its file), it uses
 ‘org-columns-default-format’.

However, it does not say how to set org-overriding-columns-format.The 
documentation for this variable gives

When set, overrides any other format definition for the agenda.
Don’t set this, this is meant for dynamic scoping.  Set
‘org-local-columns-format’ instead.

and the documentation for org-local-columns-format says

When set, overrides any other format definition for the agenda.
This can be set as a buffer local value to avoid interfering with
dynamic scoping for ‘org-overriding-columns-format’.

-- 
Andrew Swann | Associate Professor | Tel +45 871 55767 | sw...@math.au.dk | 
http://home.math.au.dk/swann/ | Department of Mathematics, Aarhus University, 
Ny Munkegade 118, Bldg 1530, DK-8000 Aarhus C, Denmark | Dept +45 871 5 | 
Fax +45 8613 1769