logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Remap ^M: msg#00008

editors.jed.user

Subject: Re: Remap ^M

G. Milde wrote:
Therefore I propose a Key_Return variable in keydefs.sl that defaults
to \r but can be set to a different value if the terminal supports that.
Emulations would then bind Key_Return to newline-indent and the
minibuffer to mini_exit_minibuffer.

Jed internally sets default keys using
"^M" for Return and you cannot change that unless you:
- get the ^M binding F
- unsetkey("^M")
- setkey(F, Key_Return)
You should do this for every keymap.

see: keymap.c, menus.c, ledit.c

Therefore it would be easier to define Key_Ctrl_M in keydefs.
Other ambiguous keys:
Ctrl+J Ctrl-Return
Ctrl-I Tab
Ctrl-H Backspace

TODO:
* Add Key_Ctrl_M (and others) to keydefs.sl

* site.sl should require("keydefs")

* jed should have an option like -term=someterm that would load
someterm.sl (from startup_hook). Here you can set Key_Ctrl_M to
anything that the terminal returns.
OR: Jed uses the environment variable JED_TERM=someterm
and someterm.sl loads at the end of keydefs.sl

* all setkey() calls should be called from a function that
gets called at the end of site.sl. It is important that
someterm.sl is evaluated first.

* *all* .sl files should be modified to use keydefs.sl

* xterm should be changed to support x_set_keysym ("^M", ...)


Marko

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo