[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug: text jumps left and right while typing math when org-indent-mod
From: |
Konstantin Kliakhandler |
Subject: |
[O] Bug: text jumps left and right while typing math when org-indent-mode and linum-mode are enabled. [8.2.5h (8.2.5h-98-g0820d0-elpa @ /Users/kosta/.emacs.d/elpa/org-20140407/)] |
Date: |
Sat, 19 Apr 2014 13:18:26 +0300 |
Hello,
I've discovered a bug that hinders typing when org-indent-mode and
linum-mode are both enabled. Basically, in certain situations the line
number disappears when a character is added and reappears when another
is added, making the line jump around.
Description:
Open a new org buffer, enable linum-mode and org-indent-mode, and type in the
following (the equal signs are
just to delimit in this message):
====
* Test heading
\( x \)
====
Now, when your point is at the end of the second line, press space
twice.
Expected outcome: point moves two spaces to the right, the rest of the
buffer doesn't change.
Outcome: point moves two spaces to the right, while the whole line jumps
back and forth, because the line number of the second disappears and reappers.
NOTE: After some further investigation, it appears this is also related
to highlighting of matching parantheses - If I repeat the same procedure
in `emacs -q`, after entering the closing paranthesis, the opening one
is highlighted for ~1s. When the highlight disappears, the line number
disappears (so there is no need to enter a space to get this).
NOTE 2: This also happens with regular parens (rather than latex math
ones), but not if they are the first thing on the line.
As a sort-of workaround, I can disable linum-mode for org-mode buffers, since
in those I usually care less about the line numbering than in other
(e.g. programming) modes.
------------------------------------------------------------------------
Emacs : GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2014-02-28 on bob.porkrind.org
Package: Org-mode version 8.2.5h (8.2.5h-98-g0820d0-elpa @
/Users/kosta/.emacs.d/elpa/org-20140407/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" "fontenc" t)
("" "fixltx2e" nil)
("" "graphicx" t) ("" "longtable" nil) (""
"float" nil)
("" "wrapfig" nil) ("" "rotating" nil)
("normalem" "ulem" t)
("" "amsmath" t) ("" "textcomp" t) (""
"marvosym" t)
("" "wasysym" t) ("" "amssymb" t)
("hidelinks" "hyperref" nil)
"\\tolerance=1000")
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-log-done t
org-format-latex-options '(:foreground default :background default :scale 1.5
:html-foreground
"Black" :html-background "Transparent" :html-scale
1.0 :matchers
("begin" "$1" "$" "$$" "\\(" "\\["))
org-latex-format-inlinetask-function 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-pretty-entities t
org-agenda-custom-commands '(("w" todo "TODO")
("h" agenda "" ((org-agenda-show-all-dates nil)))
("W" agenda ""
((org-agenda-ndays 21)
(org-agenda-show-all-dates nil)))
("A" agenda ""
((org-agenda-ndays 1)
(org-agenda-overriding-header "Today")))
)
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-default-notes-file "~/Dropbox/Documents/Org/notes.org"
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-from-is-user-regexp "\\<Konstantin Kliakhandler\\>"
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-pretty-entities-include-sub-superscripts nil
org-babel-pre-tangle-hook '(save-buffer)
org-export-copy-to-kill-ring nil
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
[org-add-hook before-save-hook org-encrypt-entries nil t] 5]
#[nil
"\305.\306
>\203. \307\n\310\311#\210\307\312\313#\210\307\314\315#\210\306
>\203,.\307\n\316\317#\210\307\n\320\321#\210\322
>\203>.\307\323\324#\210\307\325\324#\210\326
>\203P.\307\n\327\317#\210\307\n\330\321#\210\331
>\203_.\332\311\f\333BC\334#\210\335 >\203k.\332\311\336\334#\210\337
>\203w.\332\311\340\334#\210\341\342\343\344\311$\210\345\342\311\"\210\342\207"
[org-mouse-context-menu-function
org-mouse-features
org-mouse-map
org-mode-map
org-outline-regexp
org-mouse-context-menu
context-menu
org-defkey
[mouse-3]
nil
[mouse-3]
org-mouse-show-context-menu
[down-mouse-1]
org-mouse-down-mouse
[C-drag-mouse-1]
org-mouse-move-tree
[C-down-mouse-1]
org-mouse-move-tree-start
yank-link
[S-mouse-2]
org-mouse-yank-link
[drag-mouse-3]
move-tree
[drag-mouse-3]
[down-mouse-3]
activate-stars
font-lock-add-keywords
(0
(\`
(face
org-link
mouse-face
highlight
keymap
(\, org-mouse-map)
)
)
(quote prepend)
)
t
activate-bullets
(("^[ ]*\\([-+*]\\|[0-9]+[.)]\\) +"
(1
(\`
(face
org-link
keymap
(\, org-mouse-map)
mouse-face highlight)
)
(quote prepend)
)
)
)
activate-checkboxes
(("^[ ]*\\([-+*]\\|[0-9]+[.)]\\) +\\(\\[[ X]\\]\\)"
(2
(\`
(face
bold
keymap
(\, org-mouse-map)
mouse-face highlight)
)
t)
)
)
ad-add-advice
org-open-at-point
(org-mouse-open-at-point
nil
t
(advice
lambda
nil
(let
((context
(org-context)
)
)
(cond
((assq :headline-stars context)
(org-cycle)
)
((assq :checkbox context)
(org-toggle-checkbox)
)
((assq :item-bullet context)
(let
((org-cycle-include-plain-lists t)
)
(org-cycle)
)
)
((org-footnote-at-reference-p)
nil)
(t ad-do-it)
)
)
)
)
around ad-activate]
5]
setup-org-mode
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all
append local] 5]
#[nil "\300\301\302\303\304$\207"
[org-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-refile-targets '((org-agenda-files :maxlevel . 3) (nil :maxlevel . 3))
org-format-latex-header
"\\documentclass[english,hebrew]{article}\n\\usepackage[usenames]{color}\n[PACKAGES]\n[DEFAULT-PACKAGES]\n\\pagestyle{empty}
% do not remove\n% The settings below are copied from
fullpage.sty\n\\setlength{\\textwidth}{\\paperwidth}\n\\addtolength{\\textwidth}{-3cm}\n\\setlength{\\oddsidemargin}{1.5cm}\n\\addtolength{\\oddsidemargin}{-2.54cm}\n\\setlength{\\evensidemargin}{\\oddsidemargin}\n\\setlength{\\textheight}{\\paperheight}\n\\addtolength{\\textheight}{-\\headheight}\n\\addtolength{\\textheight}{-\\headsep}\n\\addtolength{\\textheight}{-\\footskip}\n\\addtolength{\\textheight}{-3cm}\n\\setlength{\\topmargin}{1.5cm}\n\\addtolength{\\topmargin}{-2.54cm}"
org-outline-path-complete-in-steps nil
org-use-speed-commands t
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-refile-use-outline-path 'file
org-directory "~/Dropbox/Documents/Org/"
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-tags-exclude-from-inheritance '("crypt")
org-crypt-key "81FC855A7C04BE97"
org-todo-keywords '((type "TODO(t!)" "STARTED(s)" "WAITING(w@/!)" "|"
"CANCELLED(c)"
"FUTURE(f)" "DONE(d!)")
(type "Note(n)") (type "Event(e)")
(sequence "PROJECT(p)" "|" "COMPLETE(c@)"))
org-modules '(org-bbdb org-bibtex org-crypt org-docview org-gnus org-info
org-irc org-mhe
org-mouse org-protocol org-rmail org-w3m)
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function 'ignore
org-completion-use-ido t
org-latex-preview-ltxpng-directory "/tmp/org-ltxpng/"
org-reveal-start-hook '(org-decrypt-entry)
org-html-format-inlinetask-function 'ignore
org-agenda-mode-hook '(#[nil
"\302.\303 \304\305#\210\303
\306\307#\210\303 \310\311#\210\303 \312\313#\210\303
\314\315#\207"
[org-mouse-context-menu-function
org-agenda-mode-map
org-mouse-agenda-context-menu
org-defkey
[mouse-3]
org-mouse-show-context-menu
[down-mouse-3]
org-mouse-move-tree-start
[C-mouse-4]
org-agenda-earlier
[C-mouse-5]
org-agenda-later
[drag-mouse-3]
#[(event)
"\302!.\303 \304\"\203. \305\306!\202. \303
\307\"\205. \310\306!)\207"
[event --cl-var-- org-mouse-get-gesture eql :left
org-agenda-earlier 1 :right org-agenda-later]
3 nil "e"]
]
4]
)
org-agenda-files '("~/Dropbox/Documents/Org/")
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-src-fontify-natively t
)
- [O] Bug: text jumps left and right while typing math when org-indent-mode and linum-mode are enabled. [8.2.5h (8.2.5h-98-g0820d0-elpa @ /Users/kosta/.emacs.d/elpa/org-20140407/)],
Konstantin Kliakhandler <=