emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)]
@ 2019-07-17 19:36 Gustavo Barros
  2020-02-04  8:07 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Gustavo Barros @ 2019-07-17 19:36 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

When using a single line capture template for an entry, the indirect buffer
where the capture editing occurs restrains itself to that single line. As a
consequence, scheduling during capture is not visible in the capture buffer.

I’m not really sure this is technically unexpected. But it is certainly
inconvenient. In case it is expected behavior though, if anyone has any
thoughts on how to circumvent it, it would be appreciated.

Steps to reproduce:

Start =emacs -Q=, and eval for basic setup:

#+begin_src emacs-lisp
(package-initialize)

(setq org-capture-templates
  '(("t" "TODO entry" entry
     (file+headline "~/org/notes.org" "Capture")
     "** TODO %?"
     :empty-lines 1)))
#+end_src

Where file "~/org/notes.org" has the following contents:

#+begin_src org
,* Previous heading

,* Capture

,* Following heading

#+end_src

Now capture a "TODO entry" task with =M-x org-capture RET t=. Once there, 
write
something for the heading if you like, like "test", but try to schedule this
captured item with =C-c C-s=. Hit return for today’s date and note that the
scheduling information is not visible in the capture buffer (it is present in
"notes.org", of course).

Note that I use =:empty-lines 1= in the capture template, so technically there
is a line following the heading in the file (if you visit "notes.org" in
another window/frame along the capture process, you will see that this is
indeed the case). I also cannot add a newline manually in the template (with,
"** TODO %?\n"), for it is ignored, unless there is some content after it.

Again, I’m not sure if this is technically unexpected behavior, but I thought
it worth reporting. And, in case it is as it should be, just let me know.

Best regards,
Gustavo Barros.




Emacs  : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-04-22
Package: Org mode version 9.2.4 (9.2.4-10-g3b006f-elpaplus @ 
/home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
		     org-src-mode-configure-edit-buffer)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
		   [add-hook change-major-mode-hook org-show-all append local]
		   5]
		 #[0 "\300\301\302\303\304$\207"
		   [add-hook change-major-mode-hook org-babel-show-result-all
		    append local]
		   5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes
		 org-eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
 ENTRY)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
		      org-babel-header-arg-expand)
 org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php)
		      ("C" . c) ("C++" . c++) ("asymptote" . asy)
		      ("bash" . sh) ("beamer" . latex) ("calc" . fundamental)
		      ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental)
		      ("elisp" . emacs-lisp) ("ocaml" . tuareg)
		      ("screen" . shell-script) ("shell" . sh)
		      ("sqlite" . sql))
 org-occur-hook '(org-first-headline-recenter)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
			  org-babel-speed-command-activate)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("id" :follow org-id-open)
		       ("eww" :follow eww :store org-eww-store-link)
		       ("rmail" :follow org-rmail-open :store
			org-rmail-store-link)
		       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
		       ("irc" :follow org-irc-visit :store org-irc-store-link
			:export org-irc-export)
		       ("info" :follow org-info-open :export org-info-export
			:store org-info-store-link)
		       ("gnus" :follow org-gnus-open :store
			org-gnus-store-link)
		       ("docview" :follow org-docview-open :export
			org-docview-export :store org-docview-store-link)
		       ("bibtex" :follow org-bibtex-open :store
			org-bibtex-store-link)
		       ("bbdb" :follow org-bbdb-open :export org-bbdb-export
			:complete org-bbdb-complete-link :store
			org-bbdb-store-link)
		       ("w3m" :store org-w3m-store-link) ("file+sys")
		       ("file+emacs")
		       ("elfeed" :follow elfeed-link-open :store
			elfeed-link-store-link)
		       ("doi" :follow org--open-doi-link)
		       ("elisp" :follow org--open-elisp-link)
		       ("file" :complete org-file-complete-link)
		       ("ftp" :follow
			(lambda (path) (browse-url (concat "ftp:" path))))
		       ("help" :follow org--open-help-link)
		       ("http" :follow
			(lambda (path) (browse-url (concat "http:" path))))
		       ("https" :follow
			(lambda (path) (browse-url (concat "https:" path))))
		       ("mailto" :follow
			(lambda (path) (browse-url (concat "mailto:" path))))
		       ("news" :follow
			(lambda (path) (browse-url (concat "news:" path))))
		       ("shell" :follow org--open-shell-link))
 org-capture-templates '(("t" "TODO entry" entry
			  (file+headline "~/org/notes.org" "Capture")
			  "** TODO %?" :empty-lines 1)
			 )
 )

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)]
  2019-07-17 19:36 Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)] Gustavo Barros
