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#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment' Date: Fri, 13 May 2011 11:11:07 -0300 Message-ID: References: <1273A111E1924DE9BAB49AFE6257D462@us.oracle.com> <5328177EA0C84361A654BB5EEB201D1C@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305295935 18798 80.91.229.12 (13 May 2011 14:12:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 May 2011 14:12:15 +0000 (UTC) Cc: 8667@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 13 16:12:11 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 1QKt67-0002Ih-Jo for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 May 2011 16:12:08 +0200 Original-Received: from localhost ([::1]:57656 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKt67-0003M9-2X for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 May 2011 10:12:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKt64-0003Lt-EV for bug-gnu-emacs@gnu.org; Fri, 13 May 2011 10:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKt63-0005Ke-76 for bug-gnu-emacs@gnu.org; Fri, 13 May 2011 10:12:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKt63-0005KZ-42 for bug-gnu-emacs@gnu.org; Fri, 13 May 2011 10:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QKt62-0004a8-HS; Fri, 13 May 2011 10:12: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: Fri, 13 May 2011 14:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8667 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8667-submit@debbugs.gnu.org id=B8667.130529588017564 (code B ref 8667); Fri, 13 May 2011 14:12:02 +0000 Original-Received: (at 8667) by debbugs.gnu.org; 13 May 2011 14:11:20 +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 1QKt5L-0004ZE-AG for submit@debbugs.gnu.org; Fri, 13 May 2011 10:11:19 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKt5I-0004Z3-Qb for 8667@debbugs.gnu.org; Fri, 13 May 2011 10:11:17 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:60648 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QKt5C-0001D2-Pm; Fri, 13 May 2011 10:11:11 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 9D1D366239; Fri, 13 May 2011 11:11:07 -0300 (ART) In-Reply-To: <5328177EA0C84361A654BB5EEB201D1C@us.oracle.com> (Drew Adams's message of "Thu, 12 May 2011 20:00:50 -0700") 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: Fri, 13 May 2011 10:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46447 Archived-At: > (Dunno why some people insist on using `(if (and...) singleton)'. Probably because those people find it better communicates the intent. > And it seems that `forward-comment' is otherwise buggy, in that it moves only > over whitespace when point is within a comment. Not only over whitespace: also over a nested comment. What would you want it to do instead? Jump to the end of the comment? Kind of like an `up-comment'? The forward- functions all share the following property AFAIK: when called with a positive argument with point *before* some , they will skip over that many and when called with a negative argument with point *after* some they will skip over that many . E.g. just like forward-comment, forward-sexp from within a sexp will not skip to the end of that sexp. And just like forward-sexp, forward-comment called in front of a nested comment will jump over that nested comment. All calls with point elsewhere than before/after a behave in somewhat arbitrary ways which mostly depend on how the function is implemented and what kind of structure have (e.g. can they nest? Can we easily tell when we're in the middle of a ?). Stefan