help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: remove sublist


From: Emanuel Berg
Subject: Re: remove sublist
Date: Mon, 02 Apr 2018 22:20:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Stefan Monnier wrote:

>> Only strange thing is the order is reversed,
>
> That'd be a bug (which I don't see here).

OK, does that mean, what works for me (last),
gets reversed for you?

I'm on

    GNU Emacs 24.4.1
    (arm-unknown-linux-gnueabihf, GTK+ Version
    3.14.5) of 2015-03-10 on bm-wb-01, modified
    by Debian

I think the `member' solution is better, more
generic, but it can be interesting to track the
bug nonetheless.

BTW if it fixed in 25.1 but not in 24.4, how
about running diff(1) on cl-seq.el and check it
out around line ~835?

Second, emacs-24 is the most recent version
I get from


    deb [arch=armhf] http://mirrordirector.raspbian.org/raspbian/ jessie main 
contrib non-free rpi
    deb-src          http://archive.raspbian.org/raspbian/        jessie main 
contrib non-free rpi


(yanking /etc/apt/sources.list )

Because it is still what is offered from the
main repos, does that mean bugs are bothered
with even tho there is a newer version? Boy,
that sounds like a handful of work :) Or
perhaps just bugs which are considered
critical? Or not at all? Sounds like very
demoralizing work to say the least, fixing bugs
that are already fixed, and can introduce new
bugs or be dependent on ever newer material,
not available at that version, and so on
forever, like everyone else is using the new
versions, only one or two guys never get there
as stuck, they just fix bugs in obsolete
version all day long. Ha ha ha :D

(require 'cl-lib)
(defun drop-sublist (l sl)
  (if sl
      (reverse (cl-set-difference l sl :test #'string-equal))
    l))
;; (drop-sublist '("0" "a" "b" "c" "d")  '("a" "b" "x"))
;; (drop-sublist '("0" "a" "b" "c" "d")  '(x))
;; (drop-sublist '("0" "a" "b" "c" "d")  '())
;; (drop-sublist '()                     '(x))

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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