Re: [O] Release Org 9.2.3

2019-04-02 Thread Samuel Wales
thank you!

[i am still using 2 releases ago because i can't make an mwe for
capture gratuitously inserting blank lines.  but still.]



Re: [O] [ANN] Changes to link syntax

2019-04-02 Thread Nicolas Goaziou
Hello,

stardiviner  writes:

> I found a simple and better solution to replace those. I use =rg (ripgrep)= to
> search you mentioned escape characters "%20 %25 %5B %5D". I then use =wgrep= 
> on
> results. I spend pretty long time to processing all links. There are about 
> 4
> links matched. And about 2 links processed. Still there are some links
> matched but not process (or ignored) by your upper function.
>
> Here I picked some typical cases:
>
> #+begin_src org
> [[file:~/Org/Wiki/Computer%20Technology/Softwares/%E9%9A%8F%E6%89%8B%E8%AE%B0.org::*Export%20through%20Web%20client][Export
>  through Web client]]
>
> - [ ] 
> [[file:Data/Books/%E7%89%9B%E6%B4%A5%E9%80%9A%E8%AF%86%E8%AF%BB%E6%9C%AC:%20%E7%A7%91%E5%AD%A6%E5%93%B2%E5%AD%A6.azw3][牛津通识读本:
>  科学哲学 (azw3)]] -- by 萨米尔·奥卡沙
>
> [[file:~/Org/Wiki/Computer%20Technology/Programming/Data%20Structure/Data/Books/%E5%A4%A7%E8%AF%9D%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84.pdf::%25PDF-1.4][数据结构起源
>  -- 《大话数据结构》]]
>
> [[file:~/Org/Wiki/Computer Technology/Programming/Emacs/Data/Emacs 
> Packages/Org mode/Org mode.org::*Write Online Book of Programming Data 
> Structures and Algorithms][Write Online Book of Programming Data Structures 
> and Algorithms]]
>
> - 
> [[file:Data/Videos/%E8%B5%8C%E5%8D%9A%E9%BB%98%E7%A4%BA%E5%BD%95/%5B%E8%B5%8C%E5%8D%9A%E9%BB%98%E7%A4%BA%E5%BD%95%5D%20Ultimate_Survivor_Kaiji%20-%2015.rmvb][Ultimate
>  Survivor Kaiji 15]]
> #+end_src

I added a less conservative function in ORG-NEWS. You may want to try
it.

Regards,

-- 
Nicolas Goaziou



Re: [O] [ISSUE] links navigation not consistent behavior

2019-04-02 Thread Nicolas Goaziou
Hello,

stardiviner  writes:

> For example, I have following Org content:
>
> #+begin_src org
> ,*** TODO Figwheel [0/1]
>
> - [ ] https://www.youtube.com/watch?v=yUTxm29fjT4 :: I built a
>   Figwheel-inspired, hot code reloading experience for Clojure, with an eye
>   towards #datascience hacking.
>
> ,*** TODO Docker ClojureScript [0/3]
>
> - [ ] https://www.youtube.com/watch?v=yUTxm29fjT4
> #+end_src
>
> When my point at beginning of buffer, then press {{{kbd(C-c C-x C-n)}}} , it 
> does not
> jump to first link, it jump to second link instead. But when I jump backwards
> with {{{kbd(C-c C-x C-p)}}} works fine.

I rewrote this functions some weeks ago. Please try again on master.

Regards,

-- 
Nicolas Goaziou



Re: [O] Regresssion in org-capture?

2019-04-02 Thread Nicolas Goaziou
Hello,

Roland Everaert  writes:

