emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: completion-at-point wrongly called within shell code block [9.4 (9.4-17-g9a6689-elpaplus @ /Users/uSukhavati/.emacs.d/elpa/org-plus-contrib-20201005/)]
@ 2021-01-03 19:24 Mailbox.org
  2021-12-19 12:55 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Mailbox.org @ 2021-01-03 19:24 UTC (permalink / raw)
  To: emacs-orgmode

--text follows this line--

What exactly did you do?
I include a source code block for shell in an org-files.
Example:

#+begin_src shell
  foo
#+end_src
Within that source code block I type RET (Return)


What did you expect to happen?
The cursor should jump to the next line, adding one empty line in the code block.

What happened instead?
Instead completion-at-point is called and a minibuffer opens and promts for a selection.

Workarround:
To prevent the minibuffer to open, I put an uneven number of  quotation marks anywhere before the code block.
Exmaple:
"""
#+begin_src shell
foo

#+end_src

------------------------------------------------------------------------



Emacs  : GNU Emacs 26.1.92 (build 1, x86_64-apple-darwin18.2.0, Carbon Version 158 AppKit 1671.2)
 of 2019-04-03
Package: Org mode version 9.4 (9.4-17-g9a6689-elpaplus @ /Users/uSukhavati/.emacs.d/elpa/org-plus-contrib-20201005/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-with-sub-superscripts '{}
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-refile-targets '((org-agenda-files :maxlevel . 3))
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-imenu-depth 8
 org-download-annotate-function 'org-download-annotate-default
 org-agenda-files '("~/org/arbeit/Arbeit.org" "~/org/aws-labs/control-tower.org" "~/org/training/AwsTraining.org"
                    "~/org/meinleben/notes.org" "~/org/meinleben/MeinLeben.org" "~/org/meinleben/Arbeit.org" "~/org/meinleben/CEB.org"
                    "~/org/training/KubernetesCKA.org" "/Users/uSukhavati/org/meinleben/CEB.org"
                    "/Users/uSukhavati/org/meinleben/Emacs.org" "/Users/uSukhavati/org/meinleben/Freizeit.org")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-modules '(ol-bbdb ol-bibtex ol-docview ol-eww ol-gnus ol-info ol-irc ol-mhe ol-rmail ol-w3m drill)
 org-mode-hook '(org-clock-load #[0 "\301\211\x10\207" [imenu-create-index-function org-imenu-get-tree] 2]
                 #[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 spacemacs/load-yasnippet toc-org-enable org-download-enable
                 org-bullets-mode spacemacs//org-babel-do-load-languages flyspell-mode spacemacs/add-org-surrounds evil-org-mode
                 org-eldoc-load spacemacs//init-company-org-mode company-mode)
 org-clock-persist 'history
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-restore-windows-after-quit t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-startup-with-inline-images t
 org-download-file-format-function 'org-download-file-format-default
 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\x01\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-export-with-broken-links t
 org-babel-load-languages '((shell . t) (python . t) (emacs-lisp . t))
 org-log-done 'time
 org-ascii-format-drawer-function #[771 "\x01\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
 org-attach-store-link-p 'attached
 org-priority-lowest 68
 org-agenda-loop-over-headlines-in-active-region nil
 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-log-into-drawer t
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-todo-keywords '((sequence))
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-clock-persist-file "/Users/uSukhavati/.emacs.d/.cache/org-clock-save.el"
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el") ("elisp" . "el"))
 org-publish-timestamp-directory "/Users/uSukhavati/.emacs.d/.cache/.org-timestamps/"
 org-export-async-init-file "/Users/uSukhavati/.emacs.d/layers/+emacs/org/local/org-async-init.el"
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-id-locations-file "/Users/uSukhavati/.emacs.d/.cache/.org-id-locations"
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open)
                       ("w3m" :store org-w3m-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) ("eww" :follow org-eww-open :store org-eww-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)
                       ("orgit-rev" :store orgit-rev-store :follow orgit-rev-open :export orgit-rev-export :complete
                        orgit-rev-complete-link)
                       ("orgit-log" :store orgit-log-store :follow orgit-log-open :export orgit-log-export :complete
                        orgit-log-complete-link)
                       ("orgit" :store orgit-status-store :follow orgit-status-open :export orgit-status-export :complete
                        orgit-status-complete-link)
                       ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell)
                       ("news" :follow #[514 "\301\300\302\x04Q\x02\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("mailto" :follow #[514 "\301\300\302\x04Q\x02\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("https" :follow #[514 "\301\300\302\x04Q\x02\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("http" :follow #[514 "\301\300\302\x04Q\x02\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("ftp" :follow #[514 "\301\300\302\x04Q\x02\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"])
                       ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file)
                       ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi))
 org-download-image-dir "./images"
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-present-mode-hook '(spacemacs//org-present-start)
 org-link-translation-function 'toc-org-unhrefify
 org-link-elisp-confirm-function 'yes-or-no-p
 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-image-actual-width nil
 org-priority-default 68
 org-present-mode-quit-hook '(spacemacs//org-present-end)
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-attach-dir-relative t
 org-use-sub-superscripts nil
 org-agenda-custom-commands '(("d" "Daily agenda and all TODOs"
                               ((tags "PRIORITY=\"A\""
                                 ((org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote todo) (quote done))))
                                  (org-agenda-overriding-header "High-priority unfinished tasks:"))
                                 )
                                (agenda "" ((org-agenda-ndays 1)))
                                (alltodo ""
                                 ((org-agenda-skip-function
                                   (quote
                                    (or (air-org-skip-subtree-if-habit) (air-org-skip-subtree-if-priority 65)
                                     (org-agenda-skip-if nil (quote (scheduled deadline))))
                                    )
                                   )
                                  (org-agenda-overriding-header "ALL normal priority tasks:"))
                                 )
                                )
                               ((org-agenda-compact-blocks t)))
                              )
 org-download-link-format-function 'org-download-link-format-function-aw
 org-publish-project-alist '(("orgweb" :components ("orgweb-notes" "orgweb-static" "orgweb-themes"))
                             ("orgweb-notes" :base-directory "~/org/" :base-extension "org" :publishing-directory "~/Sites/orgweb/"
                              :recursive t :publishing-function org-html-publish-to-html :headline-levels 4 :auto-preamble t
                              :auto-sitemap t :sitemap-filename "sitemap.org" :sitemap-title "Sitemap")
                             ("orgweb-index" :base-directory "~/org/" :base-extension "org" :publishing-directory "~/Sites/orgweb/"
                              :exclude ".*" :include ["index.org"] :recursive nil :publishing-function org-html-publish-to-html
                              :headline-levels 4 :auto-preamble t :auto-sitemap nil)
                             ("orgweb-static" :base-directory "~/org/" :base-extension
                              "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|txt\\|og\\|xls\\|xlsx\\|pptx\\|ppt\\|docx\\|doc\\|swf"
                              :exclude ".git\\|01AndreasCrypt\\|01ScanSnap_Home" :publishing-directory "~/Sites/orgweb/" :recursive t
                              :publishing-function org-publish-attachment)
                             ("orgweb-themes" :base-directory "~/org/aw-org-html-themes/styles" :base-extension
                              "css\\|js\\|png\\|jpg\\|jpeg\\|gif\\|pdf\\|txt\\|mp3\\|ogg\\|swf" :exclude ".git\\|LICENSE"
                              :publishing-directory "~/Sites/orgweb/styles" :completion-function fixStyleFolder :recursive t
                              :publishing-function org-publish-attachment)
                             )
 org-use-speed-commands t
 org-attach-use-inheritance nil
 org-download-abbreviate-filename-function 'file-relative-name
 org-default-notes-file "notes.org"
 )




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

* Re: Bug: completion-at-point wrongly called within shell code block [9.4 (9.4-17-g9a6689-elpaplus @ /Users/uSukhavati/.emacs.d/elpa/org-plus-contrib-20201005/)]
  2021-01-03 19:24 Bug: completion-at-point wrongly called within shell code block [9.4 (9.4-17-g9a6689-elpaplus @ /Users/uSukhavati/.emacs.d/elpa/org-plus-contrib-20201005/)] Mailbox.org
@ 2021-12-19 12:55 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2021-12-19 12:55 UTC (permalink / raw)
  To: Mailbox.org; +Cc: emacs-orgmode

"Mailbox.org" <andreas.wittmann@mailbox.org> writes:

> --text follows this line--
>
> What exactly did you do?
> I include a source code block for shell in an org-files.
> Example:
>
> #+begin_src shell
>   foo
> #+end_src
> Within that source code block I type RET (Return)

FYI, I am unable to reproduce this.

Best,
Ihor


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

end of thread, other threads:[~2021-12-19 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-03 19:24 Bug: completion-at-point wrongly called within shell code block [9.4 (9.4-17-g9a6689-elpaplus @ /Users/uSukhavati/.emacs.d/elpa/org-plus-contrib-20201005/)] Mailbox.org
2021-12-19 12:55 ` Ihor Radchenko

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).