all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Politz <politza@hochschule-trier.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 15426@debbugs.gnu.org
Subject: bug#15426: 24.3.50; Multibyte filenames and directory-files in unibyte buffer
Date: Fr, 20 Sep 2013 20:51:09 +0200	[thread overview]
Message-ID: <87k3ibgwde.fsf@hochschule-trier.de> (raw)
In-Reply-To: <831u4jl738.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Sep 2013 20:46:03 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> Why did you need to do something like that, and in what real-life use
> case?

By default buffer for PDF files are in unibyte mode.  I use
doc-view-mode and store some custom data in some directory below it's
cache directory, which I want to remove, when the buffer gets killed.
The removing of this directory (e.g. .doc-view/FILENAME-83432/data/) is
done with delete-directory, but fails, if FILENAME contains multibyte
character (see below).  So I am actually not inserting anything into a
buffer.

Debugger entered--Lisp error: (file-error "Removing old name" "no such file or directory" "/home/politza/.emacs.d/.doc-view-cache/\301\203\300\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file/b5366a2d2ac98dae978423083f8b09e5cddc705d.png")
  delete-file("/home/politza/.emacs.d/.doc-view-cache/\301\203\300\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file/b5366a2d2ac98dae978423083f8b09e5cddc705d.png" nil)
  #[257 "\301.!@\302=\203.\0\303.\300\304#\207\305.\304\"\207" [t file-attributes t delete-directory nil delete-file] 5 "\n\n(fn FILE)"]("/home/politza/.emacs.d/.doc-view-cache/\301\203\300\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file/b5366a2d2ac98dae978423083f8b09e5cddc705d.png")
  mapc(#[257 "\301.!@\302=\203.\0\303.\300\304#\207\305.\304\"\207" [t file-attributes t delete-directory nil delete-file] 5 "\n\n(fn FILE)"] ("/home/politza/.emacs.d/.doc-view-cache/\301\203\300\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file/b5366a2d2ac98dae978423083f8b09e5cddc705d.png"))
  delete-directory("/home/politza/.emacs.d/.doc-view-cache/\303\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file" t nil)
  #[257 "\301.!@\302=\203.\0\303.\300\304#\207\305.\304\"\207" [t file-attributes t delete-directory nil delete-file] 5 "\n\n(fn FILE)"]("/home/politza/.emacs.d/.doc-view-cache/\303\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file")
  mapc(#[257 "\301.!@\302=\203.\0\303.\300\304#\207\305.\304\"\207" [t file-attributes t delete-directory nil delete-file] 5 "\n\n(fn FILE)"] ("/home/politza/.emacs.d/.doc-view-cache/\303\204.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/pdf-render-temp-file"))
  delete-directory("/home/politza/.emacs.d/.doc-view-cache/Ä.pdf-52cb45a94cb1cf895aea4dba33da58be/.pdf-util-cache/" t)
  (progn (delete-directory dir t))
  (if (and dir (file-exists-p dir)) (progn (delete-directory dir t)))
  (let ((dir (pdf-util-cache--get-root-dir))) (if (and dir (file-exists-p dir)) (progn (delete-directory dir t))))
  pdf-util-cache-clear-all()
  kill-buffer("Ä.pdf")
  call-interactively(kill-buffer nil nil)
  command-execute(kill-buffer)

-ap





  reply	other threads:[~2013-09-20 18:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 16:47 bug#15426: 24.3.50; Multibyte filenames and directory-files in unibyte buffer Andreas Politz
2013-09-20 17:46 ` Eli Zaretskii
2013-09-20 18:51   ` Andreas Politz [this message]
2013-09-20 19:08     ` Eli Zaretskii
2013-09-20 19:15   ` Stefan Monnier
2013-09-20 19:17     ` Eli Zaretskii
2013-09-20 20:56       ` Andreas Politz
2013-09-21  6:48         ` Eli Zaretskii
2013-09-21  9:35           ` Andreas Politz
2013-09-21  9:38             ` Andreas Politz
2013-09-21 11:59             ` Eli Zaretskii
2013-09-21 17:12               ` Andreas Politz
2013-09-21 18:53                 ` Eli Zaretskii
2013-09-21 16:06           ` Stefan Monnier
2013-09-21 16:26             ` Eli Zaretskii
2013-09-22  1:29               ` Stefan Monnier

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=87k3ibgwde.fsf@hochschule-trier.de \
    --to=politza@hochschule-trier.de \
    --cc=15426@debbugs.gnu.org \
    --cc=eliz@gnu.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.