From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ishi soichi Newsgroups: gmane.emacs.help Subject: delete-file using wildcard Date: Sat, 29 Oct 2011 16:54:15 +0900 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba613b50e5bb9b04b06b4f1c X-Trace: dough.gmane.org 1319874871 9745 80.91.229.12 (29 Oct 2011 07:54:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2011 07:54:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 29 09:54:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RK3kJ-0002pm-LY for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 09:54:27 +0200 Original-Received: from localhost ([::1]:39116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK3kE-0008P4-BI for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 03:54:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK3k9-0008Oa-DA for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 03:54:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK3k8-0003RP-Jd for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 03:54:17 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:52043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK3k8-0003R2-Fk for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 03:54:16 -0400 Original-Received: by iagf6 with SMTP id f6so6633510iag.0 for ; Sat, 29 Oct 2011 00:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=LxM+l5SGSZlblXaD2jmCOOZqCFJrY+wHmwzQb3YFaVs=; b=xex2KcVfVmyNLMjuYQXmoa1z7z1g7oKGbGgwHzxjiePP3T/rs0LBl98Ym64FxT1OMN a1ioZF8fF0wdzQA9EXjLJrBfx+sm8D+OjVkIC9gxdt158Y6UTK2cE+5kAYQ2nLRXVSnw phXPZXrESQm/0I7iOwelSU4jdSW6Dcr2g84Ns= Original-Received: by 10.42.164.67 with SMTP id f3mr8616881icy.41.1319874855287; Sat, 29 Oct 2011 00:54:15 -0700 (PDT) Original-Received: by 10.42.167.132 with HTTP; Sat, 29 Oct 2011 00:54:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82699 Archived-At: --90e6ba613b50e5bb9b04b06b4f1c Content-Type: text/plain; charset=ISO-8859-1 I have a question about Emacs Lisp, which I believe is simple enough for most of you. I would like to delete files in a directory. When doing so with Linux command, we usually do, > rm * at that directory. the wildcard command does not seem work similarly in Emacs Lisp. (delete-file (subseq (file-expand-wildcards "~/Desktop/*") -1)) doesn't work. Could anyone help me out? soichi --90e6ba613b50e5bb9b04b06b4f1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have a question about Emacs Lisp, which I believe is simple enough for mo= st of you.


I would like to delete files i= n a directory.
When doing so with Linux command, we usually do,

> rm *

at that directory.

the wildcard command does not seem work similarly i= n Emacs Lisp.

(delete-file (subseq (file-expand-wi= ldcards "~/Desktop/*") -1))

doesn't work.

Could anyone= help me out?

soichi
--90e6ba613b50e5bb9b04b06b4f1c--