From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Gillespie Subject: Re: Bug or not a bug? dot expansion in ob-shell Date: Sat, 29 Feb 2020 21:07:49 -0800 Message-ID: References: <87eeur3p1p.fsf@ucl.ac.uk> <87a75eap8k.fsf@gnu.org> <87y2sy3kkl.fsf@ucl.ac.uk> <87r1yq4xiz.fsf@gnu.org> <875zg2kcy0.fsf@ucl.ac.uk> <87h7zmiw0v.fsf@gmail.com> <871rqqag19.fsf@bzg.fr> <87wo8iitzz.fsf@ucl.ac.uk> <87ftf63d79.fsf@gnu.org> <87pnear7tl.fsf@ucl.ac.uk> <87v9o236v1.fsf@gnu.org> <8736b66z6t.fsf@gnu.org> <877e0h571l.fsf@alphaville.usersys.redhat.com> <878skwbc3g.fsf@bzg.fr> <8736b36492.fsf@alphaville.usersys.redhat.com> <87imjyoi99.fsf@gnu.org> <87y2slqudr.fsf@gmail.com> <87y2sltnas.fsf@gmail.com> <87d09wd8c5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60763) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8Gpi-0007IA-Kj for emacs-orgmode@gnu.org; Sun, 01 Mar 2020 00:08:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8Gph-0006W6-6e for emacs-orgmode@gnu.org; Sun, 01 Mar 2020 00:08:06 -0500 In-Reply-To: <87d09wd8c5.fsf@gmail.com> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Jack Kamm Cc: Bastien , Nick Dokos , emacs-orgmode@gnu.org Hi Jack, As with many things in emacs, I sometimes feel like I'm loosing my mind, or loosing track of just exactly what variables are set or not set, but I could swear that for at least the past year when running #+begin_src bash blocks with C-c C-c and no :results header set the results are the stdout. This is also true for sh and shell language options. Maybe that was a recent change, but I just tested with emacs -q and (org-version) -> 9.1.9 and am getting stdout (as seen below). I have included the results of org-submit-bug-report for reference. Best, Tom #+begin_src bash pip install --user pudb #+end_src #+RESULTS: | Requirement | already | satisfied: | pudb | in | /usr/lib/python3.7/site-packages | (2018.1) | | | | Requirement | already | satisfied: | urwid>=1.1.1 | in | /usr/lib/python3.7/site-packages | (from | pudb) | (2.1.0) | | Requirement | already | satisfied: | pygments>=1.0 | in | /usr/lib/python3.7/site-packages | (from | pudb) | (2.5.2) | Subject: Bug: test [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)] Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2019-10-09 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-odt-format-headline-function 'org-odt-format-headline-default-function org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-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-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] 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-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 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-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("id" :follow org-id-open) ("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) ("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") ("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-latex-format-headline-function 'org-latex-format-headline-default-function org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-html-format-headline-function 'org-html-format-headline-default-function ) On Sat, Feb 29, 2020 at 8:11 PM Jack Kamm wrote: > > Hi Tom, > > Tom Gillespie writes: > > > First a disclosure, I would be very unhappy if option 1 were selected, > > it would require me to make a whole bunch of changes and try to find > > an option to revert to the current default behavior. > > Wasn't option 1 already the default behavior, until the changes made > earlier this month due to this thread? That is the behavior I get when I > check out earlier commits, or maint. > > > The principle is that block defaults for results should default to the > > value that the language itself makes the most accessible. > > I agree that this would be a good principle. > > My understanding is that in 9.3 and earlier, the default was generally > ":results value", but now due to this thread we are adding an exception > for ob-shell. > > It sounds like after 9.4 is released, there will be a general survey of > how org-babel behaves across languages, after which there will be a > discussion of sensible default behavior.