From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Just a thought about comment-line Date: Sun, 31 May 2020 13:15:57 -0400 Message-ID: References: <306c7cf5-6cfc-436e-a902-8ad4560b32d1@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: PEDRO ANDRES ARANDA GUTIERREZ , emacs-devel@gnu.org, Yuri Khan To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 31 19:16:41 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 1jfRZh-000O5T-FZ for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 19:16:41 +0200 Original-Received: from localhost ([::1]:50246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfRZg-0005u0-GE for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 13:16:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfRZ4-0005Ut-7e for emacs-devel@gnu.org; Sun, 31 May 2020 13:16:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:45811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfRZ3-0000UJ-G9 for emacs-devel@gnu.org; Sun, 31 May 2020 13:16:01 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7C76F100363; Sun, 31 May 2020 13:16:00 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B127F100312; Sun, 31 May 2020 13:15:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1590945358; bh=U/nATuExkYPaDhz33lH7bpOTQacU4C69VKC9I+wbzDw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Iy+Zk0jmNwSZWogIq/3O9OnzZXUJmGdbiooZuVpaCbwioUtQxDW5M7Ws9MS69Tpe6 49SguTxlP0c8Jl05byURSy/c3zZUZe2/f5EHY48TH2LOnwaImC85HaXs4WSWh12pzF sEwknNQumW7zoF5Z97ERpIQlE+agkncA1fYexApRrk5t6KdaWrukknt9J/vf+lx+aG vm3W+O+wzZsl6UQx3V4EoqNx1y4p06p7peoZ6E1no/jh2xsyYqvkrZVHH1T9uS4G+F o+hsV1VQxp8B6ek4i1mkp7xAdhvEmNGbYnS5NT/Cs5oUsioq9SiM38KKB6tgNu88ct Qmxrf1KaKevUw== Original-Received: from alfajor (76-10-137-254.dsl.teksavvy.com [76.10.137.254]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 08B3D120920; Sun, 31 May 2020 13:15:57 -0400 (EDT) In-Reply-To: <306c7cf5-6cfc-436e-a902-8ad4560b32d1@default> (Drew Adams's message of "Sun, 31 May 2020 09:58:20 -0700 (PDT)") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/31 13:10:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:251687 Archived-At: > For block commenting, `comment-dwim' doesn't let > you nest and unnest a given level of commenting, It automatically decides whether to comment or to uncomment, indeed. > and control the number of comment chars used, etc. Hmm... works for me. At least `C-u 5 M-;` seems to correctly use 5 `#` chars to comment the region when used in a Makefile. >> FWIW I agree with you: a region that ends at the physical start of >> line, before indentation, should not be considered to include that >> line. > FWIW, I too agree about this. Right, as a general rule, the LF char belongs to the line that it terminates, so a position at BOL is really "between lines". Of course, that would require a special case when START=END=BOL. Stefan