emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)]
@ 2023-01-06  6:56 David Masterson
  2023-01-06 16:12 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: David Masterson @ 2023-01-06  6:56 UTC (permalink / raw)
  To: emacs-orgmode

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

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

I think there is a conflict between Org hyperlinks and auto-complete.
Specifically, when I tried to create a hyperlink of the form
"[[*section][section]]", Emacs would go into some infinite loop just
after I typed the first ']' and I'd have to kill Emacs (sometimes with
'-9'), I think auto-complete popped up just after typing the '*', so I
think auto-complete was scanning what I was typing and crashed when I
got to the ']'.  So, this could be a problem with auto-complete?

Not yet sure how to minimize my setup to build a reproducible case or
further debug this, but I thought I'd get the bug out to others who
might know better.


Emacs  : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2021-03-27, modified by Debian
Package: Org mode version 9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)

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-blank-before-new-entry '((heading) (plain-list-item . auto))
 org-texinfo-format-headline-function 'org-texinfo-format-headline-default-function
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)
		      (org-agenda-files :tag . "RFL"))
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-use-property-inheritance '("DOCTOR")
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-persist-before-write-hook '(org-element--cache-persist-before-write)
 org-agenda-files '("/home/dsmasterson/DSM/MyOrg/")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-tag-alist '(("RFL" . 82) ("TBD" . 84) ("FLAGGED" . 70) ("NEXT" . 78)
		 ("CONSIDER" . 67) (:startgroup) ("Context") (:grouptags) ("@Bank")
		 ("@Car") ("@Computer") ("@Dentist") ("@Doctor") ("@EyeDoc") ("@Grocery")
		 ("@Hardware") ("@Home") ("@Internet") ("@Lawyer") ("@Library")
		 ("@MedLab") ("@Meeting") ("@PetStore") ("@Pharmacy") ("@Phone")
		 ("@Retail") ("@School") ("@Transit") ("@TV") ("@Work") (:endgroup)
		 (:startgrouptag) ("People") (:grouptags) ("DAVID" . 68) ("SUSAN" . 83)
		 ("SANAH" . 115) ("FAMILY" . 70) ("David") ("Susan") ("Sanah")
		 ("Chiffon" . 99) ("Mom") ("Rob") ("Val") ("Brenda") ("Behrouz") ("Ashi")
		 ("Nayer") (:endgrouptag))
 org-reveal-start-hook '(org-decrypt-entry)
 org-startup-folded t
 org-blocker-hook '(org-edna-blocker-function)
 org-super-agenda-mode t
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
		   [add-hook before-save-hook org-encrypt-entries nil t] 5]
		 #[0 "\300\301\302\303\304$\207"
		   [add-hook change-major-mode-hook org-fold-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
		 #[0 "\301\211.\207" [imenu-create-index-function org-imenu-get-tree] 2]
		 beginend-org-mode org-ac/setup-current-buffer)
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-outline-path-complete-in-steps nil
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-startup-indented t
 org-agenda-todo-list-sublevels nil
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 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-crypt-key nil
 org-export-with-planning t
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-agenda-timegrid-use-ampm t
 org-brain-visualize-mode-hook '(org-brain-polymode)
 org-export-backends '(ascii html icalendar latex odt org texinfo)
 org-ascii-format-drawer-function #[771 ".\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
 org-agenda-add-entry-text-maxlines 5
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-trigger-hook '(org-edna-trigger-function)
 org-priority-lowest 69
 org-agenda-loop-over-headlines-in-active-region nil
 org-fold-core-isearch-open-function 'org-fold--isearch-reveal
 org-occur-hook '(org-first-headline-recenter)
 org-agenda-mode-hook '(beginend-org-agenda-mode)
 outline-minor-mode-hook '((lambda nil (make-local-variable 'smart-outline-cut)
			    (setq smart-outline-cut nil))
			   )
 org-export-before-processing-hook '(my-sitemap-removal)
 org-fold-reveal-start-hook '(org-decrypt-entry)
 org-agenda-include-diary t
 org-indirect-buffer-display 'current-window
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
		  org-cycle-optimize-window-after-visibility-change
		  org-cycle-display-inline-images)
 org-todo-keywords '((sequence "TODO(t)" "TODAY(y)" "NEXT(n)" "PHONE(p@/!)"
		      "MEETING(m@/!)" "|" "CANCELED(c@/!)")
		     (sequence "WAITING(w@/!)" "HOLD(h@/!)" "SOMEDAY(s)" "|" "REF(r@/!)"
		      "DONE(d!)")
		     )
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-tags-column 0
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-return-follows-link t
 org-refile-allow-creating-parent-nodes 'confirm
 org-refile-use-outline-path t
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-follow :complete
			org-attach-complete-link)
		       ("eww" :follow org-eww-open :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 :insert-description
			org-info-description-as-command)
		       ("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)
		       ("doi" :follow org-link-doi-open :export org-link-doi-export)
		       ("org-contact" :follow org-contacts-link-open :complete
			org-contacts-link-complete :store org-contacts-link-store :face
			org-contacts-link-face)
		       ("tel") ("id" :follow org-id-open)
		       ("elfeed" :follow elfeed-link-open :store elfeed-link-store-link)
		       ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell)
		       ("news" :follow
			#[514 "\301\300\302.Q.\"\207" ["news" browse-url ":"] 6
			  "\n\n(fn URL ARG)"]
			)
		       ("mailto" :follow
			#[514 "\301\300\302.Q.\"\207" ["mailto" browse-url ":"] 6
			  "\n\n(fn URL ARG)"]
			:complete org-contacts-mailto-link-completion)
		       ("https" :follow
			#[514 "\301\300\302.Q.\"\207" ["https" browse-url ":"] 6
			  "\n\n(fn URL ARG)"]
			)
		       ("http" :follow
			#[514 "\301\300\302.Q.\"\207" ["http" browse-url ":"] 6
			  "\n\n(fn URL ARG)"]
			)
		       ("ftp" :follow
			#[514 "\301\300\302.Q.\"\207" ["ftp" browse-url ":"] 6
			  "\n\n(fn URL ARG)"]
			)
		       ("help" :follow org-link--open-help :store org-link--store-help)
		       ("file" :complete org-link-complete-file)
		       ("elisp" :follow org-link--open-elisp))
 org-agenda-skip-scheduled-if-done t
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-capture-templates '(("t" "Todo" entry (file+headline org-default-tasks-file "Tasks")
			  "* TODO %?\n%i\n%a\n")
			 ("f" "Fast" entry (file+headline org-default-tasks-file "Tasks")
			  "* TODO %?\n%i\n")
			 ("i" "Inbox" entry (file org-default-inbox-file)
			  "* TODO %?\n%i\n")
			 ("n" "Note" entry (file org-default-notes-file)
			  "* Note\nEntered on %U\n%i\n%a\n")
			 ("j" "Journal" entry (file+olp+datetree org-default-journal-file)
			  "* Journal %<%H:%M>\n%i\n" :time-prompt t)
			 ("c" "Contacts" entry (file org-default-contacts-file)
			  "* %(org-contacts-template-name)\n:PROPERTIES:\n:PHONE: %(org-contacts-template-phone)\n:END:")
			 )
 org-link-elisp-confirm-function 'yes-or-no-p
 org-texinfo-format-inlinetask-function 'org-texinfo-format-inlinetask-default-function
 org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold)
			  ("TODAY" :foreground "purple" :weight bold)
			  ("NEXT" :foreground "skyblue" :weight bold)
			  ("DONE" :foreground "green" :weight bold)
			  ("WAITING" :foreground "orange" :weight bold)
			  ("HOLD" :foreground "green" :weight bold)
			  ("CANCELED" :foreground "green" :weight bold)
			  ("SOMEDAY" :foreground "orange" :weight bold)
			  ("MEETING" :foreground "green" :weight bold)
			  ("PHONE" :foreground "green" :weight bold))
 org-export-with-properties '("DOCTOR")
 org-texinfo-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 outline-mode-hook '((lambda nil (make-local-variable 'smart-outline-cut)
		      (setq smart-outline-cut nil))
		     beginend-outline-mode)
 org-agenda-compact-blocks t
 org-priority-default 67
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-edna-mode t
 org-edna-use-inheritance t
 org-agenda-custom-commands '(("y" tags "+CONSIDER"
			       ((org-agenda-sorting-strategy '(category-up priority-down))
				(org-agenda-with-colors t) (org-agenda-remove-tags t))
			       ("consider.txt"))
			      ("z" "Super View"
			       ((agenda "a"
				 ((org-agenda-span 'week) (org-agenda-include-deadlines t)
				  (org-super-agenda-groups
				   '((:name "" :time-grid t :order 1)))
				  )
				 )
				(alltodo "b"
				 ((org-agenda-overriding-header "\nGroupings")
				  (org-agenda-sorting-strategy
				   '(priority-down category-up))
				  (org-super-agenda-keep-order)
				  (org-agenda-todo-list-sublevels t)
				  (org-super-agenda-groups
				   '((:name "Due Today" :todo "TODAY" :scheduled today
				      :deadline today :order 1)
				     (:name "Next to do" :todo "NEXT" :tag "NEXT" :order 5)
				     (:name "Important" :tag "IMPORTANT" :priority "A"
				      :order 6)
				     (:name "Consider" :tag "CONSIDER" :priority< "A"
				      :order 7)
				     (:name "Overdue" :deadline past :order 8)
				     (:name "Due Soon" :deadline future :order 10)
				     (:name "Trivial" :discard (:anything t) :order 90))
				   )
				  )
				 )
				(alltodo "x"
				 ((org-agenda-overriding-header "\nSpecial")
				  (org-super-agenda-groups
				   '((:name "Phone" :todo "PHONE" :order 13)
				     (:name "Meetings" :todo "MEETING" :order 15)
				     (:name "Hold" :todo "HOLD" :order 17)
				     (:name "Waiting" :todo "WAITING" :order 20)
				     (:name "Trivial" :discard (:anything t) :order 90))
				   )
				  )
				 )
				(alltodo "c"
				 ((org-agenda-overriding-header "\nCategories")
				  (org-super-agenda-groups
				   '((:name "Others" :auto-category 1 :order 25)))
				  )
				 )
				)
			       )
			      )
 org-directory "/home/dsmasterson/DSM/MyOrg/"
 org-agenda-sorting-strategy '((agenda habit-down time-up priority-down category-keep)
			       (todo category-up priority-down deadline-up)
			       (tags priority-down category-keep) (search category-keep))
 org-publish-project-alist '(("orgfiles" :base-directory "~/DSM/MyOrg/" :base-extension
			      "org" :publishing-directory "~/Publish/html/"
			      :publishing-function org-html-publish-to-html
			      :headline-levels 6 :section-numbers t :makeindex t
			      :auto-sitemap t :exclude "init.org" :with-toc nil)
			     ("asciiDrop" :base-directory "~/DSM/MyOrg/" :base-extension
			      "org" :publishing-directory "~/Publish/asciiDrop"
			      :publishing-function org-asciidoc-publish-to-asciidoc
			      :exclude "init.org" :section-numbers t)
			     ("beamers" :base-directory "~/DSM/MyOrg/" :base-extension
			      "org" :exclude ".*" :include "TBD" :publishing-directory
			      "~/Publish/pdfDrop" :publishing-function
			      org-beamer-export-to-pdf)
			     ("orgDrop" :base-directory "~/DSM/MyOrg/" :base-extension
			      "org" :htmlized-source t :exclude "init.org"
			      :publishing-directory "~/Publish/orgDrop/"
			      :publishing-function org-org-publish-to-org)
			     ("pdfDrop" :base-directory "~/DSM/MyOrg/" :base-extension
			      "org" :headline-levels 10 :section-numbers t :makeindex t
			      :auto-sitemap t :exclude "init.org" :publishing-directory
			      "~/Publish/pdfDrop/" :publishing-function
			      org-latex-publish-to-pdf)
			     ("images" :base-directory "~/DSM/images/" :base-extension
			      "jpg\\|gif\\|png" :publishing-directory "~/Publish/images/"
			      :publishing-function org-publish-attachment)
			     ("other" :base-directory "~/DSM/other/" :base-extension
			      "css\\|el" :publishing-directory "~/Publish/other/"
			      :publishing-function org-publish-attachment)
			     ("website" :components
			      ("orgfiles" "images" "asciiDrop" "orgDrop" "pdfDrop" "other")
			      )
			     )
 org-link-search-must-match-exact-headline nil
 org-tags-exclude-from-inheritance '("RFL")
 org-agenda-skip-deadline-if-done t
 org-agenda-start-on-weekday 0
 org-default-notes-file "/home/dsmasterson/DSM/MyOrg/notes.org"
 )
