From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Kliakhandler Subject: 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 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbSLn-0007eY-Ew for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 06:18:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbSLh-0001St-W7 for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 06:18:23 -0400 Received: from mail-ee0-f47.google.com ([74.125.83.47]:40788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbSLh-0001Sp-CL for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 06:18:17 -0400 Received: by mail-ee0-f47.google.com with SMTP id b15so2255965eek.6 for ; Sat, 19 Apr 2014 03:18:16 -0700 (PDT) Received: from singularity.slumpy.org (bzq-79-183-24-19.red.bezeqint.net. [79.183.24.19]) by mx.google.com with ESMTPSA id 48sm84446659eei.24.2014.04.19.03.18.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Apr 2014 03:18:14 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 "\\" 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.