[O] Problem with completion and case in tag search

2018-05-23 Thread Alain . Cochard

Hello.

I run 

   emacs -Q -l ~/tmp/scr.emacs 

The file ~/tmp/scr.emacs contains

   (add-to-list 'load-path "~/.emacs.d/elpa/org-20180521/")
   (setq org-agenda-files '("~/tmp/bug-agenda.org"))
   (global-set-key "\C-ca" 'org-agenda)
   (find-file "~/tmp/bug-agenda2.org") ;; <- empty file

The file ~/tmp/bug-agenda.org contains

   * foo :bar:baR:Bar:BAR:

When in the empty document ~/tmp/bug-agenda2.org,

if I type

   C-a m 

it gives "BAR" in the minibuffer.

If I type

   C-a m B

it also gives "BAR".

If I type

   C-a m b

it gives "baR".

Is it normal?  Am I doing something wrong?  Thank you.  Regards.


Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version
3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package:
Org mode version 9.1.13 (9.1.13-elpa @
/home/cochard/.emacs.d/elpa/org-20180521/)
 

-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France| Fax:   +33 (0)3 68 85 01 25 



Re: [O] General advice beyond Org

2018-05-23 Thread edgar
For posterity: I have answered to the messages on this thread elsewhere. 
Thanks!


-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  



[O] ANN/RFC: org-sidebar

2018-05-23 Thread Adam Porter
Hi all,

Inspired by a post on Reddit, which was inspired by the Organized plugin
for the Atom editor, I came up with this:

https://github.com/alphapapa/org-sidebar

This package presents a helpful sidebar view for Org buffers.  At the top
is a chronological list of scheduled and deadlined tasks in the current
buffer, and below that is a list of all other non-done to-do items.  If
the buffer is narrowed, the sidebar only shows items in the narrowed
portion; this allows seeing an overview of tasks in a subtree.

It's in an early stage of development, but I think it may be useful.
Any feedback would be appreciated.




Re: [O] Bug: Bug in handling of named fields in the org spreadsheet [9.1.13 (release_9.1.13)]

2018-05-23 Thread Piyush Srivastava

Thank you.  I will get back to creating the patch this weekend and will
include your suggested change.

Best regards,
-- Piyush.



Nicolas Goaziou writes:

> Hello,
>
> Piyush Srivastava  writes:
>
>> In the current org mode version (release_9.1.13), when a named cell
>> formula is stored using C-u C-c =, the #+TBLFM line stores the name of
>> the cell *without* a prefix $ sign, as in the following table (notice
>> that in the #+TBLFM row, there is no $ sign before the 'sum' variable):
>>
>> |   |   c |
>> |---+-|
>> |   |   3 |
>> |   |  10 |
>> |---+-|
>> | # |  14 |
>> | ^ | sum |
>> |---+-|
>>
>> #+TBLFM: sum=vsum(@-II$0..@-I$0)
>>
>>
>> With this convention, pressing TAB in the row after making a change in
>> the table does not update the field referred to by $sum, contrary to
>> what is said in the manual.
>>
>>
>> However, if I manually add a prefix $ to the variable sum in the #+TBLFM
>> row (as in the table below), then TAB update work as described in the
>> manual (notice the $sum variable in the #+TBLFM row):
>>
>>
>> |   |   c |
>> |---+-|
>> |   |   3 |
>> |   |  12 |
>> |---+-|
>> | # |  15 |
>> | ^ | sum |
>> |---+-|
>>
>> #+TBLFM: $sum=vsum(@-II$0..@-I$0)
>>
>>
>> A fix is to ensure that if the LHS of a field formula being inserted is
>> a field name rather than a numerical reference, then a '$' should be
>> prefixed to it.  I have the following patch that implements this:
>>
>>
>> diff --git a/lisp/org-table.el b/lisp/org-table.el
>> --- a/lisp/org-table.el
>> +++ b/lisp/org-table.el
>> @@ -2301,7 +2301,13 @@ LOCATION instead."
>> (org-indent-line)
>> (insert (or (match-string 2) "#+TBLFM:")))
>>(insert " "
>> - (mapconcat (lambda (x) (concat (car x) "=" (cdr x)))
>> + (mapconcat (lambda (x)
>> +  (let* ((name (car x))
>> + (first (substring-no-properties name 0 1))
>> + (test (or (string= first "@") (string= 
>> first "$")))
>> + )
>> +(concat (if test name (concat "$" name))
>> +"=" (cdr x
>>  (sort alist #'org-table-formula-less-p)
>>  "::")
>>   "\n"
>
> You're right.
>
> I suggest the following, though:
>
>   (mapconcat (lambda (x)
>  (pcase-let ((`(,lhs . ,rhs) x))
>(format "%s=%s"
>(if (string-match-p "\\`[$@]" lhs) lhs
>  ;; Named fields are stored
>  ;; without the "$" prefix.
>  (concat "$" lhs))
>rhs)))
>(sort alist #'org-table-formula-less-p)
>"::")
>
>> I am happy to assign copyright for the patch, if that is needed and if
>> the patch if found suitable, for it to be included in org-mode code.
>
> This is not needed because this patch is a TINYCHANGE. However, starting
> the copyright assignment process is still valuable if you intend to
> provide more patches.
>
> In any case, would you mind providing a patch incorporating the changes
> above with a proper commit message? Also, it might be interesting to add
> a test for it in "test-org-table.el".
>
> Thank you.
>
> Regards,