-- 
David Masterson


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

* Re: [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)]
  2023-01-06  6:56 [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)] David Masterson
@ 2023-01-06 16:12 ` Ihor Radchenko
  2023-01-07  0:14   ` David Masterson
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2023-01-06 16:12 UTC (permalink / raw)
  To: David Masterson; +Cc: emacs-orgmode

David Masterson <dsmasterson@gmail.com> writes:

> Not yet sure how to minimize my setup to build a reproducible case or
> further debug this, but I thought I'd get the bug out to others who
> might know better.

I may consider using https://github.com/Malabarba/elisp-bug-hunter

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)]
  2023-01-06 16:12 ` Ihor Radchenko
@ 2023-01-07  0:14   ` David Masterson
  2023-01-07 12:26     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: David Masterson @ 2023-01-07  0:14 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Ihor Radchenko <yantar92@posteo.net> writes:

> David Masterson <dsmasterson@gmail.com> writes:
>
>> Not yet sure how to minimize my setup to build a reproducible case or
>> further debug this, but I thought I'd get the bug out to others who
>> might know better.
>
> I may consider using https://github.com/Malabarba/elisp-bug-hunter

I think I'll add this package to my setup, but I don't think it can help
in this case as it's an infinite loop bug.  Once it's locked in the
loop, I have to kill emacs, so elisp-bug-hunter would never have a
chance to report anything.

