From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Wed, 1 Aug 2007 12:54:38 -0700 (PDT) Message-ID: <35917.128.165.123.18.1185998078.squirrel@webmail.lanl.gov> References: <85ejinrqgk.fsf@lola.goethe.zz> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1185998145 875 80.91.229.12 (1 Aug 2007 19:55:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2007 19:55:45 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: "David Kastrup" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 21:55:38 2007 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 1IGKIE-00018j-57 for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 21:55:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGKID-0002TX-P8 for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 15:55:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGKHV-0001kq-MP for emacs-devel@gnu.org; Wed, 01 Aug 2007 15:54:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGKHU-0001k0-VW for emacs-devel@gnu.org; Wed, 01 Aug 2007 15:54:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGKHU-0001jt-Ob for emacs-devel@gnu.org; Wed, 01 Aug 2007 15:54:52 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IGKHQ-0006FW-I1; Wed, 01 Aug 2007 15:54:48 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l71JsdG7016622; Wed, 1 Aug 2007 13:54:39 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l71JsdUJ003383; Wed, 1 Aug 2007 13:54:39 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l71JsciM014044; Wed, 1 Aug 2007 13:54:38 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l71Jsc1J014040; Wed, 1 Aug 2007 12:54:38 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 1 Aug 2007 12:54:38 -0700 (PDT) In-Reply-To: <85ejinrqgk.fsf@lola.goethe.zz> User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-Detected-Kernel: Linux 2.4-2.6 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:75931 Archived-At: > But wearing the others out is not going to address the underlying > technical _facts_ of their objections. It is not a matter of opinion > that a string does not carry "file", "buffer", "whatever" markers > associated with it. Why do you think we have text properties? We can even propertize different parts of the string differently. So we can have "namename" with (file t) on the first four characters and (buffer t) on the others to name both the file and the buffer into which it goes. Stefan (who wants ".") can mark that as (directory t absolute nil) which takes care of the where-emacs-is-run-or-not problem, and if the string is exactly "eval", then its property list is evalled and we can do whatever else is needed. Add a 'mode property, and a 'vars property which is a list of buffer-local bindings to set (to support buffer-offer-save for persistent *scratch*)... I bet with this one string-valued variable we could do away with .emacs altogether! Davis PS - What little of this idea isn't sheer madness is of course the same as what's already proposed: (tag . str) where tag reflects the user's choice of action: t for a buffer or 'file (or 'url, or...), with support for ~ in filenames to make absolute names easy to type. -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.