From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.bugs Subject: bug#36679: 27.0.50; Add switches option to term (feature request) Date: Mon, 15 Jul 2019 23:07:43 +0200 Message-ID: <20190715210743.iq2oz35olul2uzpt@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="212530"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 To: 36679@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 23:10:45 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hn8F9-000tAO-RZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 23:10:44 +0200 Original-Received: from localhost ([::1]:43841 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn8F8-0000g1-At for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 17:10:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42490) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn8DZ-0002Jp-Cu for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn8DX-0005Dn-El for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:09:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40461) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn8DW-0005Ct-IT for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn8DW-0004bh-Ad for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jul 2019 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36679 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156322488717599 (code B ref -1); Mon, 15 Jul 2019 21:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jul 2019 21:08:07 +0000 Original-Received: from localhost ([127.0.0.1]:49281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn8Cc-0004Zm-LD for submit@debbugs.gnu.org; Mon, 15 Jul 2019 17:08:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn8CV-0004ZG-Lc for submit@debbugs.gnu.org; Mon, 15 Jul 2019 17:08:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42116) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn8CU-0007xV-H0 for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:07:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn8CT-0004VS-8D for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:07:58 -0400 Original-Received: from sonic308-18.consmr.mail.ir2.yahoo.com ([77.238.178.146]:41268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn8CS-0004Rk-9A for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 17:07:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1563224872; bh=PU3sAQnHcwjqRe2jz+J/Ajij+e5gIl1RDlCoQpQsbQU=; h=Date:From:To:Subject:From:Subject; b=trzu+YrUnQMox5QS2+lLkjWYnJIdoslmfVNnLxS8sIwZn1HE8s8n6PqGhtZcFHZngp2Tb93wWU0dZ7hgCD7S7rAhzp449mQfL2RHpgVE4FlPjDXC3GhQbnPMSk/NWq1EqBRCVIX+8D3fl1TZMj0aaPXVDbklu26yFqYozPFt/vZMv6wr1UREEDTeQu6n+0nkdd5XGWG+2S3Ach580110PF+BnqlnhFCff5ziRsfeokBclSINsVdgJh4k1zkiL/hbTA39vqxzK+L1q8KvED87Z3tQm44zOqrohIgIpEkZZLYariUHD0RvFvdTi19mnGaGWLCWSk1r9YioZ5cvQhMErA== X-YMail-OSG: ZxgaxxgVM1kLDjoA16RSGFiPHRjU1zcAKe3DYNfOWylaSWIsDeDpHyVoPRpOFkw 7JFHI8I2Sh1YDZrtefU4BNzorhIHjG.WpNd3dm3qUchti2ZaLr3.S8Vp2GiUZMup_hZJvYIaS3tZ 1UCntNwIMRkiX4Z7tVI4n7CAyo8_gN6YMjr9ETaJLU5d_4RuKJ5zDffUCOSH9D5ZJbQ6aVSWOG47 wVuZvVMUSpKBcgdY6iIHHy75Sivj9UYVQobgL7ZZKbnKTk..rga2W5SSdCtlW40IIGFTPkDSv8tZ mArvd4LsK1RtkO8h33PzBJZ7Vvikf6gR6B8JmWZaqERSvfpntt5w.hDB4WyW3e7yrO.BuDyTvXwN 63Z91vDi8wvmzCA8M7zAYdo6A6JkJ.PtchEw4AxYSe7haBlrj_S6cZuUZ8wpnBvDl9Nv46sWw862 QV9CQJcaDCoRlHRX5dX31aITQIIHfIq1cOHc1JSuA_PXuJiHIfNpv2YR8WhAzR.Non4ZiXHDn2vN swXahBuyhJC1gEwCsXbYwPz7To6bMKJAkM9ZWizrYfd9Kof72MoRtUM_Z3qz0mmf6N.5DCT1ySl. jwXfq6fVHtXFFcbjH3v.A9WER73YrgEqBmPfkjK_nxOGDAGiZim7Z38ERyloiz42A_j8.7VlT5yy ddj1ayXcNNZ9LmjkcEIKVxqjoy2XlnccqM5.hO_5cpBMzcPhu23lXtBMtSyXc3lmDVAKJK.04lly aBT6a8Yszz3FuYEf0KpXHbxW.KrgG72Sonv3SDeQnPGiBuYB9.Kr6T.zY8cdw1ax4U7IIIEn9qVK teJqlOYgnIQdRYVi5Wp0yFLPRcCI1OcmCRCDMTRwiF Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Mon, 15 Jul 2019 21:07:52 +0000 Original-Received: by smtp428.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0ae011c9485f42e0803cc12cd6752a6b; Mon, 15 Jul 2019 21:07:49 +0000 (UTC) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:163169 Archived-At: Is it possible to add a variable like term-switches (or equivalents) in order to add options to initialize the shells when calling term? Because some users (like me) need to use term as a login shell so I need to pass the --login options. make-term already brings this option, so this is a very small change more or less like: (defvar term-program-switches nil) (defun term (program) "Start a terminal-emulator in a new buffer. The buffer is in Term mode; see `term-mode' for the commands to use in that buffer. \\Type \\[switch-to-buffer] to switch to another buffer." (interactive (list (read-from-minibuffer "Run program: " (or explicit-shell-file-name (getenv "ESHELL") shell-file-name)))) (set-buffer (make-term "terminal" program nil term-program-switches) ) (term-mode) (term-char-mode) (switch-to-buffer "*terminal*")) In GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of 2019-07-14 built on Ergus Repository revision: 783eca57159065ea575622b74e1446853f31621a Repository branch: master System Description: Arch Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. delete-backward-char: Text is read-only user-error: Beginning of history; no preceding item [3 times] Making completion list... delete-backward-char: Text is read-only Making completion list... delete-backward-char: Text is read-only [5 times] Making completion list... funcall-interactively: End of buffer [4 times] Configured using: 'configure --prefix=/home/ergo/PhD/emacs/emacs.install_arch --with-mailutils --with-x-toolkit=gtk3 --with-xft --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-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 font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec subr-x rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/tmux term/xterm xterm elec-pair tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded 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 threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 49625 8462) (symbols 48 6081 1) (strings 32 15732 1783) (string-bytes 1 517639) (vectors 16 7924) (vector-slots 8 80943 6506) (floats 8 24 545) (intervals 56 197 6) (buffers 992 12))