From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Autocompletion of Emacs Lisp Symbols in Buffer Date: Thu, 6 May 2010 10:05:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273169004 17834 80.91.229.12 (6 May 2010 18:03:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 May 2010 18:03:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 06 20:03:23 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OA5P9-0007xk-1f for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 20:03:23 +0200 Original-Received: from localhost ([127.0.0.1]:45118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OA5C1-0000ON-92 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 13:49:01 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!k29g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 40 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1273165537 20180 127.0.0.1 (6 May 2010 17:05:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 May 2010 17:05:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k29g2000yqh.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177989 comp.emacs:99812 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:73515 Archived-At: On May 6, 6:30=C2=A0am, Dirk80 wrote: > When I'm in lisp-interaction-mode or emacs-lisp mode, i.e. I'm writing > emacs-lisp code in a buffer, then I would like to have the feature of > autocompletion when I'm pressing tab. it is already implemented. The command is lisp-complete-symbol, the shortcut is Meta+Tab. Because Meta is often Alt, and Alt+Tab is used by the OS, so you can do is press Esc Tab. However, that is very inconvenient, so i created my own key. (defun call-keyword-completion () "Call the command that has keyboard shortcut M-TAB." (interactive) (call-interactively (key-binding (kbd "M-TAB"))) ) then give a shortcut to call-keyword-completion, e.g. on Dvorak keyboard i have (global-set-key (kbd "M-y") 'call-keyword-completion) also, you might bind Meta+Shift+y for dabbrev-expand, which does completion by words already in the buffer. (e.g. from your own functions, variables) I think this Meta+Tab conflict with Alt+Tab used by Windows, Mac, Linux, is a major emacs usability problem. It forces people to make a choice between a =E2=80=9Cemacs world=E2=80=9D and all others. In the past = when i asked what other heavy emacs users do, seems they either have completely alterted their keyboard shortcuts on their system so that emacs's way prevales, or simply doesn't do anything about it, and just press Esc Tab for completion. Xah =E2=88=91 http://xahlee.org/ =E2=98=84