From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcelo Toledo Newsgroups: gmane.emacs.devel Subject: Re: Possible change to startup.el Date: Wed, 30 Mar 2005 23:21:46 -0300 Message-ID: <878y441rnp.fsf@kali.intranet> References: <87k6no631h.fsf@kali.intranet> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112240409 24023 80.91.229.2 (31 Mar 2005 03:40:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 03:40:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 05:40:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGqWu-0001Ke-03 for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 05:39:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGqnW-0005nn-CB for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2005 22:56:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGqlS-0005F8-Ey for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:54:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGqlQ-0005EI-UE for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:54:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGqlQ-0005DE-DB for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:54:36 -0500 Original-Received: from [200.213.197.161] (helo=hm61.locaweb.com.br) by monty-python.gnu.org with smtp (Exim 4.34) id 1DGqUo-0007gF-11 for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:37:26 -0500 Original-Received: (qmail 11069 invoked from network); 31 Mar 2005 03:36:46 -0000 Original-Received: from unknown (10.1.10.10) by hm61.locaweb.com.br with QMTP; 31 Mar 2005 03:36:46 -0000 Original-Received: (qmail 23994 invoked from network); 31 Mar 2005 03:37:24 -0000 Original-Received: from unknown (HELO kali.intranet.marcelotoledo.org) (marcelo@marcelotoledo.org@201.9.94.151) by hm10.locaweb.com.br with SMTP; 31 Mar 2005 03:37:24 -0000 Original-To: emacs-devel@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUREBKVenaCZF94VlBp TEhXPzzH0uJJMS+5w9gzIiKEqtMzAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEgAACxIB0t1+/AAA AAd0SU1FB9MGCwAYJycum7IAAAH+SURBVHjavVO5bttAECUCGMGWOwICtTtL5Si1s4ThLuBRuEwk gfEPCCptwQHBUh3LRWiC2L/NLGNHqyNtCJDFPL735kyS//mIf8Z94q4BToirJDe9FxThJoYX4oqD F975Sxc/Nq33/vx/kQzr0lZVfUHxa4Na26o+A8TPghCRys0ZZdgYRECylTsDVoRKgaasPVUaC6OU VKz14E5KGRiQUuq6aWMtEQCOQ72mVsQmbqjKfC6BU749YYhmbNashWmZPbqvEcPniBynuirbIYu0 RtRkkLCydP8rjxgvtMk1EaDRVa8jk5esYiDj8jF7AhcBlsDmtpiAiPE4EBoys5xrsc/pEfjSk0a9 BOIqF/3iCNCzQTlTklOWdv/pCHyz3CoA0AykT3dHYH/LrQKjtJGg48a/mwCUQAhpEwE3C84HlZyR AV3Hg6KcDTgnWPJM4r7vC+Bcu0MA1jEgeim57aEQvToZ+w0bsAmPXRdtPPX3y8ldKm3pgSf3F3N5 KFsB75a5c7wF7u04egW8QBwnzHjx3ygiGZUKnUJjIPXJtKhMY64g/AMg6Kr+cYBXCydW3GCWCp8y nXeHcHguHN8+rDuGzCDV3bybnINaH1QgLCqg6rouxFkocaPiQwhxNvq8YyAkxqfpfNh3fuZM+bjb 7kJmju/Yie+v/x+k/LDddr8BShKMrI4evB8AAAAASUVORK5CYII= In-Reply-To: (Miles Bader's message of "Thu, 31 Mar 2005 12:20:24 +0900") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) 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:35401 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35401 Miles Bader writes: > It's not what it looks like it does. > > E.g. the patch contains the following code: > > ! (with-temp-buffer > ! (insert-file-contents tut nil 0 80) > ! (search-forward ".") > ! (buffer-substring (point-min) (point)))) > > Which seems to be searching for the end of a sentence (though this is > not a good way to do that -- it won't work with some languages), and > will in fact signal an error if there's no period in the first 80 > characters. I haven't noted that he changed from the first version I checked: ! (with-temp-buffer ! (insert-file-contents tut nil 0 80) ! (buffer-substring (point-min) (progn (end-of-line) (point))))) I agree with you: * The first line must be used entirely for "Emacs Tutorial", no more no less. * It will be centered, the position of where it is may and will vary from file to file. * The code must strip whitespace from the beginning and end, and make sure in all cases it's getting only the title (Emacs Tutorial). * Since only the first line is valuable for the code, it can be followed by an empty line (eye candy purposes). -- Marcelo Toledo marcelo@marcelotoledo.org http://www.marcelotoledo.org Mobile: 55 71 9116-1101