From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 2/3] lisp/progmodes/etags.el don't (forward-char) as it's overriden next line Date: Sat, 16 Mar 2019 18:26:55 +0200 Message-ID: <83lg1eyecw.fsf@gnu.org> References: <20190316015314.2335-1-Hi-Angel@yandex.ru> <20190316015314.2335-2-Hi-Angel@yandex.ru> <1552750964.20097.0@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31103"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Konstantin Kharlamov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 16 17:36:49 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5CIi-0007th-Kl for ged-emacs-devel@m.gmane.org; Sat, 16 Mar 2019 17:36:48 +0100 Original-Received: from localhost ([127.0.0.1]:43956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5CIh-00060H-L6 for ged-emacs-devel@m.gmane.org; Sat, 16 Mar 2019 12:36:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5CHS-0005ws-Tr for emacs-devel@gnu.org; Sat, 16 Mar 2019 12:35:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5C9R-0004uu-BB; Sat, 16 Mar 2019 12:27:13 -0400 Original-Received: from [176.228.60.248] (port=3617 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h5C9Q-00059X-4i; Sat, 16 Mar 2019 12:27:12 -0400 In-reply-to: <1552750964.20097.0@yandex.ru> (message from Konstantin Kharlamov on Sat, 16 Mar 2019 18:42:44 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234229 Archived-At: > Date: Sat, 16 Mar 2019 18:42:44 +0300 > From: Konstantin Kharlamov > Cc: emacs-devel@gnu.org > > >> - (and (eq selective-display t) > >> - (looking-at "\^m") > >> - (forward-char 1)) > >> (beginning-of-line))) > > > > Did you actually try this change with selective-display in effect? > > Because I'm not sure it is correct in that case. > > > > Thanks. > > Hmm… I will try a bit later, but the code seems really > straightforward: > 1. if current character is ^M, then step forward > 2. step to the beginnig of the line > > The 2 undoes 1. ^M has special meaning in selective-display mode.