From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan McDowell Subject: Bug: Cursor Disapears in Org-Src Blocks in Indent Mode [9.2.6 (release_9.2.6-559-ga01a8f @ /Users/djm/.emacs.d/straight/build/org/)] Date: Fri, 8 Nov 2019 10:41:40 -0700 Message-ID: References: <73e6babc-3469-480c-a9ac-eb92a1f1dcd2@Spark> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5dc5a8d9_66334873_e4e3" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45103) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iT8Gd-0007mf-QU for emacs-orgmode@gnu.org; Fri, 08 Nov 2019 12:41:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iT8Gb-0007Ly-PF for emacs-orgmode@gnu.org; Fri, 08 Nov 2019 12:41:51 -0500 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:46204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iT8Gb-0007LK-DS for emacs-orgmode@gnu.org; Fri, 08 Nov 2019 12:41:49 -0500 Received: by mail-pg1-x531.google.com with SMTP id r18so4366988pgu.13 for ; Fri, 08 Nov 2019 09:41:49 -0800 (PST) Received: from [192.168.0.15] (24-117-136-41.cpe.sparklight.net. [24.117.136.41]) by smtp.gmail.com with ESMTPSA id z18sm8521306pfq.182.2019.11.08.09.41.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Nov 2019 09:41:46 -0800 (PST) In-Reply-To: <73e6babc-3469-480c-a9ac-eb92a1f1dcd2@Spark> 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.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --5dc5a8d9_66334873_e4e3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, Expected Behavior: My cursor is always visible throughout my entire org-document Actual Behavior: When moving through org-src blocks, my cursor is visible until I move it to the end of the line. Then my cursor disapears and only shows up when the cursor is placed in the middle of the line. This behavior only happens when I hit 'org-block-begin-line', continues through the 'org-block' face and 'org-block-end-line'. Also, this behavior only happens if 'org-ident-mode' is turned on. Also, this behavior only happens if I have the aforementioned faces set to a different background color. To summarize: Org-Indent-Mode: On Org-Block Faces: Different color than default bg Cursor Behavior: Unexpected Org-Indent-Mode: Off Org-Block Faces: Different color than default bg Cursor Behavior: Expected Org-Indent-Mode: On Org-Block Faces: Default bg Cursor Behavior: Expected Even with removing the rest of my 'init.el' and only changing the org-block faces this same behavior happens. I suspect this might have something to do with the new ':extend' keyword, but this behavior persists even when I don't set ':extend t'. Here is an example of how I am modifying the faces: (org-block (:background gruvbox-dark1 :extend t)) (org-block-begin-line (:underline gruvbox-dark4 :background gruvbox-dark0 :foreground gruvbox-dark4 :extend t)) (org-block-end-line (:overline gruvbox-dark4 :background gruvbox-dark0 :foreground gruvbox-dark4 :extend t)) Emacs : GNU Emacs 27.0.50 (build 2, x86_64-apple-darwin19.0.0, NS appkit-1894.00 Version 10.15 (Build 19A583)) of 2019-11-08 Package: Org mode version 9.2.6 (release_9.2.6-559-ga01a8f @ /Users/djm/.emacs.d/straight/build/org/) current state: ============== (setq org-src-mode-hook '(config-org--supress-final-newline org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-insert-heading-respect-content t org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-highlight-sparse-tree-matches nil org-enforce-todo-dependencies t org-src-tab-acts-natively t org-imenu-depth 4 org-startup-folded 'content org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-mode-hook '(#[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 toc-org-mode org-bullets-mode visual-line-mode yas-minor-mode) org-outline-path-complete-in-steps nil org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-startup-indented t 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-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-hide-emphasis-markers t org-catch-invisible-edits 'smart org-occur-hook '(org-first-headline-recenter) org-indirect-buffer-display 'current-window org-cycle-hook '(org-cycle-hide-archived-subtrees 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-clock-persist-file "/Users/djm/.cache/emacs/var/org/clock-persist.el" org-refile-allow-creating-parent-nodes 'confirm org-id-locations-file "/Users/djm/.cache/emacs/var/org/id-locations.el" org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow eww :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) ("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") ("shell" :follow org-link--open-shell) ("news" :follow #[257 "\301\300\302Q!\207" ["news" browse-url ":"] 5 "\n\n(fn URL)"]) ("mailto" :follow #[257 "\301\300\302Q!\207" ["mailto" browse-url ":"] 5 "\n\n(fn URL)"]) ("https" :follow #[257 "\301\300\302Q!\207" ["https" browse-url ":"] 5 "\n\n(fn URL)"]) ("http" :follow #[257 "\301\300\302Q!\207" ["http" browse-url ":"] 5 "\n\n(fn URL)"]) ("ftp" :follow #[257 "\301\300\302Q!\207" ["ftp" browse-url ":"] 5 "\n\n(fn URL)"]) ("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-link-translation-function 'toc-org-unhrefify org-link-elisp-confirm-function 'yes-or-no-p org-src-window-setup 'current-window org-confirm-babel-evaluate nil ) --5dc5a8d9_66334873_e4e3 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello,&=23160;

Expected Behavior: My cursor is always visible throughout my entire
= org-document

Actual Behavior: When moving through org-src blocks, my cursor is
visible until I move it to the end of the line. Then my cursor disapears<= br /> and only shows up when the cursor is placed in the middle of the line.
This behavior only happens when I hit 'org-block-begin-line', continues through the 'org-block' face and 'org-block-end-line'.

Also, this behavior only happens if 'org-ident-mode' is turned on.

Also, this behavior only happens if I have the aforementioned faces set to a different background color.

To summarize:

Org-Indent-Mode: On
Org-Block =46aces: Different color than default bg
Cursor Behavior: Unexpected

