comparison lisp/emulation/mlsupport.el @ 584:4cd7543be581

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Mon, 16 Mar 1992 20:39:07 +0000
parents 63b375f17a65
children 505130d1ddf8
comparison
equal deleted inserted replaced
583:3c0c1cd8428a 584:4cd7543be581
15 15
16 ;; You should have received a copy of the GNU General Public License 16 ;; You should have received a copy of the GNU General Public License
17 ;; along with GNU Emacs; see the file COPYING. If not, write to 17 ;; along with GNU Emacs; see the file COPYING. If not, write to
18 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 18 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19 19
20
21 (provide 'mlsupport)
22 20
23 (defmacro ml-defun (&rest defs) 21 (defmacro ml-defun (&rest defs)
24 (list 'ml-defun-1 (list 'quote defs))) 22 (list 'ml-defun-1 (list 'quote defs)))
25 23
26 (defun ml-defun-1 (args) 24 (defun ml-defun-1 (args)
401 (defun ml-substr (string from to) 399 (defun ml-substr (string from to)
402 (let ((length (length string))) 400 (let ((length (length string)))
403 (if (< from 0) (setq from (+ from length))) 401 (if (< from 0) (setq from (+ from length)))
404 (if (< to 0) (setq to (+ to length))) 402 (if (< to 0) (setq to (+ to length)))
405 (substring string from (+ from to)))) 403 (substring string from (+ from to))))
404
405 (provide 'mlsupport)
406