Question: does Org scan (some part of the) text *AS* you are typing?

I'm beginning to think that the answer is 'no' and, so, it was
auto-complete that tripped on a sequence of characters.  I'll have to
look at which part of auto-complete did it.

-- 
David Masterson


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

* Re: [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)]
  2023-01-07  0:14   ` David Masterson
@ 2023-01-07 12:26     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2023-01-07 12:26 UTC (permalink / raw)
  To: David Masterson; +Cc: emacs-orgmode

David Masterson <dsmasterson@gmail.com> writes:

>> You may consider using https://github.com/Malabarba/elisp-bug-hunter
>
> I think I'll add this package to my setup, but I don't think it can help
> in this case as it's an infinite loop bug.  Once it's locked in the
> loop, I have to kill emacs, so elisp-bug-hunter would never have a
> chance to report anything.

You can use interactive bisection.
See https://list.orgmode.org/orgmode/87ee2nlslt.fsf@localhost/ and 
https://cubeatic.com/index.php/s/iQakFWXgxsJzyXP

> Question: does Org scan (some part of the) text *AS* you are typing?
>
> I'm beginning to think that the answer is 'no' and, so, it was
> auto-complete that tripped on a sequence of characters.  I'll have to
> look at which part of auto-complete did it.

Yes, Org does scan things as you type. However, you should always be
able to exit upon typing C-g (maybe
`org-element--cache-interrupt-C-g-max-count' times).

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2023-01-07 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-06  6:56 [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)] David Masterson
2023-01-06 16:12 ` Ihor Radchenko
2023-01-07  0:14   ` David Masterson
2023-01-07 12:26     ` 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).