From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: imputerate Newsgroups: gmane.emacs.help Subject: Re: Xterm and Readline (was: select large text with mouse) Date: Fri, 13 Jun 2008 22:01:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3c7cb96b-cf76-464f-b2ef-e7bd62652211@i76g2000hsf.googlegroups.com> References: <05f825db-d5be-4573-b7c2-4a968928df2c@c58g2000hsc.googlegroups.com> <32f22e4c-2240-45f2-bace-681ca518ecdd@p25g2000hsf.googlegroups.com> <70de5810-2e8b-4671-b6c0-cca819d0868a@e53g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1213422114 16266 80.91.229.12 (14 Jun 2008 05:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 05:41:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 14 07:42:38 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7OWy-0002xu-Sp for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 07:42:29 +0200 Original-Received: from localhost ([127.0.0.1]:60353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7OWA-0000hv-SL for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 01:41:38 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i76g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 123 Original-NNTP-Posting-Host: 76.31.205.57 Original-X-Trace: posting.google.com 1213419719 25416 127.0.0.1 (14 Jun 2008 05:01:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 14 Jun 2008 05:01:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i76g2000hsf.googlegroups.com; posting-host=76.31.205.57; posting-account=nLw1LAgAAAC-__9kTF1Cg2C1w3aPdEcE User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159456 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54812 Archived-At: On Jun 13, 10:19=A0pm, adams...@email.unc.edu (Joel J. Adamson) wrote: > imputerate writes: > >> =A0first i want to fix it so i use only the bash shell and only the > >> xterm > >> terminal emulator, no matter which defaults are set for the os or > >> window > >> manager i'm dealing with; joel replies: > Interesting you should have these problems, because I just switched to > bash last night and I ran into a little confusion myself. =A0I put "source= > ~/.profile" in my .bashrc to make sure that the environment was carried > over to a new xterm session. =A0Xterm should start with whatever your > default shell is (man chsh). imputerate writes: i put the line "source ~/.profile" in my .bashrc; when i loaded xterm i got a blank screen with no login prompt; here's the .profile file; notice that it also includes the "export..." lines for =2Einputrc: ~/.profile: --------------snip---------------- # the default umask is set in /etc/profile #umask 022 # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi # set PATH so it includes user's private bin if it exists if [ -d ~/bin ] ; then PATH=3D~/bin:"${PATH}" fi export INPUTRC=3D/etc/inputrc export INPUTRC=3D/home/hodgson/.inputrc -------------------------------------- imputerate had written: > > =A0 i have essential emacs keymappings in readline's config file, joel answered: > So you mean you put your Emacs (the text editor) mappings into inputrc, > instead of into .emacs? =A0You should find that the default Emacs bindings= > for bash are Emacs-y enough. imputerate replies: to clear up a point: i live in emacs with an elaborate set of keyboard customizations [inspired in part by the old Wordstar principle: use geometry instead of mnemotics]; i have them set in my .emacs file; i also put a small batch of them in .inputrc, so that i would have the same experience writing on the command line as i do writing in an emacs buffer [i also write email messages in gnus]; so, i'm still up a tree about how to get xterm/bash to read .inputrc; imputerate had written: > > since i have these lines in both .bashrc and .bash_profile, they > > should > > work no matter how xterm invokes bash [i.e., as an interactive shell > > (login or normal), or even non-interactive shell]; or so i understand; joel replied: > Hmmm... this is a good question for a bash expert: I've spent a lot more > time studing how Z Shell loads its configuration, and as I said I've > just switched (back) to bash. imputerate: BUT the variable which has changed is not that my shell is bash, but that my terminal emulator is xterm [instead of gnometerm]; [NB on the slackware box, xterm/bash DOES retain the readline customizations] imputerate's initial plea: > > SO, how do i get bash in xterm to behave the way bash in 'gnometerm' > > did, i.e. so that i have my readline customizations on the command > > line in the bash shell? joel answered: > Have you tried an empty inputrc? imputerate: if i take my eccentric customizations out of inputrc, then they will only be in .emacs, which neither xterm nor bash is apt to read; is this not so? imputerate promised to: >> plow through the .Xresources, > > .Xdefaults configurations for xterm and emacs; joel replied: > X resources are not the only way to configure the Emacs display, > although they are the best I've found for setting the default face and > background. =A0Same goes in xterm: it's much better than putting "-fg > white -bg black -geometry..." in every desktop icon or making it an > alias. imputerate writes: yes; i think so too; i have only face and background for xterm and emacs in .Xresources, but i wonder if .Xdefaults is also sourced by some of xterm/bash, anyway for root. can someone direct me to a discussion of the priorities which obtain among all these config files; for, example, i understand from several posts here and there that .Xresources preempts .emacs; thanks, imputerate