From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Confusing interaction when typing leading * for headings when org-hide-emphasis-markers is on Date: Sat, 25 Nov 2017 21:29:27 +0100 Message-ID: <87mv3at848.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIh4v-0006vv-QV for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 15:29:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIh4s-00030g-N5 for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 15:29:33 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41764) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIh4s-00030J-GT for emacs-orgmode@gnu.org; Sat, 25 Nov 2017 15:29:30 -0500 In-Reply-To: (Stig Brautaset's message of "Sat, 25 Nov 2017 18:36:40 +0100") 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: Stig Brautaset Cc: Org-Mode Hello, Stig Brautaset writes: > 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. It is something to be expected with a non-nil `org-hide-emphasis-markers'. "***" at the beginning of the line is really a bold asterisk, whereas "*** " is a headline. I suggest to use M-RET to circumvent the problem. You will quickly get used to it. Regards, -- Nicolas Goaziou