From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: save-excursion doesn't save point? Date: Tue, 11 Jun 2002 11:11:53 -0600 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3D062F59.8070705@ihs.com> References: <20020608055559.GA689668@bruegel.RZ.TU-Ilmenau.DE> <87hekep83a.fsf@tc-1-100.kawasaki.gol.ne.jp> <20020608072843.GA689936@bruegel.RZ.TU-Ilmenau.DE> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1023816614 29380 127.0.0.1 (11 Jun 2002 17:30:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2002 17:30:14 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17HpTB-0007dl-00 for ; Tue, 11 Jun 2002 19:30:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17HpBq-00074q-00; Tue, 11 Jun 2002 13:12:18 -0400 Original-Received: from mailbox1.ucsd.edu ([132.239.1.53]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17HpBB-0006wL-00 for ; Tue, 11 Jun 2002 13:11:37 -0400 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox1.ucsd.edu (8.12.1/8.12.1) with ESMTP id g5BHBXL0020044 for ; Tue, 11 Jun 2002 10:11:33 -0700 (PDT) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Tue, 11 Jun 2002 19:11:32 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Tue, 11 Jun 2002 19:11:32 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 13 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1023815491 4258797 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1936 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1936 Paul Stoeber wrote: > I use shuffle-lines to shuffle my music playlist. > It could be generally useful. Emacs already has shuffle-vector. Then it seems the simplest implementation would be to read the region into a vector, shuffle the vector, then overwrite the region with the vector's contents. -- Kevin Rodgers