From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9148: Make `comment-normalize-vars' more syntax-aware Date: Tue, 02 Aug 2011 00:04:03 -0400 Message-ID: References: <87ipqu5pwl.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312257908 7556 80.91.229.12 (2 Aug 2011 04:05:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 04:05:08 +0000 (UTC) Cc: 9148@debbugs.gnu.org To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 06:05:03 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qo6E3-0000ag-6O for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2011 06:05:03 +0200 Original-Received: from localhost ([::1]:60007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo6E2-0007iz-7x for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2011 00:05:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo6Dz-0007ij-2r for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 00:05:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qo6Dd-00086V-30 for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 00:04:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo6Dc-00086R-VE for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 00:04:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qo6E1-0000UC-Qm; Tue, 02 Aug 2011 00:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Aug 2011 04:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9148-submit@debbugs.gnu.org id=B9148.13122578731834 (code B ref 9148); Tue, 02 Aug 2011 04:05:01 +0000 Original-Received: (at 9148) by debbugs.gnu.org; 2 Aug 2011 04:04:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qo6DY-0000TW-P9 for submit@debbugs.gnu.org; Tue, 02 Aug 2011 00:04:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qo6DW-0000TO-G0 for 9148@debbugs.gnu.org; Tue, 02 Aug 2011 00:04:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EADF2N05FxKfe/2dsb2JhbABCp194gUABAQQBViMFCws0EhQYDSSHf8EPhkIEn0qEMQ X-IronPort-AV: E=Sophos;i="4.67,304,1309752000"; d="scan'208";a="128373872" Original-Received: from 69-196-167-222.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.222]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 02 Aug 2011 00:04:04 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C52B7660CF; Tue, 2 Aug 2011 00:04:03 -0400 (EDT) In-Reply-To: <87ipqu5pwl.fsf@gmail.com> ("=?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?="'s message of "Fri, 22 Jul 2011 16:52:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 02 Aug 2011 00:05:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49787 Archived-At: > Unfortunately, even though there is a `comment-use-syntax' variable > which is apparently supposed to indicate that the comment functions > should rely on syntax information instead of `comment-prefix' and > friends, one piece is missing -- the function `comment-normalize-vars', > called at invocation of functions like {comment,uncomment}-region, still > requires `comment-start' to be set explicitly even though the syntax > information is sufficient and `comment-use-syntax' set. I'm not sure I understand the problem. Can you give a more concrete example where you get undesirable behavior? Setting comment-start is usually needed to tell Emacs *which* of the major mode's comment syntaxes to use (so it's only theoretically unneeded if the syntax-table only include a single comment syntax). Stefan