Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!zehntel!dual!amd!decwrl!decvax!genrad!wjh12!harvard!seismo!rlgvax!cvl!umcp-cs!chris From: chris@umcp-cs.UUCP Newsgroups: net.emacs Subject: Re: Lining a function up. Message-ID: <7683@umcp-cs.UUCP> Date: Thu, 28-Jun-84 19:19:52 EDT Article-I.D.: umcp-cs.7683 Posted: Thu Jun 28 19:19:52 1984 Date-Received: Fri, 27-Jul-84 05:29:26 EDT References: <1921@dartvax.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 33 * From: karl@dartvax.UUCP Recently someone asked about getting line numbers in Emacs. ... If you mean ``on the display'', I have (after many requests) put line numbers into the Emacs window code. It was surprisingly easy to do for #85, and surprisingly harder to do for #264 (which has fancier optimization). This should appear at UniPress sometime in the near future. (What will happen after that is anyone's guess ...) I have two questions, as well. 1. Is it possible to bind-to-key not just a function invocation but a function invocation with argument? For example, (bind-to-key "function-name first-arg" "\^C") No. The solution I generally use is to bind the key to a helper function that calls the main function after getting the argument(s). 2. Is it possible to input a variable-name from the keyboard ( via get-tty-variable, most likely. ) and then use that variable's value somehow? Sure: (defun (print-variable &v (setq &v (get-tty-variable ": print ")) (message &v " => " (execute-mlisp-line &v)))) (execute-mlisp-line) is the MLisp equivalent of a real ``eval'' function. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland