From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: drain Newsgroups: gmane.emacs.help Subject: find-file-noselect Date: Thu, 30 Aug 2012 10:15:25 -0700 (PDT) Message-ID: <1346346925167-262675.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1346346939 9477 80.91.229.3 (30 Aug 2012 17:15:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2012 17:15:39 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 19:15:40 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1T78LC-0003G0-MT for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2012 19:15:38 +0200 Original-Received: from localhost ([::1]:50011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T78LA-0007IC-CJ for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2012 13:15:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T78L1-0007I4-93 for Help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 13:15:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T78L0-0007Ng-16 for Help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 13:15:27 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:54928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T78Kz-0007NU-Sz for Help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 13:15:25 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T78Kz-0007a7-6Q for Help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 10:15:25 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86593 Archived-At: I want a function that does the same thing, but with the shell, e.g., what this does to a file: (save-excursion (let ((foo (get-buffer (find-file-noselect "/home/drain/foo.org")))) (set-buffer foo) (insert "test operation"))) In case further clarity is necessary: I want to open a shell buffer, but do not want to select it (so I stay in the current buffer). Just like the above, but with the shell instead of foo.org. -- View this message in context: http://emacs.1067599.n5.nabble.com/find-file-noselect-tp262675.html Sent from the Emacs - Help mailing list archive at Nabble.com.