all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mike F <mikef656@gmail.com>
To: rubikitch@ruby-lang.org, emacs-devel@gnu.org, nicolas@petton.fr
Subject: emacs lisp library name conflicts
Date: Sat, 7 May 2016 10:03:24 -0500	[thread overview]
Message-ID: <CACy+NBKngGCXBnJBEo72RnUDk1A9a3JV4nUXLQNa-ktenvCt8g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 1115 bytes --]

             reply	other threads:[~2016-05-07 15:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-07 15:03 Mike F [this message]
2016-05-07 16:39 ` emacs lisp library name conflicts Nicolas Petton
2016-05-11  1:54   ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACy+NBKngGCXBnJBEo72RnUDk1A9a3JV4nUXLQNa-ktenvCt8g@mail.gmail.com \
    --to=mikef656@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=nicolas@petton.fr \
    --cc=rubikitch@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.