From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Toolbar problems with GDB mode. Date: Sun, 12 Jan 2003 00:05:16 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15904.45372.988798.93068@nick.uklinux.net> References: <200301032305.h03N5hdw022091@stubby.bodenonline.com> <15896.48557.231339.570521@nick.uklinux.net> <200301111949.h0BJneI04165@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042330075 20050 80.91.224.249 (12 Jan 2003 00:07:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2003 00:07:55 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XVfO-0005DG-00 for ; Sun, 12 Jan 2003 01:07:54 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18XVm7-0002BH-00 for ; Sun, 12 Jan 2003 01:14:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XVg3-0008F5-09 for emacs-devel@quimby.gnus.org; Sat, 11 Jan 2003 19:08:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18XVfn-0008A3-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 19:08:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18XVfk-00083o-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 19:08:17 -0500 Original-Received: from bts-0405.dialup.zetnet.co.uk ([194.247.49.149] helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XVfj-0007rW-00 for emacs-devel@gnu.org; Sat, 11 Jan 2003 19:08:16 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 490B976037; Sun, 12 Jan 2003 00:05:17 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200301111949.h0BJneI04165@rum.cs.yale.edu> X-Mailer: VM 6.97 under Emacs 21.3.50.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10675 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10675 > > + (save-excursion > > + (set-buffer buffer) > > Aka `with-current-buffer'. When I replaced functions like insert-buffer with insert-buffer-substring, I noticed that (besides not clobbering the mark) I was replacing a compiled lisp function with one that was built-in. This presumably had a speed advantage. with-current-buffer is `just a macro' (for the above construction) as is dolist (which I have used, so you can teach an old dog *some* new tricks) so presumably there is no speed advantage. Looking at dolist it might even be slower. Would it make sense for someone (more clever than me) to re-write these as built-in functions ? Nick