From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: command-line option for virgin session? Date: Sat, 23 May 2009 14:47:23 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243115256 1223 80.91.229.12 (23 May 2009 21:47:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2009 21:47:36 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 23 23:47:29 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M7z3w-0008J4-6V for ged-emacs-devel@m.gmane.org; Sat, 23 May 2009 23:47:28 +0200 Original-Received: from localhost ([127.0.0.1]:54368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7z3v-0001gs-Fl for ged-emacs-devel@m.gmane.org; Sat, 23 May 2009 17:47:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7z3r-0001gn-I4 for emacs-devel@gnu.org; Sat, 23 May 2009 17:47:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7z3n-0001fa-Rt for emacs-devel@gnu.org; Sat, 23 May 2009 17:47:23 -0400 Original-Received: from [199.232.76.173] (port=42611 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7z3n-0001fX-LS for emacs-devel@gnu.org; Sat, 23 May 2009 17:47:19 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:22120) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7z3m-00065e-Ty for emacs-devel@gnu.org; Sat, 23 May 2009 17:47:19 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4NLllsX007478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 23 May 2009 21:47:48 GMT Original-Received: from abhmt006.oracle.com (abhmt006.oracle.com [141.146.116.15]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4NLluP9006024 for ; Sat, 23 May 2009 21:47:56 GMT Original-Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 23 May 2009 14:47:11 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acnb8A58fDL52HibSsq0qPUWDZ3qUQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt006.oracle.com [141.146.116.15] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010206.4A186EE0.00EF:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:111038 Archived-At: We have command-line options such as -Q, that start up Emacs without loading initialization files of one form or another. We have a command-line option, --no-desktop, to not load any saved desktop file. Should we have a command-line option that prevents Emacs from recognizing all such saved-state files (those written and read by vanilla Emacs)? Bookmarks, history, recent files, stuff in .emacs.d, filesets cache... I tend to use -Q for testing and for sending bug reports. Anything beyond what any other user would start with is really just extra baggage, and could potentially get in the way. OK, we could add a --no-bookmarks option, and so on, but why not just let -Q do this in general? That is, have -Q provide a virgin Emacs session that recognizes no previous-session state. (Or if -Q needs to be kept as it is for some reason, then how about adding another, more general option to do this?) Beyond making Emacs ignore past sessions, we might even consider adding another (different) command-line option that would ignore env var values (`user-login-name' etc.). (No, I don't have a specific need in mind for these things; this is all just hypothetical.) (I'm a bit surprised that -Q doesn't include --no-desktop, unless it's because the Desktop is not restored anyway with -Q. But if that's the case, then the doc should say that -Q includes --no-desktop, just as it says that it includes --no-site-file.)