From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: nxml-mode does not remove its overlays Date: Sun, 09 Mar 2008 02:40:36 +0000 Message-ID: <874pbg7h7f.fsf@bzg.ath.cx> References: <47D2E76B.6080306@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205030518 14037 80.91.229.12 (9 Mar 2008 02:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2008 02:41:58 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" , Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 09 03:42:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JYBUU-0002GJ-7I for ged-emacs-devel@m.gmane.org; Sun, 09 Mar 2008 03:42:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYBTw-0005pS-7H for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 21:41:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYBTA-0005Xy-U8 for emacs-devel@gnu.org; Sat, 08 Mar 2008 21:41:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYBT6-0005WD-9g for emacs-devel@gnu.org; Sat, 08 Mar 2008 21:41:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYBT6-0005W5-4f for emacs-devel@gnu.org; Sat, 08 Mar 2008 21:40:56 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYBT5-0003gY-On for emacs-devel@gnu.org; Sat, 08 Mar 2008 21:40:55 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so1380964fga.30 for ; Sat, 08 Mar 2008 18:40:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; bh=7XTh4e14VlzTIwC2dHWy+IYxW8eyg92dmmJ1PRMRwsk=; b=B1U/fQgmYtB3Apf1fwHAT9MVjgYgMoJIlwxeUXkMXz9gDMXSAWWfHUap9zyc86PhaTbZDNEuUP5+mImujKbqL+R1ZpwE+VwTuQD3hou5SRUCr7JVtj41DVaFTurYjr0oqVFsfWqLL/XLlaLB3Pk9hV9YWZEoJ2y5g6CN1BwOSTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date:message-id:mime-version:content-type:sender; b=c9WPuWkpya/79NtQnZBsOMJQLVilZ5CaJImkVMTvAnIfObCDUOYFtwFBrxPMAmy7LXX61Xbupp0JvUWNgAAxg7E06B3ginJcK04iLhuxJjJxvma/wePDKBrwy6tL53uYtx8/IvVpzocXJ1A9zakifjdSeCmDLavYl+qpEvz8QOs= Original-Received: by 10.86.26.11 with SMTP id 11mr4043852fgz.74.1205030454853; Sat, 08 Mar 2008 18:40:54 -0800 (PST) Original-Received: from bzg.ath.cx ( [81.99.213.34]) by mx.google.com with ESMTPS id g9sm6318147gvc.4.2008.03.08.18.40.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 08 Mar 2008 18:40:53 -0800 (PST) Original-Received: by bzg.ath.cx (Postfix, from userid 1000) id 7219715796E; Sun, 9 Mar 2008 02:40:36 +0000 (GMT) In-Reply-To: (Stefan Monnier's message of "Sat, 08 Mar 2008 16:02:35 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91842 Archived-At: Stefan Monnier writes: > PS: To check if a buffer is widened, please use > (= (buffer-size) (- (point-max) (point-min))) This is something I've already been looking for several times. Maybe this could go in simple.el: (defun buffer-narrowed-p "Return non-nil if the current buffer is narrowed." (not (= (buffer-size) (- (point-max) (point-min))) -- Bastien