From unknown Fri Aug 15 16:01:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19694: 24.4; --insert command-line switch does not behave as documented Resent-From: vampyrebat@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jan 2015 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19694 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19694@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.142229082531904 (code B ref -1); Mon, 26 Jan 2015 16:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jan 2015 16:47:05 +0000 Received: from localhost ([127.0.0.1]:57226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFmoa-0008IL-M7 for submit@debbugs.gnu.org; Mon, 26 Jan 2015 11:47:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49688) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFafQ-0004xj-Rl for submit@debbugs.gnu.org; Sun, 25 Jan 2015 22:48:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFafK-0004l6-7H for submit@debbugs.gnu.org; Sun, 25 Jan 2015 22:48:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFafK-0004l2-4G for submit@debbugs.gnu.org; Sun, 25 Jan 2015 22:48:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFafI-0000sj-BS for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 22:48:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFafG-0004jp-Tc for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 22:48:40 -0500 Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:43745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFafG-0004jh-Mw for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 22:48:38 -0500 Received: by mail-oi0-f51.google.com with SMTP id x69so5474746oia.10 for ; Sun, 25 Jan 2015 19:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:subject; bh=KoqAXeC5UEcN2Yc+LfI8/LeSiRLaLB6nex8iGqWmvxU=; b=gG9T/RWQXRZYgDUNCiuaFz51lIQzrhTsf9Jq1NsH3dJ/bmPvEAKrZbNaPVX3Fl4wbk dOA6iZYKD5BY1afiUYuILuRP9KFBKmJBTpdXdBNXbCxRFuKjQCwQVzsypdKYO+TU9wvV d+nYbizvRzBhO7mxylP+GrL2dPJOWt1GzaxsJ6AYd8TkkoQHZ/ofhcpfJkpjQ0Vzw8PZ BapDqxIWJNgSkPKzPMLtLjHCd2ZXEY9o33tsLYxXaatT2RE/r1xfq714zt4WyBOQ4q40 HMm0F5CyYbhEP3wN6rNJ5dcxihPSPxDEEYe9m4z4RuqnjrZbSKsce5vjosKu0T8VAX50 7VHQ== X-Received: by 10.182.48.137 with SMTP id l9mr11640940obn.43.1422244117392; Sun, 25 Jan 2015 19:48:37 -0800 (PST) Received: from evo ([2605:6000:ee4a:2900:6250:c93b:e4d4:b4bc]) by mx.google.com with ESMTPSA id o5sm4748757obz.9.2015.01.25.19.48.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jan 2015 19:48:36 -0800 (PST) Message-ID: <54c5b914.6556b60a.5bb6.3a48@mx.google.com> Received: by evo (sSMTP sendmail emulation); Sun, 25 Jan 2015 21:48:33 -0600 Date: Sun, 25 Jan 2015 21:48:33 -0600 From: vampyrebat@gmail.com X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Mon, 26 Jan 2015 11:47:01 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The emacs info manual states that the command-line option --insert=FILE will "Insert the contents of FILE into the `*scratch*' buffer." However, whether this option works as documented depends on where it appears in the command line. Thus: emacs --insert=file1 file2 brings up file2 in a buffer with that name, and places the contents of file1 in *scratch*, as documented. But: emacs file1 --insert=file2 which the documentation states should put file1 in a buffer with that name and the contents of file2 in *scratch*, instead brings up a buffer with file1's name, containing the contents of file2 followed by the contents of file1, and leaves *scratch* empty. In GNU Emacs 24.4.1 (i686-pc-linux-gnu) of 2015-01-10 on evo Windowing system distributor `The X.Org Foundation', version 11.0.11204000 Configured using: `configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib --program-suffix=-emacs-24 --infodir=/usr/share/info/emacs-24 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=games --without-compress-install --with-file-notification=inotify --enable-acl --with-dbus --without-gnutls --with-gpm --without-hesiod --without-kerberos --without-kerberos5 --without-xml2 --without-selinux --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --without-xft --without-libotf --without-m17n-flt --with-x-toolkit=no GENTOO_PACKAGE=app-editors/emacs-24.4-r1 'CFLAGS=-O2 -march=native -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Important settings: value of $LC_COLLATE: C value of $LANG: en_US locale-coding-system: iso-latin-1-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: x r e p o SPC r SPC SPC SPC SPC Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu site-gentoo time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind inotify dynamic-setting x multi-tty emacs) Memory information: ((conses 8 73138 8078) (symbols 24 17526 0) (miscs 20 78 193) (strings 16 9187 4169) (string-bytes 1 255511) (vectors 8 9069) (vector-slots 4 381647 6050) (floats 8 66 281) (intervals 28 372 377) (buffers 512 13) (heap 1024 34691 462)) From unknown Fri Aug 15 16:01:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: vampyrebat@gmail.com Subject: bug#19694: closed (Re: bug#19694: 24.4; --insert command-line switch does not behave as documented) Message-ID: References: <83wq49phcu.fsf@gnu.org> <54c5b914.6556b60a.5bb6.3a48@mx.google.com> X-Gnu-PR-Message: they-closed 19694 X-Gnu-PR-Package: emacs Reply-To: 19694@debbugs.gnu.org Date: Mon, 26 Jan 2015 17:45:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1422294303-5373-1" This is a multi-part message in MIME format... ------------=_1422294303-5373-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19694: 24.4; --insert command-line switch does not behave as documented which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19694@debbugs.gnu.org. --=20 19694: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19694 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1422294303-5373-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19694-done) by debbugs.gnu.org; 26 Jan 2015 17:44:26 +0000 Received: from localhost ([127.0.0.1]:57280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFni5-0001Nd-Mj for submit@debbugs.gnu.org; Mon, 26 Jan 2015 12:44:25 -0500 Received: from mtaout28.012.net.il ([80.179.55.184]:54578) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFni1-0001NI-1Q for 19694-done@debbugs.gnu.org; Mon, 26 Jan 2015 12:44:22 -0500 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NIS00300P2LOC00@mtaout28.012.net.il> for 19694-done@debbugs.gnu.org; Mon, 26 Jan 2015 19:42:22 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIS00LXEP6LTI60@mtaout28.012.net.il>; Mon, 26 Jan 2015 19:42:22 +0200 (IST) Date: Mon, 26 Jan 2015 19:44:01 +0200 From: Eli Zaretskii Subject: Re: bug#19694: 24.4; --insert command-line switch does not behave as documented In-reply-to: <54c5b914.6556b60a.5bb6.3a48@mx.google.com> X-012-Sender: halo1@inter.net.il To: vampyrebat@gmail.com Message-id: <83wq49phcu.fsf@gnu.org> References: <54c5b914.6556b60a.5bb6.3a48@mx.google.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19694-done Cc: 19694-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sun, 25 Jan 2015 21:48:33 -0600 > From: vampyrebat@gmail.com > > The emacs info manual states that the command-line option --insert=FILE > will "Insert the contents of FILE into the `*scratch*' buffer." > However, whether this option works as documented depends on where it > appears in the command line. Thus: > > emacs --insert=file1 file2 > > brings up file2 in a buffer with that name, and places the contents of > file1 in *scratch*, as documented. But: > > emacs file1 --insert=file2 > > which the documentation states should put file1 in a buffer with that > name and the contents of file2 in *scratch*, instead brings up a buffer > with file1's name, containing the contents of file2 followed by the > contents of file1, and leaves *scratch* empty. Thanks, I fixed the manual. ("emacs --help" described this option correctly.) ------------=_1422294303-5373-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jan 2015 16:47:05 +0000 Received: from localhost ([127.0.0.1]:57226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFmoa-0008IL-M7 for submit@debbugs.gnu.org; Mon, 26 Jan 2015 11:47:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49688) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YFafQ-0004xj-Rl for submit@debbugs.gnu.org; Sun, 25 Jan 2015 22:48:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFafK-0004l6-7H for submit@debbugs.gnu.org; Sun, 25 Jan 2015 22:48:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFafK-0004l2-4G for submit@debbugs.gnu.org; Sun, 25 Jan 2015 22:48:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFafI-0000sj-BS for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 22:48:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFafG-0004jp-Tc for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 22:48:40 -0500 Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:43745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFafG-0004jh-Mw for bug-gnu-emacs@gnu.org; Sun, 25 Jan 2015 22:48:38 -0500 Received: by mail-oi0-f51.google.com with SMTP id x69so5474746oia.10 for ; Sun, 25 Jan 2015 19:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:subject; bh=KoqAXeC5UEcN2Yc+LfI8/LeSiRLaLB6nex8iGqWmvxU=; b=gG9T/RWQXRZYgDUNCiuaFz51lIQzrhTsf9Jq1NsH3dJ/bmPvEAKrZbNaPVX3Fl4wbk dOA6iZYKD5BY1afiUYuILuRP9KFBKmJBTpdXdBNXbCxRFuKjQCwQVzsypdKYO+TU9wvV d+nYbizvRzBhO7mxylP+GrL2dPJOWt1GzaxsJ6AYd8TkkoQHZ/ofhcpfJkpjQ0Vzw8PZ BapDqxIWJNgSkPKzPMLtLjHCd2ZXEY9o33tsLYxXaatT2RE/r1xfq714zt4WyBOQ4q40 HMm0F5CyYbhEP3wN6rNJ5dcxihPSPxDEEYe9m4z4RuqnjrZbSKsce5vjosKu0T8VAX50 7VHQ== X-Received: by 10.182.48.137 with SMTP id l9mr11640940obn.43.1422244117392; Sun, 25 Jan 2015 19:48:37 -0800 (PST) Received: from evo ([2605:6000:ee4a:2900:6250:c93b:e4d4:b4bc]) by mx.google.com with ESMTPSA id o5sm4748757obz.9.2015.01.25.19.48.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jan 2015 19:48:36 -0800 (PST) Message-ID: <54c5b914.6556b60a.5bb6.3a48@mx.google.com> Received: by evo (sSMTP sendmail emulation); Sun, 25 Jan 2015 21:48:33 -0600 Date: Sun, 25 Jan 2015 21:48:33 -0600 From: vampyrebat@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.4; --insert command-line switch does not behave as documented X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 26 Jan 2015 11:47:01 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The emacs info manual states that the command-line option --insert=FILE will "Insert the contents of FILE into the `*scratch*' buffer." However, whether this option works as documented depends on where it appears in the command line. Thus: emacs --insert=file1 file2 brings up file2 in a buffer with that name, and places the contents of file1 in *scratch*, as documented. But: emacs file1 --insert=file2 which the documentation states should put file1 in a buffer with that name and the contents of file2 in *scratch*, instead brings up a buffer with file1's name, containing the contents of file2 followed by the contents of file1, and leaves *scratch* empty. In GNU Emacs 24.4.1 (i686-pc-linux-gnu) of 2015-01-10 on evo Windowing system distributor `The X.Org Foundation', version 11.0.11204000 Configured using: `configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib --program-suffix=-emacs-24 --infodir=/usr/share/info/emacs-24 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=games --without-compress-install --with-file-notification=inotify --enable-acl --with-dbus --without-gnutls --with-gpm --without-hesiod --without-kerberos --without-kerberos5 --without-xml2 --without-selinux --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --without-imagemagick --without-xft --without-libotf --without-m17n-flt --with-x-toolkit=no GENTOO_PACKAGE=app-editors/emacs-24.4-r1 'CFLAGS=-O2 -march=native -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Important settings: value of $LC_COLLATE: C value of $LANG: en_US locale-coding-system: iso-latin-1-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent input: x r e p o SPC r SPC SPC SPC SPC Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu site-gentoo time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind inotify dynamic-setting x multi-tty emacs) Memory information: ((conses 8 73138 8078) (symbols 24 17526 0) (miscs 20 78 193) (strings 16 9187 4169) (string-bytes 1 255511) (vectors 8 9069) (vector-slots 4 381647 6050) (floats 8 66 281) (intervals 28 372 377) (buffers 512 13) (heap 1024 34691 462)) ------------=_1422294303-5373-1--