From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Thu, 02 Aug 2007 11:09:16 -0400 Message-ID: References: <85ejinrqgk.fsf@lola.goethe.zz> <35917.128.165.123.18.1185998078.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186067375 2973 80.91.229.12 (2 Aug 2007 15:09:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2007 15:09:35 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 02 17:09:28 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 1IGcIo-0005MY-FU for ged-emacs-devel@m.gmane.org; Thu, 02 Aug 2007 17:09:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGcIn-000167-TB for ged-emacs-devel@m.gmane.org; Thu, 02 Aug 2007 11:09:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGcIk-00011N-96 for emacs-devel@gnu.org; Thu, 02 Aug 2007 11:09:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGcIj-0000yu-Gw for emacs-devel@gnu.org; Thu, 02 Aug 2007 11:09:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGcIj-0000yJ-8t for emacs-devel@gnu.org; Thu, 02 Aug 2007 11:09:21 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IGcIg-0000nU-KM; Thu, 02 Aug 2007 11:09:18 -0400 Original-Received: from pastel.home ([74.12.205.233]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070802150916.MPPA7033.tomts36-srv.bellnexxia.net@pastel.home>; Thu, 2 Aug 2007 11:09:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9315F80CD; Thu, 2 Aug 2007 11:09:16 -0400 (EDT) In-Reply-To: <35917.128.165.123.18.1185998078.squirrel@webmail.lanl.gov> (Davis Herring's message of "Wed\, 1 Aug 2007 12\:54\:38 -0700 \(PDT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:75955 Archived-At: > 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. Great idea. This way we can even extend this to allow opening several files/buffers at startup: we just have to concatenate the corresponding file names and buffer names (separated by spaces, for example) and place the corresponding `buffer' or `file' property on each part. And it's all trivial for the beginner since it still just a string: none of that sexp madness. Stefan