From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Renato Pontefice Newsgroups: gmane.emacs.help Subject: how to automate a code Date: Mon, 15 Sep 2014 03:50:35 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1410778538 32336 80.91.229.3 (15 Sep 2014 10:55:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 10:55:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 12:55:30 2014 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 1XTTwO-00028L-T2 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 12:55:29 +0200 Original-Received: from localhost ([::1]:58668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTTwO-0006vx-JM for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 06:55:28 -0400 X-Received: by 10.182.107.135 with SMTP id hc7mr586877obb.48.1410778235681; Mon, 15 Sep 2014 03:50:35 -0700 (PDT) X-Received: by 10.140.23.228 with SMTP id 91mr4104qgp.19.1410778235614; Mon, 15 Sep 2014 03:50:35 -0700 (PDT) Original-Path: usenet.stanford.edu!h18no1258398igc.0!news-out.google.com!q8ni12qal.1!nntp.google.com!m5no1209136qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.118.42.225; posting-account=u2YPPQoAAAD4EIiLgz2UEPmFMncWw22R Original-NNTP-Posting-Host: 2.118.42.225 User-Agent: G2/1.0 Injection-Date: Mon, 15 Sep 2014 10:50:35 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207633 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:99905 Archived-At: Hi, it's still me... with same question: How can I automate this elisp code, that works, if I paste on emacs ___________________________________________________________________ (while (and (not (eobp)) (search-forward "[-" nil 'move)) (skip-chars-forward "A-Z") (unless (looking-at "-]") (message "Problem found, please fix and hit C-M-c to continue") (recursive-edit))) ________________________________________________________________ I'm sorry, but I lost my self on the previous thread :-( (my english is not so good :-( ) All I need, is to run this code when I press a button (or better a key, keybind...) Can someone tell me how to do that? TIA Renato