> Since a few weeks, the following template didn't work anymore.
>
> (setq org-capture-templates
>   `(("b" "Add url to bookmarks DB" entry (file+headline 
> "~/org/private/bookmarks.org" "URLs")
>   "** %i\n" :immediate-finish t))
>   )
>
> Anytime I execute it I got this error:
>
> org-capture: Capture template ‘b’: Template is not a valid Org entry
> or tree

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Python source block and :dir header arg

2019-04-02 Thread John Kitchin
That looks different than what I see in org 9.2.1, if it has changed
then it might be a bug indeed.

What I see is:

(default-directory
   (or (and dir (file-name-as-directory (expand-file-name dir)))
   default-directory))


I think :mkdirp is only for tangling files, so I wouldn't expect it to
affect this, unless its use has been expanded. Even if it has been
expanded, if the directory exists, it should work fine, but if it
doesn't exist, and :mkdirp is nil or no, then it should fail. If it is
non-nil then the directory should be made I guess.

Joao Cortes  writes:

> Looking at org-babel-execute-src-block, It seems the only way to get the
> the intended behavihour is adding :mkdirp "yes" or some other
> value that gives a true value to the result of the =and= call in the
> following snippet.
>
> This is the relevant code at ob-core.el, starting at line 681.
> #+begin_src emacs-lisp :line yes
>(default-directory
>  (or (and dir
>   (not (member mkdirp '("no" "nil" nil)))
>   (progn
> (let ((d (file-name-as-directory
>   (expand-file-name dir
>   (make-directory d 'parents)
>   d)))
>  default-directory))
> #+end_src
>
> This looks like a bug. If the :dir directory already
> exists, the :mkdirp parameter should not stop setting the default
> directory to :dir


--
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



[O] Regresssion in org-capture?

2019-04-02 Thread Roland Everaert
Hi,

Since a few weeks, the following template didn't work anymore.

(setq org-capture-templates
  `(("b" "Add url to bookmarks DB" entry (file+headline 
"~/org/private/bookmarks.org" "URLs")
"** %i\n" :immediate-finish t))
  )

Anytime I execute it I got this error:

org-capture: Capture template ‘b’: Template is not a valid Org entry or tree

Org-mode and Emacs version

Org mode version 9.2.3 (9.2.3-elpa @ /home/roland/.emacs.d/elpa/org-20190402/)
GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 
2018-06-26


Minimal configuration I have used to reproduce the problem:

(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/;) t)

(package-initialize);; Initialize & Install Package

; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(use-package org
   :ensure org-plus-contrib
   :pin org
   :mode (("\\.org$" . org-mode)
  ("\\.org_archive$" . org-mode))
   :bind (("C-c l" . org-store-link)
  ("C-c b" . org-iswitchb)
  ("C-c c" . org-capture))
  )

(setq org-capture-templates
  `(("b" "Add url to bookmarks DB" entry (file+headline 
"~/org/private/bookmarks.org" "URLs")
"** %i\n" :immediate-finish t))
  )

Does anything has changed in the syntax of org-capture-templates?

Regards,

Roland Everaert.
-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] orgalist-mode: wrong indentation in message mode after recent change in emacs

2019-04-02 Thread Stefan Monnier
> Now that add-function sets indent-line-function to a custom closure,
> however, (advice--cd*r indent-line-function) no longer returns
> indent-relative and the workaround breaks.

I think this qualifies as a problem in nadvice: the ad-hoc closure
introduced to "redirect to the default-value" should be handled by
advice--cd*r (or rather by some new function which can then be used
instead of advice--cd*r).


Stefan



Re: [O] Smart archiving of subtrees with parent headlines

2019-04-02 Thread Ken Mankoff
I'm not an advanced lisper so I hate to say "this seems like it should be
easy" - it isn't for me. But while playing around with the default archive
behavior (C-c C-x C-a OR C-c C-x C-s?), I notice that ":ARCHIVE_OLPATH:
Testing/SomeTest Archive Project" is include in the archived item. So Org
appears to know where the item should go (if not at the top level). It
seems like it should be easy to either a) put it in the right place when
archiving, b) put it in the right place at some later point in time or c)
perform a search on the archive file that at least limits the results to a
tree or subtree. I can do the last one!

  -k.


On Fri, Mar 29, 2019 at 8:18 AM Ken Mankoff  wrote:

>
> On 2019-03-29 at 03:23 +0100, Mark Edgington  wrote...
> > But it sounds like you're saying that it won't work with the latest
> > git versions?
>
> elpa, not git. But yes, this code is expecting and calling functions no
> longer in the core code.
>
>   -k.
>
>


[O] Release Org 9.2.3

2019-04-02 Thread Bastien
Hi all,

Org 9.2.3, a bugfix release, is out.  Enjoy!

https://orgmode.org

-- 
 Bastien