From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Mac terminal.app: starting emacs, possibly as sudo Date: Mon, 17 Oct 2011 17:18:46 +0200 Message-ID: <0412045F-8843-4E43-A90F-05718B756D0A@Web.DE> References: <300A41B7-78F8-422C-BF95-6FFEF947E79A@math.ethz.ch> <89DBA1D1-7959-4B78-8EC1-32662BBA5175@gmail.com> <2A8D16D2-FF92-448E-8D5E-409F3FC3E26C@math.ethz.ch> <69806797-7F86-4704-8BC1-0A3B27B4ABBA@Web.DE> <2C001CEC-B3EB-4DDF-B19E-D743C932D134@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1318866979 24497 80.91.229.12 (17 Oct 2011 15:56:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2011 15:56:19 +0000 (UTC) Cc: Emacs help To: Perry Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 17:56:14 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RFpXx-0006eO-6j for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 17:56:13 +0200 Original-Received: from localhost ([::1]:54873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFpXw-0001H1-E9 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Oct 2011 11:56:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFpXr-0001Gl-QG for help-gnu-emacs@gnu.org; Mon, 17 Oct 2011 11:56:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFpXq-00047Z-Ox for help-gnu-emacs@gnu.org; Mon, 17 Oct 2011 11:56:07 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:39667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFpXq-00046K-Iv for help-gnu-emacs@gnu.org; Mon, 17 Oct 2011 11:56:06 -0400 Original-Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate01.web.de (Postfix) with ESMTP id 4690319DD9B04 for ; Mon, 17 Oct 2011 17:42:33 +0200 (CEST) Original-Received: from peter-dyballas-macbook-pro.fritz.box ([88.153.242.186]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0MRl2f-1ReGdz27YX-00T8Kg; Mon, 17 Oct 2011 17:18:46 +0200 In-Reply-To: <2C001CEC-B3EB-4DDF-B19E-D743C932D134@gmail.com> X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:eGtHqL2b9m292PQU7bHo8L7yu8sTgVm5KvL2JrVJBFi xtrGNnhGSHPY5Ycvipb3RlGaoGvnkpvnEBKq3lGsURA60dKNJl Cz1nKOwmMyPtMwVFregMvwE4FR4QwdN1BQtByqQb9CFxUXgjyX 8oK3646tZQj7rP23OWZENCIdh3nYXxibmd/aqUKNKPynT9D9Tu NWrQUcOAozDzxlSUXPtHw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.221 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82601 Archived-At: Am 17.10.2011 um 15:33 schrieb Perry Smith: > The other obstacle is at some point, Apple will update the system, = install a new emacs, and you will lose your changes. And this newly installed /usr/bin/emacs might follow down the sym-link=85 > I am sure that is slightly customizable but how much, I don't know. There are two areas: one in the preferences of the Apple Terminal, the = other by choosing a value for the environment variable TERM =96 although = the latter is rather meant for the software running in that terminal to = tell it how to make sense of the ANSI and non-ANSI Esc sequences = produced in that terminal. > Here is an example: with the GUI emacs, when you hold the control key = down and hit an "a", emacs knows that entire sequence of key strokes. Not exactly. The GUI application will know that some modifier key(s) = is/are pressed when a key event happens. > But when emacs is running inside Terminal, Terminal knows and sees the = whole key sequence but sends just a Control-A to emacs. Which is one byte of the hex value 0x1 or octal \001 or decimal 1 (while = the figure 1 has an ASCII value of 49 [o61, x31]). -- Greetings Pete Let's face it; we don't want a free market economy either. =96 James Farley, president, Coca-Cola Export Corp., = 1959