Mercurial > hg > xemacs-beta
diff lisp/subr.el @ 3000:5df5ea55d3fc
[xemacs-hg @ 2005-10-18 20:49:41 by malcolmp]
Sync of occur mode with GNU Emacs 22.0.50.1 (CVS)
author | malcolmp |
---|---|
date | Tue, 18 Oct 2005 20:49:43 +0000 |
parents | 52f00344a629 |
children | f17718066b5e |
line wrap: on
line diff
--- a/lisp/subr.el Mon Oct 17 21:51:33 2005 +0000 +++ b/lisp/subr.el Tue Oct 18 20:49:43 2005 +0000 @@ -23,8 +23,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with XEmacs; see the file COPYING. If not, write to the Free -;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -;; 02111-1307, USA. +;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Synched up with: FSF 19.34. Some things synched up with later versions. @@ -1620,6 +1620,20 @@ ;; END SYNC WITH FSF 21.2 +;; BEGIN SYNC WITH FSF 22.0.50.1 (CVS) +(defun delete-dups (list) + "Destructively remove `equal' duplicates from LIST. +Store the result in LIST and return it. LIST must be a proper list. +Of several `equal' occurrences of an element in LIST, the first +one is kept." + (let ((tail list)) + (while tail + (setcdr tail (delete (car tail) (cdr tail))) + (setq tail (cdr tail)))) + list) + +;; END SYNC WITH FSF 22.0.50.1 (CVS) + ;; (defun shell-quote-argument (argument) in process.el. ;; (defun make-syntax-table (&optional oldtable) in syntax.el.