From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#20682: 25.0.50; Enable users to combine --script and --quick Date: Thu, 28 May 2015 15:57:15 +0200 Message-ID: <878uc8pzyc.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1432821508 28346 80.91.229.3 (28 May 2015 13:58:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2015 13:58:28 +0000 (UTC) To: 20682@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 28 15:58:16 2015 Return-path: Envelope-to: geb-bug-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 1YxyK7-0003c3-Dq for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2015 15:58:15 +0200 Original-Received: from localhost ([::1]:59104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxyK7-00026G-06 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2015 09:58:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxyJy-00026B-RQ for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxyJv-00012U-JT for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:58:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxyJv-00012Q-Fb for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YxyJv-0005i6-5H for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:58:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 May 2015 13:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20682 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143282145421919 (code B ref -1); Thu, 28 May 2015 13:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 May 2015 13:57:34 +0000 Original-Received: from localhost ([127.0.0.1]:59610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxyJQ-0005hT-VU for submit@debbugs.gnu.org; Thu, 28 May 2015 09:57:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48604) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxyJN-0005hL-Sl for submit@debbugs.gnu.org; Thu, 28 May 2015 09:57:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxyJH-0000vh-I2 for submit@debbugs.gnu.org; Thu, 28 May 2015 09:57:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxyJH-0000vd-Fk for submit@debbugs.gnu.org; Thu, 28 May 2015 09:57:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxyJG-00023P-9P for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:57:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxyJD-0000ut-35 for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:57:22 -0400 Original-Received: from mout.web.de ([212.227.17.11]:56286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxyJC-0000un-Oo for bug-gnu-emacs@gnu.org; Thu, 28 May 2015 09:57:19 -0400 Original-Received: from drachen.dragon ([178.10.202.12]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MGign-1YtJb22buT-00DVXy; Thu, 28 May 2015 15:57:17 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:g0qzVBXLEOyESxOjEpgjEpOTM4MFqhKsGi/wJ7A9Dpc3VezVBUe jC1Vfo+YA9bm8hNttrpSL9kVEngFWuKEg4YbsMo7wrzQNpfJ6NYlje3cvJImi5LirjqBvJE ijTBbYaY2cZVodd0UfkW2i3CSqenBJuYcTrATgafKZz4cGKVQXmHQ5b48yADAmUoStY9eKa /IVnj2S6hJfa7t8BA8d1w== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103262 Archived-At: Hello! This is a feature request to enable users to write emacs scripts (=C3=A0 la --script) that can be executed in a way that --quick does (i.e. avoid loading site stuff). AFAIK this is not directly possible currently, because if you try with a file starting like this: #!/usr/bin/emacs -Q --script the "#!" implementation on most Unices will not be able to pass more than one argument to the interpreter. The only thing that can be done to force --quick is to define a separate interpreter like this: --8<---------------cut here---------------start------------->8--- #!/bin/bash emacs --quick --script $@ --8<---------------cut here---------------end--------------->8--- (suggested by saint@eng.it in g.e.help). I have been told in the same thread that if --script would be available as -s, one could start scripts with "#!/usr/bin/emacs -Qs" and that would already solve the problem. These are the main reason why using --quick can be desirable: - There are no messages like: Loading 00debian-vars... Loading /etc/emacs/site-start.d/50a2ps.el (source)... Loading /etc/emacs/site-start.d/50autoconf.el (source)... Loading /etc/emacs/site-start.d/50cmake-data.el (source)... Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (sour= ce)... Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source= )... Loading /etc/emacs/site-start.d/51debian-el.el (source)... when running a script. That would be a nice thing if you wanted to write something like wc or so. - It would speed up startup by a factor of five (for me, 0.01 secs vs. 0.002 secs when using the wrapper from above) - It might not be necessary to load site stuff. On the contrary, if you want to write portable scripts, it might be more desirable to be able to write environment independent scripts Many thanks, Michael. In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2015-05-27 on drachen Windowing system distributor `The X.Org Foundation', version 11.0.11701000 System Description: Debian GNU/Linux testing (stretch) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB