From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Bug: minor issue with C-c C-c on babel block [7.4 (release_7.4.25.geb0d)] Date: Wed, 15 Dec 2010 09:59:53 -0700 Message-ID: <87zks7kl16.fsf@gmail.com> References: <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=47909 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSv4a-0007Ou-6T for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 12:23:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSv4Y-0005Ck-Rz for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 12:23:28 -0500 Received: from mail-gx0-f180.google.com ([209.85.161.180]:64778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSv4Y-0005Cf-Ly for emacs-orgmode@gnu.org; Wed, 15 Dec 2010 12:23:26 -0500 Received: by gxk19 with SMTP id 19so1526382gxk.39 for ; Wed, 15 Dec 2010 09:23:26 -0800 (PST) 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: Tomas Hlavaty Cc: emacs-orgmode@gnu.org Hi Tomas, I have just pushed up a fix for this issue. Thanks -- Eric Tomas Hlavaty writes: > 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-= command-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-comm= and-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-li= nk-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-re= sult-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-safel= y-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-se= lect-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 1300.00 > income:starting balances > 2010/07/22 * Got paid > assets:bank:chequing 1000.00 > income:salary > 2010/07/23 Rent > expenses:rent 500.00 > assets:bank:chequing > 2010/07/24 Food > expenses:food 150.00 > assets:bank:chequing > 2010/07/31 * Interest on bank savings > assets:bank:savings 3.53 > income:interest > 2010/07/31 * Transfer savings > assets:bank:savings 250.00 > assets:bank:chequing > 2010/08/01 got paid again > assets:bank:chequing 1000.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 > 2653.53 assets:bank > 1100.00 chequing > 1553.53 savings > 650.00 expenses > 150.00 food > 500.00 rent > -3303.53 income > -3.53 interest > -2000.00 salary > -1300.00 starting balances > #+end_example > > > * Monthly register > > etc. > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode