Article View: comp.windows.x
Article #38381Re: emacs like text widget for X
From: Daniel Bromberg
Date: Fri, 30 Sep 1994 22:36
Date: Fri, 30 Sep 1994 22:36
29 lines
2694 bytes
2694 bytes
>In lots of X-based programs, there are fields/dialog boxes/, etc. for >text entry and I assume these are controlled by (or perhaps derived >from) a single widget, let us call it the text-widget. Is it possible >to modify/create this text-widget to recognize basic emacs key >bindings (cursor movement, region operations, etc.)? Has this been >done? It would make life much simpler for error prone typist like >myself. Hi, it's interesting that you mention this. As an experienced Mac and emacs user, I was always impressed by the clean consistency of the Mac text fields and the power of emacs. Happily, Tcl is flexible enough to combine them using Motif widgets and lots of behavior modifications. During the summer, I ended up doing a lot of work just to get the text boxes in my application to work in an acceptable manner. I don't really have a clean interface to the bindings, but I do have a lot of code that might be helpful, especially for Sanjai: I implemented tabbing, Ctrl-A, -B, -D, -E, -F, -I, -J, -K, -M, -N, -P, and others but only for single line fields. >If the powers that be see some merit in this idea, would they please, >please implement it. I hope the developers of the Athena widget, ...Sanjai Bhargava If there's enough interest, I'll extract the text-box code and post it; otherwise, assuming Sanjai is still checking this newsgroup, I'll e-mail what I've got to him or other interested parties. (I don't really have time to flesh it all out myself.) Daniel Bromberg MIT/CECI
Technical Details
Message-ID:
<36i3t1$h0c@senator-bedfellow.MIT.EDU>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!ceci.mit.EDU!ddanielReferences:
<gnusenetSANJAI.94Sep19170128@eightman.ctd.comsat.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b9a,1827699b5b8a89cf,start X-Google-Attributes: gid102b9a,public X-Google-Thread: 10eb76,1827699b5b8a89cf,start X-Google-Attributes: gid10eb76,public X-Google-Thread: 103734,ae33ddb0d8699ad0 X-Google-Attributes: gid103734,public X-Google-Thread: 103b8b,1827699b5b8a89cf,start X-Google-Attributes: gid103b8b,public X-Google-Thread: 10b6ac,1827699b5b8a89cf,start X-Google-Attributes: gid10b6ac,public X-Google-ArrivalTime: 1994-09-30 18:04:15 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!ceci.mit.EDU!ddaniel From: ddaniel@ceci.mit.EDU (Daniel Bromberg) Newsgroups: comp.windows.x,comp.windows.x,comp.windows.x.motif,comp.emacs,gnu.emacs.help,comp.lang.tcl Subject: Re: emacs like text widget for X Date: 30 Sep 1994 22:36:17 GMT Organization: "Center for Educational Computer Inintiatives at MIT" Lines: 29 Distribution: world Message-ID: <36i3t1$h0c@senator-bedfellow.MIT.EDU> References: <gnusenetSANJAI.94Sep19170128@eightman.ctd.comsat.com> NNTP-Posting-Host: edgerton.mit.edu