[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/sml-mode 929f0e3 34/45: * sml-mode/sml-mode.el: Use cl-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/sml-mode 929f0e3 34/45: * sml-mode/sml-mode.el: Use cl-lib. |
Date: |
Tue, 1 Dec 2020 10:01:43 -0500 (EST) |
branch: externals/sml-mode
commit 929f0e3b9656028a8e972f54065b96b660819996
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* sml-mode/sml-mode.el: Use cl-lib.
---
sml-mode.el | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/sml-mode.el b/sml-mode.el
index 9e17e3f..e94b571 100644
--- a/sml-mode.el
+++ b/sml-mode.el
@@ -1,8 +1,8 @@
;;; sml-mode.el --- Major mode for editing (Standard) ML -*- lexical-binding:
t; coding: utf-8 -*-
-;; Copyright (C) 1989,1999,2000,2004,2007,2010-2015 Free Software Foundation,
Inc.
+;; Copyright (C) 1989,1999,2000,2004,2007,2010-2016 Free Software Foundation,
Inc.
-;; Maintainer: (Stefan Monnier) <monnier@iro.umontreal.ca>
+;; Maintainer: Stefan Monnier <monnier@iro.umontreal.ca>
;; Version: 6.7
;; Keywords: SML
;; Author: Lars Bo Nielsen
@@ -12,6 +12,7 @@
;; Matthew Morley <mjm@scs.leeds.ac.uk>
;; Matthias Blume <blume@cs.princeton.edu>
;; (Stefan Monnier) <monnier@iro.umontreal.ca>
+;; Package-Requires: ((emacs "24") (cl-lib "0.5"))
;; This file is part of GNU Emacs.
@@ -113,7 +114,7 @@
;;; Code:
-(eval-when-compile (require 'cl))
+(eval-when-compile (require 'cl-lib))
(require 'smie nil 'noerror)
(require 'electric)
@@ -218,8 +219,8 @@ notion of \"the end of an outline\".")
(defconst sml-=-starter-syms
- (list* "|" "val" "fun" "and" "datatype" "type" "abstype" "eqtype"
- sml-module-head-syms)
+ `("|" "val" "fun" "and" "datatype" "type" "abstype" "eqtype"
+ . ,sml-module-head-syms)
"Symbols that can be followed by a `='.")
(defconst sml-=-starter-re
(concat "\\S.|\\S.\\|" (sml-syms-re (cdr sml-=-starter-syms)))
@@ -500,7 +501,7 @@ Regexp match data 0 points to the chars."
;; and bar = Bar of string
(save-excursion
(let ((max (line-end-position 0))
- (data (smie-backward-sexp "and"))
+ (_data (smie-backward-sexp "and"))
(startcol (save-excursion
(forward-comment (- (point)))
(current-column)))
@@ -721,7 +722,7 @@ Assumes point is right before the | symbol."
"The inferior-process buffer to which to send code.")
(make-variable-buffer-local 'sml-prog-proc--buffer)
-(defstruct (sml-prog-proc-descriptor
+(cl-defstruct (sml-prog-proc-descriptor
(:constructor sml-prog-proc-make)
(:predicate nil)
(:copier nil))
@@ -890,10 +891,10 @@ Prefix arg AND-GO also means to switch to the
read-eval-loop buffer afterwards."
;; Look for files to determine the default command.
(while (and (stringp dir)
(progn
- (dolist (cf (sml-prog-proc--prop compile-commands-alist))
+ (cl-dolist (cf (sml-prog-proc--prop compile-commands-alist))
(when (file-exists-p (expand-file-name (cdr cf) dir))
(setq cmd (concat cmd "\"; " (car cf)))
- (return nil)))
+ (cl-return nil)))
(not cmd)))
(let ((newdir (file-name-directory (directory-file-name dir))))
(setq dir (unless (equal newdir dir) newdir))
@@ -916,10 +917,10 @@ Prefix arg AND-GO also means to switch to the
read-eval-loop buffer afterwards."
;; ;; now look for command's file to determine the directory
;; (setq dir default-directory)
;; (while (and (stringp dir)
- ;; (dolist (cf (sml-prog-proc--prop compile-commands-alist) t)
+ ;; (cl-dolist (cf (sml-prog-proc--prop compile-commands-alist)
t)
;; (when (and (equal cmd (car cf))
;; (file-exists-p (expand-file-name (cdr cf)
dir)))
- ;; (return nil))))
+ ;; (cl-return nil))))
;; (let ((newdir (file-name-directory (directory-file-name dir))))
;; (setq dir (unless (equal newdir dir) newdir))))
;; (setq dir (or dir default-directory))
@@ -1097,7 +1098,7 @@ on which to run CMD using `remote-shell-program'.
(setq sml-host-name host)
;; For remote execution, use `remote-shell-program'
(when (> (length host) 0)
- (setq args (list* host "cd" default-directory ";" cmd args))
+ (setq args `(,host "cd" ,default-directory ";" ,cmd . ,args))
(setq cmd remote-shell-program))
;; Go for it.
(save-current-buffer
@@ -1462,7 +1463,7 @@ Depending on the context insert the name of function, a
\"=>\" etc."
(end-of-line)
(while (and (> count 0)
(setq name (sml-beginning-of-defun)))
- (decf count)
+ (cl-decf count)
(setq fullname (if fullname (concat name "." fullname) name))
;; Skip all other declarations that we find at the same level.
(sml-skip-siblings))
- [elpa] externals/sml-mode 870c8fc 29/45: * sml-mode/sml-mode.el: Bump version to make a new release, (continued)
- [elpa] externals/sml-mode 870c8fc 29/45: * sml-mode/sml-mode.el: Bump version to make a new release, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 9b98622 16/45: * sml-mode.el (sml-smie-rules): Adjust for new :close-all rule., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 43cf0b2 28/45: * sml-mode/sml-mode.el (sml-smie-rules): Work around Emacs-24.3 bug., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode a13e847 24/45: * packages/sml-mode/sml-mode.el (sml-smie-grammar): Add "withtype"., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode c161959 38/45: * packages/sml-mode/sml-mode.el (sml-smie-rules): Remove incoherent rule., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 20d8e4a 44/45: * packages/sml-mode/sml-mode.el: Parse "local" correctly, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 9f8cf83 18/45: * sml-mode/sml-mode.el (sml-smie-grammar): Add include&sharing., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 13c27de 22/45: * sml-mode/sml-mode.el: Release new version., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode cdc5caf 35/45: * packages/sml-mode/sml-mode.el (sml-tyvarseq-re): Backtrack less (bug#24205), Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode b2c4602 31/45: Fix some quoting problems in doc strings, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 929f0e3 34/45: * sml-mode/sml-mode.el: Use cl-lib.,
Stefan Monnier <=
- [elpa] externals/sml-mode f74803e 33/45: * sml-mode/sml-mode.el: Use cl-lib., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode d142867 36/45: * packages/sml-mode/sml-mode.el (sml-tyvarseq-re): Backtrack less (bug#24205), Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode aa9dbe5 37/45: * packages/sml-mode/sml-mode.el (sml-smie-rules): Remove incoherent rule., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 7f7b551 42/45: * sml-mode.el: New var sml-abbrev-skeletons; bump vers to 6.9, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 3b3d315 39/45: Bump version to make new release, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 1460c3f 45/45: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 128f9dd 19/45: * sml-mode.el (sml--rightalign-and-p): New function., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 9f85a5d 27/45: * sml-mode/sml-mode.el (sml-smie-rules): Work around Emacs-24.3 bug., Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode c3a8cef 26/45: * sml-mode.el: Add prettify-symbols-mode and Poly/ML support, Stefan Monnier, 2020/12/01
- [elpa] externals/sml-mode 62c15e0 32/45: Fix some quoting problems in doc strings, Stefan Monnier, 2020/12/01