From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Several beginner-questions Date: Fri, 29 Jul 2011 09:08:11 +0300 Message-ID: <838vrhei0k.fsf@gnu.org> References: <201107242322.31639.vvmarko@gmail.com> <201107270357.06385.vvmarko@gmail.com> <201107282307.17607.vvmarko@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1311919708 27249 80.91.229.12 (29 Jul 2011 06:08:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2011 06:08:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 08:08:24 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 1QmgFE-0007of-CI for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2011 08:08:24 +0200 Original-Received: from localhost ([::1]:37500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmgFD-0001lG-Qd for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2011 02:08:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmgF9-0001l9-Q2 for help-gnu-emacs@gnu.org; Fri, 29 Jul 2011 02:08:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmgF8-00067p-Mo for help-gnu-emacs@gnu.org; Fri, 29 Jul 2011 02:08:19 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmgF8-00067k-Au for help-gnu-emacs@gnu.org; Fri, 29 Jul 2011 02:08:18 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LP200D00ZO3J000@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 29 Jul 2011 09:07:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.48.51]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LP200CSRZPBTWC0@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 29 Jul 2011 09:07:59 +0300 (IDT) In-reply-to: <201107282307.17607.vvmarko@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:81846 Archived-At: > From: Marko Vojinovic > Date: Thu, 28 Jul 2011 23:07:17 +0100 > > If it's too hard to reconfigure, then ok, I'll live with it, but... it's weird. > ;-) Feel free to file a feature request with the Emacs bug tracker, using the "M-x report-emacs-bug RET" command. It shouldn't be hard to implement a variant of column-number-mode that shows columns 1-based. > Ok, I think I resolved this issue. The point that I was missing was that the > 256 colors displayed by the terminal are not neccessarily RGB-equivalent to > the 256 colors defined in the rgb.txt file. They are just strings. The RGB equivalents are considered at a different level. > So while color-name-rgb-alist variable contains the colors from rgb.txt, the > list-colors-display doesn't display those colors, but the colors that the > terminal actually supports, which might be different (and are, in my case). > Those (actually used) colors are listed in tty-defined-color-alist, and I see > that they have names like color-16, color-17, etc. Correct. > IOW, there is no unique way to rename "color-16" to the standard > name from rgb.txt (what I was hoping to achieve), since this color isn't even > defined there. You don't need to rename the existing "color-NN" names. All you need is to _add_ to tty-defined-color-alist the names from rgb.txt. There's no problem to have more than 1 name pointing to the same color index. Use tty-color-define for this. > Incidentally, the tty-colors.el is apparently already built in my default > Emacs install, I didn't even need to load it separately. Yes, it is preloaded, because Emacs on a TTY always needs it. > If I set it to t, TAB does nothing. If I set it to nil, then it works as > expected when I am in the middle of a line. However, if I am at the beginning > of the line, I need to press it twice --- the first TAB is swallowed, the > second TAB prints spaces. It's not swallowed. Emacs doesn't indent empty lines when you type TAB. This is done by the newline-and-indent command, by default bound to the C-j (a.k.a. Linefeed) key. If you don't have such a key on your keyboard (most modern keyboards don't), bind that command to the Return key, like this: (global-set-key "\C-m" 'newline-and-indent) Then Emacs will indent a new empty line whenever you hit RET at the end of the previous line. See the node "Basic Indent" in the EMacs user manual, for more details. > So how is this indentation being done, if not by inserting tabs or > spaces into a file? The first time I press TAB, the line is apparently just > being internally "marked" as indented (without anything visible actually > happening), and only then the second TAB actually inserts something into the > buffer. Am I understanding this right? No, see above. I really suggest to read the manual on this. > Btw, sorry for spamming the list with these things, I'm just trying to learn > some of this basic stuff... :-) This list _is_ for such "spamming", but I recommend to become acquainted with the manual and the various Emacs build-in help facilities (see the node "Help" in the manual). They will make you much more independent in your uses of Emacs, because most answers are in the docs already, you just need to grasp the tools that let you find them efficiently. Then you will need to ask questions here only if you didn't find in the docs what you were looking for.