[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/shen-mode 276bad5 11/15: * packages/shen-mode/inf-shen.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/shen-mode 276bad5 11/15: * packages/shen-mode/inf-shen.el: Don't require `cl'. |
Date: |
Sun, 29 Nov 2020 00:14:28 -0500 (EST) |
branch: externals/shen-mode
commit 276bad5fea5751ef4d8ca239a05ff0978e39371f
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* packages/shen-mode/inf-shen.el: Don't require `cl'.
(shen-remember-functions): Avoid `flet'.
---
inf-shen.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/inf-shen.el b/inf-shen.el
index a27d082..bf554da 100644
--- a/inf-shen.el
+++ b/inf-shen.el
@@ -1,6 +1,6 @@
;;; inferior-shen-mode --- an inferior-shen mode
-;; Copyright (C) 2011-2013 Free Software Foundation, Inc.
+;; Copyright (C) 2011-2014 Free Software Foundation, Inc.
;; Authors: Michael Ilseman, Eric Schulte <schulte.eric@gmail.com>
;; Version: 0.1
@@ -27,7 +27,6 @@
;; This file defines an inferior Shen mode.
;;; Code:
-(eval-when-compile (require 'cl))
(require 'comint)
(require 'shen-mode)
@@ -256,9 +255,9 @@ containing the shen source code about to be evaluated.")
(defun shen-remember-functions (start end)
"Add functions defined between START and END to `shen-functions'."
(interactive "r")
- (flet ((clean (text)
- (when text
- (set-text-properties 0 (length text) nil text) text)))
+ (let ((clean (lambda (text)
+ (when text
+ (set-text-properties 0 (length text) nil text) text))))
(save-excursion
(goto-char start)
(let ((re (concat
@@ -267,8 +266,8 @@ containing the shen source code about to be evaluated.")
"[\n\r]?[ \t]*\\({\\(.+\\)}\\)?"))) ; type
(while (re-search-forward re end t)
(let ((name (intern (match-string 1)))
- (doc (clean (match-string 3)))
- (type (clean (match-string 5))))
+ (doc (funcall clean (match-string 3)))
+ (type (funcall clean (match-string 5))))
(add-to-list 'shen-functions (list name type doc))))))))
(add-hook 'shen-pre-eval-hook #'shen-remember-functions)
- [elpa] externals/shen-mode df28df3 01/15: 2011-10-06 Eric Schulte <address@hidden>, (continued)
- [elpa] externals/shen-mode df28df3 01/15: 2011-10-06 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode f54361e 03/15: 2011-10-06 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode d4c9b85 05/15: 2011-10-08 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 3115902 06/15: 2011-10-18 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode ff659e1 07/15: 2011-11-18 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 3ee8b84 08/15: * GNUmakefile: Rename from Makefile. Add targets for in-place use., Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 7bddd92 02/15: 2011-10-06 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 658925c 04/15: 2011-10-06 Eric Schulte <address@hidden>, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 16b61ca 09/15: * packages/shen-mode/inf-shen.el: Require CL. Fix up comment convention., Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 1f96465 10/15: Only keep the strictly necessary *-pkg.el files, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 276bad5 11/15: * packages/shen-mode/inf-shen.el: Don't require `cl'.,
Stefan Monnier <=
- [elpa] externals/shen-mode cbea83a 12/15: Fix some quoting problems in doc strings, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 6934d52 15/15: * .gitignore: New file, Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode 8b35ac9 13/15: * packages/shen-mode/inf-shen.el (inferior-shen-prompt): Doc fix., Stefan Monnier, 2020/11/29
- [elpa] externals/shen-mode a8d9aa1 14/15: * packages/shen-mode/shen-mode.el: Don't require `cl`, Stefan Monnier, 2020/11/29