From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Possible to alter the "M-x" string that is displayed when M-x is pressed to enter a command? Date: Sat, 06 Jul 2013 01:59:45 +0200 Organization: Aioe.org NNTP Server Message-ID: <87a9m0h826.fsf@VLAN-3434.student.uu.se> References: <66bab8af-d8a2-4e67-b8ec-0256480cd594@googlegroups.com> <871u7d2bdv.fsf@VLAN-3434.student.uu.se> <461346ed-9845-44e1-9f94-f3b3603c73d9@googlegroups.com> <87k3l4g1gp.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1373069117 31810 80.91.229.3 (6 Jul 2013 00:05:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jul 2013 00:05:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 02:05:19 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UvG06-0000it-Rv for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Jul 2013 02:05:18 +0200 Original-Received: from localhost ([::1]:34250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvG06-0001Mg-F1 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 20:05:18 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:8BaYGq44vMAVsUPl/rn1AlkskWw= Original-Xref: usenet.stanford.edu gnu.emacs.help:199707 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:91974 Archived-At: Bob Proulx writes: >> Chris Seberino writes: >> >> (set-face-foreground 'minibuffer-prompt nil) >> > >> > nil gave an error for me >> >> For me, it works - I get the default face (cyan - `M-x >> describe-face default') - but - why set it to nil, instead of >> the color of your choice? > > Because then it uses the default face which I have already set > elsewhere. Keeping it DRY - Don't Repeat Yourself. I already > set the color I wanted in one location. I don't want to set > that color again in an additional location. :-) Haha, crazy stuff. But seriously, that principle you mention is a very healthy one and since I started to stick to it pedantically the amount of debugging has dropped sharp. It may look silly with const int days_in_a_week = 7; but as soon as I have two 7's appearing in computation (meaning that) I set it up. It is not only a protection against typos, but also against sloppy search-and-replaces. -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573