From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Just a thought about comment-line Date: Sun, 31 May 2020 16:57:37 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2163"; 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 12:00:43 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 1jfKln-0000Sd-LL for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 12:00:43 +0200 Original-Received: from localhost ([::1]:47462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfKll-0003HL-Bu for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 06:00:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfKj1-0000Vs-UW for emacs-devel@gnu.org; Sun, 31 May 2020 05:57:51 -0400 Original-Received: from mail-vk1-xa2f.google.com ([2607:f8b0:4864:20::a2f]:45162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfKj0-0008Qx-6U for emacs-devel@gnu.org; Sun, 31 May 2020 05:57:51 -0400 Original-Received: by mail-vk1-xa2f.google.com with SMTP id d22so1727194vkf.12 for ; Sun, 31 May 2020 02:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OutWmMqkD0aPtJdPIF2cWIMY1dE/CAmWmqP4oqDCTfk=; b=pTJ/6AkPk2WJ97zHGVDjm8g0CYPcOmsb4QDU6sGRn7ePZIhA5zG8sErsXSfuuHp/+W covcRQBaURQMFkzuz74d1FGN0l9lAn8RLRv/66AKks6S3UP6WlRFKn3OL9Je/lO2Ps+7 tYDHgrLB6qbqHxaHhj7zaUW7uc0Ba/fNkF4fIDnBDu9MSniY/Mfo7+f2mjughBYqR3FT JqqP1K+OVTnE/zNmXsEe3DvVdb+oXx//3aQSa0+OMvOCmDNL921Efh0dXFsnItcIGQ3v eTRCjmceET9z2+3abRb1BA+oHm8rw13ThIIDvLTGp9Vchz2x0TpqRrNwiCXhiPfDYYPa QwqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OutWmMqkD0aPtJdPIF2cWIMY1dE/CAmWmqP4oqDCTfk=; b=f+CYuW06p81SIQ18NxgqBCCSUOjVsrQDKr7Gr/fdFOW/UFwVotW+rmUzHdc+hfgQ6a Nc1lS+F6VGa2ufJoBXnWcfrGY1bD2E5S6KNe6L2PTMZ4dpw32TRqf1zwLPz0+Xtb6dxJ CjdHraey3kGvQnyLt93n2gltFJk1CNZRGTiO1UlPYIjPLyFK8j9bkrwvAN3a3FiTkZIS NHcBKSWYN9GzOiNS072zNWqgUWUI6nlvnkFCefMApyCGD4CwW3XknY9X1GYSAKJWzQoj XgOkYDKOrS2zhZ0LiFjBib7XU0GwRew1VOImaKuwe5Wpiw7udBOfmUmlvM3+Sys9Q27U YNBw== X-Gm-Message-State: AOAM531q37lMeWbfZjGfz5UMrkawu7RiEZ5PDCdv3W0TcQ8MHXVm4cA5 4adzL+ZhQW1h4VPplbRo08dGa90v2Zy7AYgHjz7ebGar X-Google-Smtp-Source: ABdhPJykmy85S4m8ojwZKYexTFGkVkJGvw5ih66O9SGVXh2qVZvBNG/kl2n74oUsDFrQzhTDuvSYJeMW1TuXfYNAlRc= X-Received: by 2002:a1f:2ac6:: with SMTP id q189mr2198475vkq.28.1590919069056; Sun, 31 May 2020 02:57:49 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::a2f; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa2f.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=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:251671 Archived-At: On Sun, 31 May 2020 at 14:40, PEDRO ANDRES ARANDA GUTIERREZ > 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 Since you are selecting whole lines to be commented, you might find comment-dwim (M-;) more to your liking. (If you select partial lines, it may also split them if the current mode only has end-of-line comments.) 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.