From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Udyant Wig Newsgroups: gmane.emacs.help Subject: Obtaining a Lisp form from a file Date: Tue, 25 Jul 2017 22:50:08 +0530 Message-ID: <03ed89e8-1a56-a328-0487-0d3eccec170f@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1501003543 27275 195.159.176.226 (25 Jul 2017 17:25:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2017 17:25:43 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 25 19:25:35 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1da3aQ-0006da-7E for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jul 2017 19:25:34 +0200 Original-Received: from localhost ([::1]:33783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da3aV-0007se-VK for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jul 2017 13:25:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da3VL-0004Co-Au for help-gnu-emacs@gnu.org; Tue, 25 Jul 2017 13:20:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1da3VH-0001cH-B6 for help-gnu-emacs@gnu.org; Tue, 25 Jul 2017 13:20:19 -0400 Original-Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:38365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1da3VH-0001aU-5e for help-gnu-emacs@gnu.org; Tue, 25 Jul 2017 13:20:15 -0400 Original-Received: by mail-pf0-x241.google.com with SMTP id c23so13367201pfe.5 for ; Tue, 25 Jul 2017 10:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=gRuzbpp980zQvOQ3smYzVcUWxplu8T733aIDIUeOPr4=; b=EPi6C+RTXMKDMN1fbc6GYatEmtQMZ0rUd8Kn8DAX/5zEV1kbYjepsdBmfR0PZYbQHb 127WaLOFhKPV3r3SZZpcyW1vdAeJ+lPmVy5gQCj/NbBpo09WGME55AWMOkrzEPagrvZ/ PHs1USF+eFIRz9dasjzBD5DDzFHMPfsetOQcFGOtlukY3qBEo6GuhQg7a0tH25Pf/N9P Y+T1KdOhC6y5aP77PX1OOKdiST8fwSCV8RXcsMBJJpd/Ry9m2HeYXYqLa/5XC6cDmzgM S7q1dR+e4x8JFn8jcooMXUa7v1HK6lKYl7LkJuchC+d2EdN3qZCORtoa/VikHvFbrDP3 LxrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=gRuzbpp980zQvOQ3smYzVcUWxplu8T733aIDIUeOPr4=; b=mgNntx17lDOigK2UavBjIFv3zj1pG8rqBZctPMVqPDnOSOdbB/YiUmjHIk9YL+92iL 91C3ewGl9xvhYcwL8nOtbCvf9JiF2e8Huui8p7Thm7q1eDFHZodH0NvDx2+xMgZjcwHI 5gWM4utHIWahBEbIEKyfWm7LNydVrPAR+Tp0SQj++EOvIruNT3SsckCZdylaccxCnZuH WHTtoiyoiz4w34P/aId/ICQOBLS5tEOP0FBMxrjgd6TbrEoXjYagJG/1wPjkMl7nYyXw Z8h/NxybuHM2eeKcofwQQyXEA3em9uvAm1RUZb91rphoUJc4XJYWzUkb4Nu0uRwrY1Fo P7bQ== X-Gm-Message-State: AIVw113i9IXUdmKgSCFET1zXivp9t/HBw4um70dmigvj55X2RLkGykag So319TQHFidgPhq/e9k= X-Received: by 10.98.160.131 with SMTP id p3mr19860675pfl.236.1501003212535; Tue, 25 Jul 2017 10:20:12 -0700 (PDT) Original-Received: from [192.168.1.235] ([182.70.143.56]) by smtp.gmail.com with ESMTPSA id q66sm25176276pfb.188.2017.07.25.10.20.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 10:20:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113861 Archived-At: Is there a better way to write this? (let ((foo-buffer (get-buffer-create "*foo*")) foo-form) (with-current-buffer foo-buffer (insert-file-contents foo-file)) (setq foo-form (read foo-buffer)) (kill-buffer foo-buffer) foo-form) -- ... while the ways of art are hard at the best, they will break you if you go unsustained by belief in what you are trying to do. -- Arthur Quiller-Couch