From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs starts writing in reverse order Date: Sat, 06 Feb 2021 15:19:07 +0200 Message-ID: <83h7mpnxkk.fsf@gnu.org> References: <83k0rlnxri.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15222"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 06 14:19:36 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8NUu-0003s9-EV for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 14:19:36 +0100 Original-Received: from localhost ([::1]:55304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8NUt-00014h-Hv for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 06 Feb 2021 08:19:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8NUK-00013G-1U for help-gnu-emacs@gnu.org; Sat, 06 Feb 2021 08:19:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39124) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8NUJ-0004fr-QP for help-gnu-emacs@gnu.org; Sat, 06 Feb 2021 08:18:59 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2977 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l8NUH-0001Ru-R8 for help-gnu-emacs@gnu.org; Sat, 06 Feb 2021 08:18:58 -0500 In-Reply-To: <83k0rlnxri.fsf@gnu.org> (message from Eli Zaretskii on Sat, 06 Feb 2021 15:14:57 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127636 Archived-At: > Date: Sat, 06 Feb 2021 15:14:57 +0200 > From: Eli Zaretskii > > > From: Luca Ferrari > > Date: Sat, 6 Feb 2021 13:55:06 +0100 > > > > not sure what the problem is, but using packaged emacs 26.3 > > (ubuntu/neon), spacemacs 0.300, I have a problem editing org mode > > source code snippets: whenever I start a src code block, the editing > > switches to an inderect buffer, but when I exit from the buffer to the > > original document Emacs starts writing in the opposite direction. > > I mean that the cursosr is fixed on the left of the line, and words > > are typing in an append mode, so that "emacs" appears as "scame". This > > happens only in the current buffer, other buffers do behave correctly. > > What is happening? I suspect is something related to bidirectional > > editing, could it be? > > When that happens, what is the value of bidi-paragraph-direction in > the buffer where it happens? Scratch that, it cannot have anything to do with your problem. Instead, please look closely at the line where you type the text and see if there's some hidden control character there. Does this happen in a vanilla "emacs -Q"? If so, can you present the shortest recipe for reproducing the problem starting with "emacs -Q"?