From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stig Brautaset Subject: Confusing interaction when typing leading * for headings when org-hide-emphasis-markers is on Date: Sat, 25 Nov 2017 18:36:40 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIeNl-0007xg-Lw for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 12:36:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIeNg-0005Nj-LH for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 12:36:49 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:42882) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIeNg-0005Mg-Ep for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 12:36:44 -0500 Received: from localhost (unknown [213.128.177.209]) (Authenticated sender: mailbox@brautaset.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id EFA5C41C080 for ; Sat, 25 Nov 2017 18:36:40 +0100 (CET) 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: Org-Mode Hello, I've got =(setq org-hide-emphasis-markers t)= in my config, and it's mostly great but it does confuse me when I manually start sub-sub headings. (Which perhaps is a silly thing to do, but getting over muscle memory is hard to change.) After typing the third =*= (and on any subsequent ones typed) the first and last asterisks are hidden and the remaining appear bolded, until I type a space when what I'm typing is suddenly recognised as a heading and snaps back to displaying all the typed asterisks as expected. I couldn't figure out how to post a video, so visually, here is what I see. One character typed on each line (comments after =;=): : * : ** : * ; this is in bold : ** ; this is in bold : **** ; asterisks no longer bold after typing a space I tried adding an asterisks to the BORDER characters in org-emphasis-regexp-components, but that didn't seem to help. PS: I realise that ironing out all visual niggles here is perhaps not possible, and perhaps me just learning to use the Org functions for inserting headings would hide the problem from me, but I decided to report it in case it turns out to be simple to find an acceptable fix for someone. Stig -- ; GNU Emacs 27.0.50, Org mode version 9.1.3