From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Hlavaty Subject: Bug: minor issue with C-c C-c on babel block [7.4 (release_7.4.25.geb0d)] Date: Wed, 15 Dec 2010 09:08:46 +0100 Message-ID: <8762uv1mr5.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37136 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSmQ0-0004Cy-FH for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 03:09:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSmPy-0007KO-TO for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 03:09:00 -0500 Received: from [212.110.171.227] (port=36173 helo=brahms.logand.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSmPy-0007K7-LJ for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 03:08:58 -0500 Received: from tom by brahms.logand.com with local (Exim 4.69) (envelope-from ) id 1PSmPT-0000ns-Te for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 08:08:28 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, If I move cursor to <> line in the Balance section and press C-c C-c, an extra empty line is appended behind the result. By pressing C-c C-c multiple times, multiple empty lines are inserted. Only seems to be an issue with the <<>> label, C-c C-c on the first babel block does behave fine, i.e. it doesn't insert extra new lines. The org file is at the end of this email. Thank you, Tomas Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Emacs : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on crested, modified by Debian Package: Org-mode version 7.4 (release_7.4.25.geb0d) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-log-done t org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-co= mmand-hook) org-agenda-files ... org-babel-load-languages '((ledger . t)) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) org-export-html-title-format "" org-publish-use-timestamps-flag nil org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-comman= d-maybe org-babel-hide-result-toggle-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file "~/org/notes.org" org-export-docbook-xslt-proc-command "xsltproc -o '%s' '%s'" org-export-html-toplevel-hlevel 1 org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-project-alist ... org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link= -modifiers) org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local)) ) #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-resu= lt-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-= maybe) org-return-follows-link t org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-sele= ct-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) ) =3D=3D=3D the org file starts here #+options: creator:nil author:nil minor issue with C-c C-c on babel block * Bug If I move cursor to =3D<>=3D line in the Balance section and press =3DC-c C-c=3D, an extra empty line is appended behind the result. By pressing =3DC-c C-c=3D multiple times, multiple empty lines are inserted. * Summary #+srcname: allinone #+begin_src ledger :exports results 2010/01/01 * Starting balance assets:bank:savings =C2=A31300.00 income:starting balances 2010/07/22 * Got paid assets:bank:chequing =C2=A31000.00 income:salary 2010/07/23 Rent expenses:rent =C2=A3500.00 assets:bank:chequing 2010/07/24 Food expenses:food =C2=A3150.00 assets:bank:chequing 2010/07/31 * Interest on bank savings assets:bank:savings =C2=A33.53 income:interest 2010/07/31 * Transfer savings assets:bank:savings =C2=A3250.00 assets:bank:chequing 2010/08/01 got paid again assets:bank:chequing =C2=A31000.00 income:salary #+end_src #+results: allinone : =C2=A32653.53 assets : =C2=A3650.00 expenses : =C2=A3-3303.53 income * Balance #+srcname: balance #+begin_src ledger :cmdline -s bal :noweb yes :exports results <> #+end_src #+results: balance #+begin_example =C2=A32653.53 assets:bank =C2=A31100.00 chequing =C2=A31553.53 savings =C2=A3650.00 expenses =C2=A3150.00 food =C2=A3500.00 rent =C2=A3-3303.53 income =C2=A3-3.53 interest =C2=A3-2000.00 salary =C2=A3-1300.00 starting balances #+end_example * Monthly register etc.