@ 2020-02-04  8:07 ` Bastien
  2020-02-04 11:28   ` Gustavo Barros
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2020-02-04  8:07 UTC (permalink / raw)
  To: Gustavo Barros; +Cc: emacs-orgmode

Hi Gustavo,

Gustavo Barros <gusbrs.2016@gmail.com> writes:

> When using a single line capture template for an entry, the indirect buffer
> where the capture editing occurs restrains itself to that single line. As a
> consequence, scheduling during capture is not visible in the capture
> buffer.

I cannot reproduce this issue with latest stable Org and emacs -q.

Can you check and report if this still needs a fix?

Thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)]
  2020-02-04  8:07 ` Bastien
@ 2020-02-04 11:28   ` Gustavo Barros
  2020-02-04 16:06     ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Gustavo Barros @ 2020-02-04 11:28 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi Bastien,

thanks for looking into this.

On Tue, Feb 04 2020, Bastien wrote:

> I cannot reproduce this issue with latest stable Org and emacs -q.
>
> Can you check and report if this still needs a fix?

Yes, I can still reproduce this as described in the original report with 
current version (Org mode version 9.3.2 (9.3.2-24-g5c72d6-elpaplus @ 
/home/gustavo/.emacs.d/elpa/org-plus-contrib-20200203/)).

As the recipe for the ECM starts with "emacs -Q", I don't know what else 
I could isolate in my environment.

One possibility I can think of. It's been some time since I reported, 
but if I recall correctly, the existence of a headline *after* the one 
in which the capture is being placed was critical to the 
effect. Rereading the report, it is there in the ECM, but I haven't 
emphasized this in the analysis. Did you try the recipe with that file 
structure?

But anyway, if you have any other ideas, I'm at your disposal to try 
things out and try to pin this further down.

Best,
Gustavo.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)]
  2020-02-04 11:28   ` Gustavo Barros
@ 2020-02-04 16:06     ` Bastien
  2020-02-05 11:06       ` Gustavo Barros
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2020-02-04 16:06 UTC (permalink / raw)
  To: Gustavo Barros; +Cc: emacs-orgmode

Hi Gustavo,

Gustavo Barros <gusbrs.2016@gmail.com> writes:

> thanks for looking into this.

I managed to reproduce this bug, it is fixed in maint now.

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)]
  2020-02-04 16:06     ` Bastien
@ 2020-02-05 11:06       ` Gustavo Barros
  2020-02-05 12:30         ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Gustavo Barros @ 2020-02-05 11:06 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi Bastien,

On Tue, Feb 04 2020, Bastien wrote:

> I managed to reproduce this bug, it is fixed in maint now.

I can report this issue is gone with the update to Org 9.3.3.
Thank you very much!

Best,
Gustavo.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)]
  2020-02-05 11:06       ` Gustavo Barros
@ 2020-02-05 12:30         ` Bastien
  0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2020-02-05 12:30 UTC (permalink / raw)
  To: Gustavo Barros; +Cc: emacs-orgmode

Hi Gustavo,

Gustavo Barros <gusbrs.2016@gmail.com> writes:

>> I managed to reproduce this bug, it is fixed in maint now.
>
> I can report this issue is gone with the update to Org 9.3.3.
> Thank you very much!

Thanks for confirming, best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-05 12:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 19:36 Bug: Scheduling capture with a single line capture template [9.2.4 (9.2.4-10-g3b006f-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/)] Gustavo Barros
2020-02-04  8:07 ` Bastien
2020-02-04 11:28   ` Gustavo Barros
2020-02-04 16:06     ` Bastien
2020-02-05 11:06       ` Gustavo Barros
2020-02-05 12:30         ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).