From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#385: [PATCH] comment-indent doesn't respect comment-indent-function Date: Wed, 05 Jul 2017 22:58:31 -0400 Message-ID: <87o9sygtk8.fsf@users.sourceforge.net> References: <20080611171102.7261.qmail@byte.local> <87efuntchp.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499309892 11173 195.159.176.226 (6 Jul 2017 02:58:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2017 02:58:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 385@debbugs.gnu.org, "Christopher J. Madsen" To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 06 04:58:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSwzW-0002Xc-9y for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Jul 2017 04:58:06 +0200 Original-Received: from localhost ([::1]:48984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSwzb-0000zv-Jr for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jul 2017 22:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSwzV-0000yx-QL for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 22:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSwzS-00046V-LG for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 22:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSwzS-00046F-Fj for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 22:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dSwzS-0000X6-2s for bug-gnu-emacs@gnu.org; Wed, 05 Jul 2017 22:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jul 2017 02:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 385-submit@debbugs.gnu.org id=B385.14993098251986 (code B ref 385); Thu, 06 Jul 2017 02:58:02 +0000 Original-Received: (at 385) by debbugs.gnu.org; 6 Jul 2017 02:57:05 +0000 Original-Received: from localhost ([127.0.0.1]:53995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSwyW-0000Vt-TE for submit@debbugs.gnu.org; Wed, 05 Jul 2017 22:57:05 -0400 Original-Received: from mail-it0-f65.google.com ([209.85.214.65]:36011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSwyU-0000VH-Du; Wed, 05 Jul 2017 22:57:02 -0400 Original-Received: by mail-it0-f65.google.com with SMTP id k3so16238629ita.3; Wed, 05 Jul 2017 19:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=sBDBIAqzERGnbk1nE7i+nCrkchH2aOPSoHxjRKakhpY=; b=OIyKfcoIjloIXYIbBgLpGgS7BxEF4yDDDeahrnvdoGks2ojeR14WX+PIkxvCthMZ/v xOfURXbwp4nzhXIZ1IXluxxW1km+yAfSbnh6ExGA+2gJhCOY41zF7qP44c6RXfPicozv z2NUJ2MrHJIgJ23MccXUmkQHPSxonGD7fE4z00thEuKXSLll+cFpQXZSFlISEQ/OypBl jOGAsSSMJYtkTguukJkkCxModOElZ4iA6rjWSKm0TM5qzlUmJNiFlYBipJYeNaFxe2fK dCTMAXmai6bMD9eDcyB7VIs7NBXo8uBGZHYR4haRuw3DLMsZsuCFvpIsr/YOqwTw6HFR 5wAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=sBDBIAqzERGnbk1nE7i+nCrkchH2aOPSoHxjRKakhpY=; b=YsraatNPA2b5intg3usGmoX+zxPSMiGLwwgwfkZwSIxbHXlRjdnSEpg93EEs0EjmLy 3zth3xklLuCOAYR9IPvjI5mAK3CcmdIuCCySG38AO2nr/9anky+Pm8UjFhBr9b1aF9kI oUulHrKrUnSrR67xXighTWHsJyohWpdRowNj625YA04pO4v3H2QfHacM3AYaJeG6xg21 9K1c705XXQRQzDN5mSOOj2u+Y34W3vAsm30IzNXG0UKqdSVkhBUefjLRb5APVsTcNRGs KOERitzUloSGf7maCAvvPfKwj7KJMDEkZEsHZONSWtkYnPcGuYZpAkVaFpo9yd+V0Dqn jGWQ== X-Gm-Message-State: AKS2vOxN37EtzKrHBddFl3iViUlNDuGHURk4+8vnwBdKmDk4QrYGdHG3 HFdO9enYjCis2dIk X-Received: by 10.107.198.1 with SMTP id w1mr52539582iof.101.1499309816343; Wed, 05 Jul 2017 19:56:56 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b17sm13524350itd.0.2017.07.05.19.56.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jul 2017 19:56:55 -0700 (PDT) In-Reply-To: <87efuntchp.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Wed, 14 Jun 2017 00:33:06 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134237 Archived-At: tags 385 fixed close 385 26.1 quit npostavs@users.sourceforge.net writes: > Stefan Monnier writes: > >> If you need more control over the placement, rather than a variable >> comment-indent-fixed, maybe we should just say that if >> comment-indent-function returns a list of a single integer, it should be >> taken as the indentation position and not second-guessed. Or it could >> return a cons cell (MIN . MAX) to say "anywhere between MIN and MAX". > > Here's a patch. Pushed to master. [1: e832febfb4]: 2017-07-05 22:52:35 -0400 Allow comment-indent-functions to specify exact indentation (Bug#385) http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e832febfb4089418e0152c805e24dee977a7590d