Org-Indent-Mode: Off
Org-Block =46aces: Different color than default bg
Cursor Behavior: Expected

Org-Indent-Mode: On
Org-Block =46aces: Default bg
Cursor Behavior: Expected

Even with removing the rest of my 'init.el' and only changing the
org-block faces this same behavior happens. I suspect this might have
something to do with the new ':extend' keyword, but this behavior
persists even when I don't set ':extend t'.

Here is an example of how I am modifying the faces:

(org-block (:background gruvbox-dark1 :extend t))

(org-block-begin-line (:underline gruvbox-dark4 :background
gruvbox-dark0 :foreground gruvbox-dark4 :extend t))

(org-block-end-line (:overline gruvbox-dark4 :background
gruvbox-dark0 :foreground gruvbox-dark4 :extend t))

Emacs : GNU Emacs 27.0.50 (build 2, x86=5F64-apple-darwin19.0.0, NS appki= t-1894.00 Version 10.15 (Build 19A583))
of 2019-11-08
Package: Org mode version 9.2.6 (release=5F9.2.6-559-ga01a8f =40 /Users/d= jm/.emacs.d/straight/build/org/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
org-src-mode-hook '(config-org--supress-final-newline org-src-babel-confi= gure-edit-buffer
org-src-mode-configure-edit-buffer)
org-link-shell-confirm-function 'yes-or-no-p
org-insert-heading-respect-content t
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-highlight-sparse-tree-matches nil
org-enforce-todo-dependencies t
org-src-tab-acts-natively t
org-imenu-depth 4
org-startup-folded 'content
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-mode-hook '(=23=5B0 =22=5C300=5C301=5C302=5C303=5C304=24=5C207=22 =5B= add-hook change-major-mode-hook org-show-all append local=5D 5=5D
=23=5B0 =22=5C300=5C301=5C302=5C303=5C304=24=5C207=22
=5Badd-hook change-major-mode-hook org-babel-show-result-all append local= =5D 5=5D
org-babel-result-hide-spec org-babel-hide-all-hashes toc-org-mode org-bul= lets-mode
visual-line-mode yas-minor-mode)
org-outline-path-complete-in-steps nil
org-archive-hook '(org-attach-archive-delete-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-indented t
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function =23=5B257 =22=5C300=5C236A=5C207=22 =5B= :title=5D 3 =22=5Cn=5Cn(fn ENTRY)=22=5D
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-= arg-expand)
org-hide-emphasis-markers t
org-catch-invisible-edits 'smart
org-occur-hook '(org-first-headline-recenter)
org-indirect-buffer-display 'current-window
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-li= nes
org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate org-babel-speed-comma= nd-activate)
org-clock-persist-file =22/Users/djm/.cache/emacs/var/org/clock-persist.e= l=22
org-refile-allow-creating-parent-nodes 'confirm
org-id-locations-file =22/Users/djm/.cache/emacs/var/org/id-locations.el=22=
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '((=22attachment=22 :follow org-attach-open-link :exp= ort org-attach-export-link :complete
org-attach-complete-link)
(=22id=22 :follow org-id-open) (=22eww=22 :follow eww :store org-eww-stor= e-link)
(=22rmail=22 :follow org-rmail-open :store org-rmail-store-link)
(=22mhe=22 :follow org-mhe-open :store org-mhe-store-link)
(=22irc=22 :follow org-irc-visit :store org-irc-store-link :export org-ir= c-export)
(=22info=22 :follow org-info-open :export org-info-export :store org-info= -store-link)
(=22gnus=22 :follow org-gnus-open :store org-gnus-store-link)
(=22docview=22 :follow org-docview-open :export org-docview-export :store=
org-docview-store-link)
(=22bibtex=22 :follow org-bibtex-open :store org-bibtex-store-link)
= (=22bbdb=22 :follow org-bbdb-open :export org-bbdb-export :complete org-b= bdb-complete-link
:store org-bbdb-store-link)
(=22w3m=22 :store org-w3m-store-link) (=22file+sys=22) (=22file+emacs=22)=
(=22shell=22 :follow org-link--open-shell)
(=22news=22 :follow =23=5B257 =22=5C301=5C300=5C302Q=21=5C207=22 =5B=22ne= ws=22 browse-url =22:=22=5D 5 =22=5Cn=5Cn(fn URL)=22=5D)
(=22mailto=22 :follow =23=5B257 =22=5C301=5C300=5C302Q=21=5C207=22 =5B=22= mailto=22 browse-url =22:=22=5D 5 =22=5Cn=5Cn(fn URL)=22=5D)
(=22https=22 :follow =23=5B257 =22=5C301=5C300=5C302Q=21=5C207=22 =5B=22h= ttps=22 browse-url =22:=22=5D 5 =22=5Cn=5Cn(fn URL)=22=5D)
(=22http=22 :follow =23=5B257 =22=5C301=5C300=5C302Q=21=5C207=22 =5B=22ht= tp=22 browse-url =22:=22=5D 5 =22=5Cn=5Cn(fn URL)=22=5D)
(=22ftp=22 :follow =23=5B257 =22=5C301=5C300=5C302Q=21=5C207=22 =5B=22ftp= =22 browse-url =22:=22=5D 5 =22=5Cn=5Cn(fn URL)=22=5D)
(=22help=22 :follow org-link--open-help) (=22file=22 :complete org-link-c= omplete-file)
(=22elisp=22 :follow org-link--open-elisp) (=22doi=22 :follow org-link--o= pen-doi))
org-link-translation-function 'toc-org-unhrefify
org-link-elisp-confirm-function 'yes-or-no-p
org-src-window-setup 'current-window
org-confirm-babel-evaluate nil
)
--5dc5a8d9_66334873_e4e3--