From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.90; desktop-save throws (error "No buffer named ") Date: Tue, 12 Feb 2008 05:15:10 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202789731 29432 80.91.229.12 (12 Feb 2008 04:15:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 04:15:31 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Martin Fischer To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 05:15:54 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 1JOmYj-0002tV-2w for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 05:15:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOmYF-0004GI-Ga for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 23:15:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOmYA-0004CG-8i for emacs-devel@gnu.org; Mon, 11 Feb 2008 23:15:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOmY8-00048A-P2 for emacs-devel@gnu.org; Mon, 11 Feb 2008 23:15:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOmY8-00047t-FB for emacs-devel@gnu.org; Mon, 11 Feb 2008 23:15:16 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOmY8-0001kq-H3 for emacs-devel@gnu.org; Mon, 11 Feb 2008 23:15:16 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JOmY8-0004OX-0S for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 23:15:16 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JOmY5-0001k5-2P for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 23:15:16 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOmY4-0001js-OA for emacs-pretest-bug@gnu.org; Mon, 11 Feb 2008 23:15:12 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2419671wah.10 for ; Mon, 11 Feb 2008 20:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=EysLw+bPx7zQ0XZpqZ0C7YPlCZwWj+ypAWwEegIYjMY=; b=iQhbVd0kz2j8smclaY3g8k0dhgSbmJHo2w9jPUTKqGPpADhr5D5JO7P72AqfA73Hul3E2kd9jHCWiYL/wSeAjbcFLJOOt740PCWLy26i3RFOQEwscbvbLd8iuHBH/WmbimCkjcMnS/cWLIzxBe7Ag2unh3xB1/BQLw0V1pP8BS4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mDFEhGb2PhCMfEwCtOklwIW0+psi+xe07dX5219iI5M5c37vv9qMVnB7SuWH4w0+5Ptk8zS4tFqUclweB1Y1rAynAk7vz8ueJWwDkAbcj3p158OGd6Hnw3gz/eDFAkuZ4a61Ris3EYZ7yqNWtLmTAC3EhRDtviwt2eOTuUt2+MY= Original-Received: by 10.115.94.1 with SMTP id w1mr912537wal.85.1202789710858; Mon, 11 Feb 2008 20:15:10 -0800 (PST) Original-Received: by 10.114.170.5 with HTTP; Mon, 11 Feb 2008 20:15:10 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:88832 gmane.emacs.pretest.bugs:21041 Archived-At: On Feb 12, 2008 4:39 AM, Stefan Monnier wrote: > Yes, very much so. Glad to hear. > > +(defun uniquify-buffer-base-name () > > + "Return the base name of the current buffer." > > + (and (bound-and-true-p uniquify-managed) > > + (uniquify-item-base (car uniquify-managed)))) > > There's a (defvar uniquify-managed nil ...) earlier in that file, so you > shouldn't need the `bound-and-true-p', just use Hmm. IIUC, you're saying than if `uniquify-buffer-base-name' is run, then uniquify.el has been loaded and so `uniquify-managed' will be bound, even if it has no buffer-local value for the buffer being tested... You're right. I was thinking of cases when uniquify.el were not loaded, but they don't apply here. > (defun uniquify-buffer-base-name () > "Return the base name of the current buffer. > Return nil if the buffer is not managed by uniquify." OK. Juanma