Просмотр исходного кода

org-agenda.el (org-agenda-skip): Skip information retrieved from a source block

* org-agenda.el (org-agenda-skip): Skip information retrieved
from a source block.

Thanks to Sébastien Vauban for pointing at this.
Bastien Guerry 13 лет назад
Родитель
Сommit
6634a30772
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      lisp/org-agenda.el

+ 1 - 0
lisp/org-agenda.el

@@ -3552,6 +3552,7 @@ A good way to set it is through options in `org-agenda-custom-commands'.")
 Also moves point to the end of the skipped region, so that search can
 Also moves point to the end of the skipped region, so that search can
 continue from there."
 continue from there."
   (let ((p (point-at-bol)) to)
   (let ((p (point-at-bol)) to)
+    (when (org-in-src-block-p) (throw :skip t))
     (and org-agenda-skip-archived-trees (not org-agenda-archives-mode)
     (and org-agenda-skip-archived-trees (not org-agenda-archives-mode)
 	 (get-text-property p :org-archived)
 	 (get-text-property p :org-archived)
 	 (org-end-of-subtree t)
 	 (org-end-of-subtree t)