emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs lisp library name conflicts


From: Mike F
Subject: emacs lisp library name conflicts
Date: Sat, 7 May 2016 10:03:24 -0500

Hi Guys,

There is a conflict in command names between libraries
seq.el and sequential-command.el.
They both define a command seq-count.
Pasted in the two defuns below.

Any recommendations?

Thanks
Mike Fitzgerald


## MTF from sequential-command.el
(defun seq-count ()
  "Returns number of times `this-command' was executed.
It also updates `seq-start-position'."
  (if (eq last-command this-command)
      (incf seq-store-count)
    (setq seq-start-position  (cons (point) (window-start))
          seq-store-count     0)))

## MTF from seq.el
(defun seq-count (pred seq)
  "Return the number of elements for which (PRED element) is non-nil in SEQ."
  (let ((count 0))
    (seq-doseq (elt seq)
      (when (funcall pred elt)
        (setq count (+ 1 count))))
    count))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]