From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#7151: `set-marker' narrowing and proposed feature `buffer-narrowed-p' Date: Fri, 07 Sep 2012 17:00:20 +0800 Message-ID: <87ipbq5hsr.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347008455 19894 80.91.229.3 (7 Sep 2012 09:00:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 09:00:55 +0000 (UTC) Cc: 7151@debbugs.gnu.org To: MON KEY Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 07 11:00:57 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T9uQp-0006LD-Mm for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2012 11:00:56 +0200 Original-Received: from localhost ([::1]:47615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9uQm-0005Ji-BI for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2012 05:00:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9uQj-0005JO-74 for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2012 05:00:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9uQg-0000Ml-1C for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2012 05:00:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9uQf-0000Md-MS for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2012 05:00:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9uQv-0000wK-LZ for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2012 05:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Sep 2012 09:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7151-submit@debbugs.gnu.org id=B7151.13470084503590 (code B ref 7151); Fri, 07 Sep 2012 09:01:01 +0000 Original-Received: (at 7151) by debbugs.gnu.org; 7 Sep 2012 09:00:50 +0000 Original-Received: from localhost ([127.0.0.1]:45414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9uQh-0000vp-Ih for submit@debbugs.gnu.org; Fri, 07 Sep 2012 05:00:49 -0400 Original-Received: from mail-ie0-f172.google.com ([209.85.223.172]:46833) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9uQe-0000vh-E6 for 7151@debbugs.gnu.org; Fri, 07 Sep 2012 05:00:45 -0400 Original-Received: by ieak13 with SMTP id k13so4618257iea.3 for <7151@debbugs.gnu.org>; Fri, 07 Sep 2012 02:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=LhswzMQIP3PgYanaRmtrxLuYmKG5XBetH81zYmIvj18=; b=ADYX0JTUp36oY/uK5lRmsOiQG7kSvdtPUr3WPfm1KBsVUwWbPhiccAmJWwqWWreEL4 exYUK3123ogezX8vCjzXYvGBlOW41xW89WY4dbpHQJphi7dPfQRg8B9JbRagtRFdDPwU gRKObTDZZd4bYZgVr4bqRoda4ggSjMbXMZOJnhMUEvuaFI2Zk8qgr5fItgVF60MtUCBv ocJMnS2pTbtQcftEE85A8UY3PCKhsUke8ViVz6cmtaszqc+fl0FRa8xG3PH+ItG4qw76 FYPoF0a1Ern3qxgW5XgVTMCjT7xgrRy2Lt0uc507MEHjklqUlpsMvG7ZJWGxf32FYeiO ktPQ== Original-Received: by 10.50.154.164 with SMTP id vp4mr7328955igb.66.1347008426890; Fri, 07 Sep 2012 02:00:26 -0700 (PDT) Original-Received: from ulysses ([155.69.18.183]) by mx.google.com with ESMTPS id ce6sm7392890igb.1.2012.09.07.02.00.23 (version=SSLv3 cipher=OTHER); Fri, 07 Sep 2012 02:00:25 -0700 (PDT) In-Reply-To: (MON KEY's message of "Sat, 2 Oct 2010 14:12:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63890 Archived-At: MON KEY writes: > Some mention in the above section should be made of `buffer-size' so users can > now how to check if the buffer is narrowed. Done. Thanks for the suggestion. > Likewise, docstrings of `>', `<', `<=', `>=', all indicate their > arguments: > | Both must be numbers or markers. > There is a discrepancy here in that the following signals an error: > > (let ((mk-mrk (make-marker))) > (set-marker mk-mrk nil) > (> mk-mrk (point-max))) > ;=> (error "Marker does not point anywhere") > > I think some mention of these anomalies should be made in the > respective docs in addition to the scattered lisp service provided by > the manual. I don't think this is worth documenting; we don't document every single error condition, and this one is easy to figure out. > I would also like to propose addition of a new function > `buffer-narrowed-p'. Thanks for the suggestion. I committed a much simpler version.