From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Just a thought about comment-line Date: Sun, 31 May 2020 17:40:14 +0300 Message-ID: <83eer0kw1d.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="99731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: PEDRO ANDRES ARANDA GUTIERREZ Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 31 16:41:07 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jfP99-000PqC-Bj for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 16:41:07 +0200 Original-Received: from localhost ([::1]:60346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfP98-0008KT-Ad for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 10:41:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfP8L-0007h1-74 for emacs-devel@gnu.org; Sun, 31 May 2020 10:40:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55176) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfP8K-0004ur-IO; Sun, 31 May 2020 10:40:16 -0400 Original-Received: from [176.228.60.248] (port=4790 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jfP8J-0007bV-R4; Sun, 31 May 2020 10:40:16 -0400 In-Reply-To: (message from PEDRO ANDRES ARANDA GUTIERREZ on Sun, 31 May 2020 09:39:37 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251675 Archived-At: > From: PEDRO ANDRES ARANDA GUTIERREZ > Date: Sun, 31 May 2020 09:39:37 +0200 > > Take any file, code or not, but let's say it is code... > Now select two or more lines. The mark should be at the beginning of a line > and the point at the beginning of a line two or more lines further down. If you copy this region and paste it > somewhere else you get what you want. > > However let's suppose that your theme is highlighting the region and you comment the region with M-x > comment-line. You will have the line at the point: > 1.- not highlighted before M-x comment-line > 2.- commented after M-x comment-line I'm probably misunderstanding something in the recipe, because if I repeat it, I don't see what you describe. I only see the lines commented out which were highlighted before "M-x comment-line".