From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gustavo Barros Subject: 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/)] Date: Wed, 17 Jul 2019 16:36:12 -0300 Message-ID: <87v9w0fo7n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50603) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnpit-0001G4-Of for emacs-orgmode@gnu.org; Wed, 17 Jul 2019 15:36:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnpis-00080A-DV for emacs-orgmode@gnu.org; Wed, 17 Jul 2019 15:36:19 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:38953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnpis-0007zR-8Y for emacs-orgmode@gnu.org; Wed, 17 Jul 2019 15:36:18 -0400 Received: by mail-qt1-x831.google.com with SMTP id l9so24611559qtu.6 for ; Wed, 17 Jul 2019 12:36:17 -0700 (PDT) Received: from ufjf-desktop ([2001:12f0:614:16fa:b55e:9ca6:269b:31f9]) by smtp.gmail.com with ESMTPSA id z8sm10906731qki.23.2019.07.17.12.36.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jul 2019 12:36:15 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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=E2=80=99m not really sure this is technically unexpected. But it is certa= inly 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 =3Demacs -Q=3D, 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 =3DM-x org-capture RET t=3D. Once ther= e,=20 write something for the heading if you like, like "test", but try to schedule this captured item with =3DC-c C-s=3D. Hit return for today=E2=80=99s date and n= ote that the scheduling information is not visible in the capture buffer (it is present = in "notes.org", of course). Note that I use =3D:empty-lines 1=3D in the capture template, so technicall= y 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 (wit= h, "** TODO %?\n"), for it is ignored, unless there is some content after it. Again, I=E2=80=99m 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 @=20 /home/gustavo/.emacs.d/elpa/org-plus-contrib-20190715/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (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=20 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-lin= es 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) ) )