From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weemattisnot Newsgroups: gmane.emacs.help Subject: Bug, or newbie error? Date: Fri, 1 Jul 2011 10:23:27 -0700 (PDT) Message-ID: <31975451.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25446_26514609.1309541007526" X-Trace: dough.gmane.org 1309564978 18775 80.91.229.12 (2 Jul 2011 00:02:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2011 00:02:58 +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 02 02:02:55 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 1Qcnfi-0003zy-W9 for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Jul 2011 02:02:55 +0200 Original-Received: from localhost ([::1]:56648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qcnfh-0000MV-PQ for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Jul 2011 20:02:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QchRD-0005EY-1Z for Help-gnu-emacs@gnu.org; Fri, 01 Jul 2011 13:23:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QchRB-0002am-0D for Help-gnu-emacs@gnu.org; Fri, 01 Jul 2011 13:23:30 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:48710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QchRA-0002aZ-KV for Help-gnu-emacs@gnu.org; Fri, 01 Jul 2011 13:23:28 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QchR9-0004ko-HH for Help-gnu-emacs@gnu.org; Fri, 01 Jul 2011 10:23:27 -0700 X-Nabble-From: mde@rhthm.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-Mailman-Approved-At: Fri, 01 Jul 2011 19:52:44 -0400 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:81474 Archived-At: ------=_Part_25446_26514609.1309541007526 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am trying to write a bit of lisp to go in my .emacs file that binds C-1 to a command to change the color of the selected text (in enriched text minor-mode). I have success running the command M-x facemenu-set-foreground where I am prompted for a color, I type red, and it changes the selected region red. But, when I try to bind this command to a key-press, it doesn't work correctly, changing the color of the text at the very end of the document (such that if I add any text at the end of the document, it will be red). Here is my .emacs lisp (defun headingone () (interactive) (facemenu-set-foreground "red") ) (global-set-key (kbd "C-1") 'headingone) Have I done something wrong here? Any suggestions are welcome. Thank you in advance. Weemattisnot -- View this message in context: http://old.nabble.com/Bug%2C-or-newbie-error--tp31975451p31975451.html Sent from the Emacs - Help mailing list archive at Nabble.com. ------=_Part_25446_26514609.1309541007526 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I am trying to write a bit of lisp to go in my .emacs file that binds C-1 to a command to change the color of the selected text (in enriched text minor-mode). I have success running the command M-x facemenu-set-foreground where I am prompted for a color, I type red, and it changes the selected region red. But, when I try to bind this command to a key-press, it doesn't work correctly, changing the color of the text at the very end of the document (such that if I add any text at the end of the document, it will be red). Here is my .emacs lisp (defun headingone () (interactive) (facemenu-set-foreground "red") ) (global-set-key (kbd "C-1") 'headingone) Have I done something wrong here? Any suggestions are welcome. Thank you in advance. Weemattisnot

View this message in context: Bug, or newbie error?
Sent from the Emacs - Help mailing list archive at Nabble.com.
------=_Part_25446_26514609.1309541007526--