From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: desktop-buffer-info and set-buffer Date: Sun, 1 Mar 2015 16:06:15 +0000 Message-ID: References: <83oaocspgm.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f338fed17705103c473c X-Trace: ger.gmane.org 1425225986 28763 80.91.229.3 (1 Mar 2015 16:06:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2015 16:06:26 +0000 (UTC) Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 01 17:06:24 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YS6Nr-0000rj-8a for ged-emacs-devel@m.gmane.org; Sun, 01 Mar 2015 17:06:23 +0100 Original-Received: from localhost ([::1]:53029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS6Nq-0005tB-C7 for ged-emacs-devel@m.gmane.org; Sun, 01 Mar 2015 11:06:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS6Nm-0005t2-E9 for emacs-devel@gnu.org; Sun, 01 Mar 2015 11:06:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YS6Nl-00059p-Ky for emacs-devel@gnu.org; Sun, 01 Mar 2015 11:06:18 -0500 Original-Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:65128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS6Nk-00059W-9J; Sun, 01 Mar 2015 11:06:16 -0500 Original-Received: by mail-ob0-f174.google.com with SMTP id wo20so26739430obc.5; Sun, 01 Mar 2015 08:06:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=7orNtAHlXDc3UD3Oj/X/8VvazTz2k4OwwV7QipOuGnE=; b=CzlBHgLbsCZkTe5NwwWyZgOa7oocvCuvhp+eOJPU7mPJfuC34WdqrIrJdvD2agBc/i oJC7h1RkeBO5gliCSQ9RIBQQkV24ALxBXbhtaE75qYSAbyL3y23Nl73lwhTPETmJckpM NuoE5vhz03hyTCYTRo6BF59K3ryQRVhQYerWPd6RURFN1w9cltDuhVSIMtFkn6WNS9aF SgXvrgpoGRmrTr0OOtjFT1Nq6jxTwKC3Af5OwR9HMjyBrOihrf01vdv4tjCwWNu2pkvI DWflOYXq0osLT8yfeO/kRcqTd8tGyYqMJJS9gfeUJkgn2g1tTHe38s28ISqR+SiVlVqL fmvg== X-Received: by 10.182.68.12 with SMTP id r12mr16490189obt.84.1425225975515; Sun, 01 Mar 2015 08:06:15 -0800 (PST) Original-Received: by 10.76.130.17 with HTTP; Sun, 1 Mar 2015 08:06:15 -0800 (PST) Original-Received: by 10.76.130.17 with HTTP; Sun, 1 Mar 2015 08:06:15 -0800 (PST) In-Reply-To: <83oaocspgm.fsf@gnu.org> X-Google-Sender-Auth: v662qWfBAqm54NFuCl700GDSuS4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183547 Archived-At: --e89a8fb1f338fed17705103c473c Content-Type: text/plain; charset=UTF-8 > Why waste cycles on restoring the buffer, when it will be immediately > changed to some other buffer? Because (by name and purpose) it looks like a function without side effects, so it's a little surprising that it has. I don't think this would make a noticeable difference in performance, but if it's necessary for performance reasons I'll just write something on a docstring. --e89a8fb1f338fed17705103c473c Content-Type: text/html; charset=UTF-8

> Why waste cycles on restoring the buffer, when it will be immediately
> changed to some other buffer?

Because (by name and purpose) it looks like a function without side effects, so it's a little surprising that it has.
I don't think this would make a noticeable difference in performance, but if it's necessary for performance reasons I'll just write something on a docstring.

--e89a8fb1f338fed17705103c473c--