From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Forrest Newsgroups: gmane.emacs.help Subject: `global-set-key' doesn't work in my console Date: Mon, 7 Jan 2008 16:03:12 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0765010284==" X-Trace: ger.gmane.org 1199693022 30346 80.91.229.12 (7 Jan 2008 08:03:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 08:03:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 09:04:04 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 1JBmxm-0006Ou-GT for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 09:04:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBmxP-0006Gc-Az for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 03:03:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBmx5-0006E3-6d for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 03:03:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBmx3-0006BQ-PT for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 03:03:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBmx3-0006BD-I7 for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 03:03:17 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JBmx3-0002iD-05 for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 03:03:17 -0500 Original-Received: from fk-out-0910.google.com ([209.85.128.184]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBmx0-0007kK-Ue for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 03:03:15 -0500 Original-Received: by fk-out-0910.google.com with SMTP id 26so9106920fkx.10 for ; Mon, 07 Jan 2008 00:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=VrPbK/jLINGT8aHy9TjirrRDWZkmtxUBU53a3x938hY=; b=wK1VrsjBVM4guLgIIko6d3nvkCKLqtS4Azevv4I1q5S37+G57LoEJ4sm7Dyr/9W5oKZj089NiR1Zu8Z5Wy8CLzRYOhF/qgeNKq6gS9A4QmwfBrOaq+ehrcpvMCvMFTOsTvlB+YdaMGUg7Qro5vB5EayTkHeugK+Kf/EfpcWHzk4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=WoHuPk+1AnDRMuNiyBTdBk5SMqegAVdC1gM/7f7n0LLs+DqvtihxDHYg218If5AaMPaCEQumcr2CceLuv2TEVNO30Bos65PwdSejeszkT0bctSIMJnjdBD4x18R3OVWhI3Dwc0SOq40ygyq/JwQs38it+R9Bmik7N0sTkrxEH3M= Original-Received: by 10.78.100.1 with SMTP id x1mr22602500hub.45.1199692992785; Mon, 07 Jan 2008 00:03:12 -0800 (PST) Original-Received: by 10.78.134.3 with HTTP; Mon, 7 Jan 2008 00:03:12 -0800 (PST) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:50544 Archived-At: --===============0765010284== Content-Type: multipart/alternative; boundary="----=_Part_43951_5406775.1199692992765" ------=_Part_43951_5406775.1199692992765 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline `global-set-key' doesn't work in my console. i have definitions below in my ~/.emacs: global-set-key (kbd "C-,") '(lambda () "scroll the page down" (interactive) (scroll-down 1))) (defun up-slightly () (interactive) (scroll-up 1)) (global-set-key [(control .)] 'up-slightly) then i went to console, launched emacs, opened a file, i can use the "default" key-bindings like C-x C-c, but when i press C-, or C-. , nothing happened, they work well in X window, how can i get it work in console? Thanks a lot! Forrest %% GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) Debian Etch %% -- Stupid is as stupid does. ------=_Part_43951_5406775.1199692992765 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline `global-set-key' doesn't work in my console.

i have definitions below in my ~/.emacs:

global-set-key (kbd "C-,")
        '(lambda () "scroll the page down" (interactive) (scroll-down 1)))

(defun up-slightly () (interactive) (scroll-up 1))
(global-set-key [(control .)]          'up-slightly)

then i went to console, launched emacs, opened a file, i can use the "default" key-bindings like C-x C-c, but when i press C-, or C-. , nothing happened, they work well in X window, how can i get it work in console?

Thanks a lot!
Forrest

%%
GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
Debian Etch
%%

--
Stupid is as stupid does. ------=_Part_43951_5406775.1199692992765-- --===============0765010284== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0765010284==--