From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: PEDRO ANDRES ARANDA GUTIERREZ Newsgroups: gmane.emacs.devel Subject: Just a thought about comment-line Date: Sun, 31 May 2020 09:39:37 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000656eea05a6ecc8cc" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94801"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 31 09:40:34 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 1jfIa9-000OYe-RX for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 09:40:33 +0200 Original-Received: from localhost ([::1]:46164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfIa8-00072a-Tt for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 03:40:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfIZV-0006Uq-5l for emacs-devel@gnu.org; Sun, 31 May 2020 03:39:53 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:39895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfIZT-0001hp-Ru for emacs-devel@gnu.org; Sun, 31 May 2020 03:39:52 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id o9so4281731ljj.6 for ; Sun, 31 May 2020 00:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=it.uc3m.es; s=google; h=mime-version:from:date:message-id:subject:to; bh=MUf9ifHhZJf9DhkYZrAb+VcmoL8WD0W9Fs1u1PwImAE=; b=ZTbKHl91KiMO3PK++3VnvpxadTJ42hp6855WI/68IFFqNNiKmJKjexqaI2lKyMUoS2 Njqv40MsL2LFOLbxG6FpRDukODliZ7uG5tb4pktlAXrSkpOQcvlUf/ig8xNQa10nSBJR KaSdiCA6+SS1biXjyvVPSodOvjT7Pv6+RWK40L98BDISemA287SlKTWqG0jT1uxTl85R vYX2wXhquEyk69xWG/HCKRPILuOZciXxPfFw6yuuSPApSkDMZj0T2SnwKhWN25L7tgVe /aPPiW6+QDzL+2ee1GIHufR0F7u+/wRGkL7AaS51QKTORzKtQXjKWULLpDf31kQUTGV3 lRjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MUf9ifHhZJf9DhkYZrAb+VcmoL8WD0W9Fs1u1PwImAE=; b=eonpFh0uj9hzNVV7v+jhy/5GIRY6yjVSYKC2dyYIWMXXI/l3bpSrXXTnZNGeKWakOw uAxBCbPwB3kSmH8dCDBALnnR2bjVoPHOm6QcNHWg4sYfZQz2AbWIb0xp+RTWGnk2oNq4 TfyzinZA5k4wC3TSgNc5DFcl1dURpz9NtAeUEHSWY8XWFHOF0lvflle5vA3E2vSYwSxG GBm7a36XY/OIayiOYYITqPeSOBOh5Bi0Murdt21xZYGcVz0SiELz1eP78Sh6LRo3JWBB lpVNLafKN7Xr74pwqVctWA3wWgHLptkF4UI8amItDm+7uQA0aj/jI97V6++zrmlEotns FETg== X-Gm-Message-State: AOAM533YyprdblNpkYUXeM17WMhwBtcDm4D8RbOOQGEIfyJBwxP9ABZD 0eQ8l03Lhsj5GQJYJWpSk41a5fEMmc+zrW9UudfptBgniL0= X-Google-Smtp-Source: ABdhPJz0UNvvt5MjHhY2tWh5bggqCXU3zDdj9VfugUg1tkTLTBGf7ZJVoXfPpVf2VwQt0qogB2aRYiXV1NInQYyG5iM= X-Received: by 2002:a2e:1615:: with SMTP id w21mr8660556ljd.453.1590910788126; Sun, 31 May 2020 00:39:48 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=paranda@it.uc3m.es; helo=mail-lj1-x229.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:251670 Archived-At: --000000000000656eea05a6ecc8cc Content-Type: text/plain; charset="UTF-8" Hi, 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 This is something you get used after n-ty something years of use. However, it is confusing the "newer generation" because it doesn't happen on other "popular" editors. Could we consider a variable customise the behaviour and allow the last line *not* to be commented when the mark is at the start of line? Just a random thought after talking to novice users, -- --- PEDRO ANDRES ARANDA GUTIERREZ Universidad Carlos III de Madrid "Fragen sind nicht da um beantwortet zu werden. Fragen sind da, um gestellt zu werden" Georg Kreisler --000000000000656eea05a6ecc8cc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Take any file, code or n= ot, 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 t= he beginning of a line two or more lines further down. If you copy this reg= ion and paste it somewhere else you get what you want.

=
However let's suppose that your theme is highlighting the region a= nd 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

This is somet= hing you get used after n-ty something years of use. However, it is confusi= ng the "newer generation" because it doesn't happen on other = "popular" editors. Could we consider a variable customise the beh= aviour and allow the last line not=C2=A0 to be commented when the ma= rk is at the start of line?

Just a random thought = after talking to novice users,
--
---
PEDRO ANDRES ARANDA GUTIERREZ
Universidad Carlos III de= Madrid

"Fragen sind nicht da um beantwortet = zu werden.
Fragen sind da, um gestellt zu werden" Georg Krei= sler
--000000000000656eea05a6ecc8cc--