From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: can't get started with emacs Date: Tue, 10 Feb 2009 12:06:23 +0100 Organization: Anevia SAS Message-ID: <7cy6wey2j4.fsf@pbourguignon.anevia.com> References: <1234258461.353279@bsd1.nyct.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234266047 6008 80.91.229.12 (10 Feb 2009 11:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 11:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 12:42:02 2009 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 1LWr05-0003Xc-1F for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 12:42:01 +0100 Original-Received: from localhost ([127.0.0.1]:46270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWqyl-0005F7-H6 for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 06:40:39 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp16-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:NmQ1ZDUxM2ExMmM5MjliZWFjMjlkZDRhZTNjZjVjZWVlZTYzZTJlNg== Original-Lines: 71 Original-NNTP-Posting-Date: 10 Feb 2009 12:06:23 MET Original-NNTP-Posting-Host: 88.170.236.224 Original-X-Trace: 1234263983 news-2.free.fr 29465 88.170.236.224:43601 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:166721 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:62026 Archived-At: "cycjec" writes: > One one system (NetBSD) Control-H doesn't bring up=20 > the help screen. The backspace key deleted the > next forward character, not the previous one. > > I can't get the Control-H to work here either. > Once I am able to get the Help menus to work > and get the key navigation going, I can proceed. > Any advice appreciated. First, it depends on the terminal you use. But I think if you don't change your terminal configuration, M-x normal-erase-is-backspace-mode RET should help. For example, in xterm you can Control-left-click to get a menu in which you can change settings such as "Delete is DEL" and "Backarrow Key (BS/DEL)" (also important for emacs, "Meta sends Escape" and "Alt sends Escape"). You will want to select these options such as C-h sends BS and Delete sends DEL. If you type in emacs C-q C-h C-q DEL you should see: ^H^? Then, if you cannot configure correctly these keys, you can in emacs use the command: M-x normal-erase-is-backspace-mode RET to switch between C-h calling up help or deleting. For the navigation keys and in general function keys, notice that thru a terminal only ASCII codes can be sent. So your terminal (or terminal emulator) must encode these keys as code sequences that have to be decoded by emacs. I have in my ~/.emacs these global-set-key to interpret some of them: (case window-system ((nil) (.EMACS "Setting terminal keyboard") (global-set-key "=1BOF" (function end-of-buffer)) (global-set-key "=1BOH" (function beginning-of-buffer)) (global-unset-key "=1B[") (global-set-key "=1B[15~" (function set-justification-left)) ; (global-set-key "=1B[17~" (function set-justification-center)) ; (global-set-key "=1B[18~" (function set-justification-right)) ; (global-set-key "=1B[19~" (lambda()(interactive)(beep))) ; (global-set-key "=1B[20~" (lambda()(interactive)(beep))) ; (global-set-key "=1B[21~" (lambda()(interactive)(beep))) ; (global-set-key "=1B[23~" (lambda()(interactive)(beep))) ; (global-set-key "=1B[24~" (lambda()(interactive)(beep))) ; (set-keyboard-coding-system 'iso-8859-15) (normal-erase-is-backspace-mode 0) (.EMACS "C-h =3D %S" (key-binding "\C-h")) (.EMACS "DEL =3D %S" (key-binding "\C-?"))) ((x) (.EMACS "Setting X keyboard") (define-key global-map [(delete)] "\C-d") (make-face-bold 'bold-italic)) ((mac) (.EMACS "Setting Macintosh keyboard") (setq *window-manager-y-offset* (+ 24 24)) (set-keyboard-coding-system 'mac-roman) (setq mac-command-key-is-meta t mac-reverse-ctrl-meta nil) (translate-powerbook-keyboard))) --=20 __Pascal Bourguignon__