From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: How users start programming in Emacs Lisp... Date: Sun, 30 May 2021 12:23:04 -0300 Message-ID: References: <878s3xpab1.fsf@zoho.eu> <87pmx8p9gn.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15671"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 30 17:23:41 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnNHx-0003tq-2E for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 17:23:41 +0200 Original-Received: from localhost ([::1]:39498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnNHw-0003oi-4y for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 11:23:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnNHc-0003n7-3A for help-gnu-emacs@gnu.org; Sun, 30 May 2021 11:23:20 -0400 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:39738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnNHa-0000WA-7s for help-gnu-emacs@gnu.org; Sun, 30 May 2021 11:23:19 -0400 Original-Received: by mail-pg1-x532.google.com with SMTP id v14so6452957pgi.6 for ; Sun, 30 May 2021 08:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=S531Mequu5ILOMWvetHARyJlRzMtVwsSs0ynfxpXUHg=; b=YdBWUH5wdZuocF2e71Ev48QO/xs6K8y020pRAhe+XwSFqNRmelH5y2mdM6z33NXG/f uQuqlHDClK3lSrSJMegqENsOWJ1IXCAUEiAM7/tIs9loZ/Wc2s8Ku5dlXlzlDp1Yrtu6 qgGrt3LdTjo8wnFDpFL5r0j2ExAcnRalU44tzOaFh6tKA68DzboQYZE3gjaiGbanaq9C haed5tyGqDUc+8WYJJ0nMN2KAx2jKC8s0nmP8/gd+vw3cMArlp4O2wGeKxD+XT395tSQ JaiR3OVU1wMDUAKlIaJYs9TcfV6dzh98M6ykxwZhHijcaiLrCEBpqpewJLgiL0Cs+cIt vSew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=S531Mequu5ILOMWvetHARyJlRzMtVwsSs0ynfxpXUHg=; b=ZmIrydD+ET0VRG6LqmKh/iPACWDVu9J2+c90CPrAav+EedhAvYivX7H8X4B9GIiYCT uHuKwFygzkFu9cXAuMrh0HwJYg8Zk/isBD5NZH3kOHj5N9moY/gcrXeOUuU9B6dxDmGn jODH/fUO6YzCgKLe3tiDNQJFvfnLtZge7B8/EkalHxUV5qVW+b7tdE1Fv9/sQ2Hzb4L3 8PwyhmUrpMkasAA+9mspU8+uMt0SOD73GxBHH0YoeTx4jJKZiVLxTaoieEBJ1QgUd1pi 4Z2OXWrJ5hQOyRqwhVqRMeFducuqGq8N8gn3AVifaX/pTSr7CRPNc+W/rJN4cf/D3D13 pJpw== X-Gm-Message-State: AOAM532z/lkx5F+/Ltx9t3bWE7x+EIgrZyRAffJHatp2g1evDyV4n2Q2 TX///nQAX7ARxCk2l7xwkM3zaZHto4wFqJisqM52va1/Mcs= X-Google-Smtp-Source: ABdhPJyeKg6fhs+OF7Oj/zZqUdnnO7F7qyBNoieLvldFzbr4L0wW4wkM8kayuMbZuxdd0+UZKdrmLBcO2303zOeYXGQ= X-Received: by 2002:a05:6a00:2308:b029:28e:d370:d435 with SMTP id h8-20020a056a002308b029028ed370d435mr13124073pfh.31.1622388196495; Sun, 30 May 2021 08:23:16 -0700 (PDT) In-Reply-To: <87pmx8p9gn.fsf@logand.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=eduardoochs@gmail.com; helo=mail-pg1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130329 Archived-At: On Sun, 30 May 2021 at 11:45, Tomas Hlavaty wrote: > > On Sun 30 May 2021 at 13:43, Arthur Miller wrote= : > > Or maybe your eev already does that. Still didn't try it. It seems so > > conceptually big to me so I never get to it. > > I can only recommend eev. It is one of the best ideas I've seen > recently. Some things are hard to get into, but getting started with > eev-beginner is not that difficult. My executable notes are now eepitch > blocks and I find it much better and way simpler than anything org-mode. > Some things could be improved but it is not hard to redefine a few > functions. The biggest issue I have with eepitch is that it uses > non-printable character as a marker which does not tunnel through many > protocols; for example notice how the example in the email from Eduardo > has the eepitch block stripped. Hi Tomas, I just had an idea to make the eepitch accept both the original ^O (char 15) and the bullet char (char 8226) to indicate its "red star lines"... can you try this? (eepitch-set-glyph0 ?=E2=80=A2 ?=E2=80=A2 'eepitch-star-face) (setq eepitch-regexp "^ *[ =E2=80=A2]\\(.*\\)") ;; Or: (setq eepitch-regexp "^[ =E2=80=A2]\\(.*\\)") (defun eewrap-eepitch () (interactive) (let* ((fmt "=E2=80=A2 (eepitch-%s)\n=E2=80=A2 (eepitch-kill)\n=E2=80= =A2 (eepitch-%s)") (li (ee-this-line-extract)) (newli (format fmt li li))) (insert newli)) (ee-next-line 1)) Then try to run this with s: =E2=80=A2 (eepitch-shell) =E2=80=A2 (eepitch-kill) =E2=80=A2 (eepitch-shell) cd /tmp/ pwd Now `M-T' will use the red bullet chars insert of the red star chars... Cheers (& hope that the chars 8226 here don't get lost in translation), Eduardo =3D) P.S.: Some links: ;; (find-eev "eepitch.el" "eewrap-eepitch") ;; (find-eev "eepitch.el" "eepitch" "defvar eepitch-regexp") ;; (find-elongkey-links "M-T ;; eewrap-eepitch") ;; (find-einsert (list 8226 (char-from-name "BULLET"))) ;; (eek "C-x 8 * C-h") ;; http://angg.twu.net/eev-intros/find-eev-quick-intro.html#6 ;; (find-eev-quick-intro "6. Controlling shell-like programs")