GNU bug report logs -
#17134
24.3.50; Dired error
Previous Next
Reported by: Fabrice Niessen <fni-news <at> pirilampo.org>
Date: Fri, 28 Mar 2014 23:16:02 UTC
Severity: normal
Tags: notabug
Found in version 24.3.50
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 17134 <at> debbugs.gnu.org (full text, mbox):
Hi Fabrice,
> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p [...])
> save-place-dired-hook()
> run-hooks(dired-initial-point-hook)
> dired-initial-position("d:/Users/fni/src/stage-latex-dunkerque-2012/")
> dired-internal-noselect("d:/Users/fni/src/stage-latex-dunkerque-2012/" nil)
> dired-noselect("~/src/stage-latex-dunkerque-2012")
> run-hook-with-args-until-success(dired-noselect "~/src/stage-latex-dunkerque-2012")
> find-file-noselect("D:/Users/fni/src/stage-latex-dunkerque-2012" nil nil nil)
> [...]
Thanks for your report. I think this has already been fixed 3 months
ago (revision 843879d in git). `save-place-dired-hook' looks in the
emacs-24 branch like this:
--8<---------------cut here---------------start------------->8---
(defun save-place-dired-hook ()
"Position the point in a Dired buffer."
(or save-place-loaded (load-save-place-alist-from-file))
(let ((cell (assoc (and (derived-mode-p 'dired-mode)
dired-directory
(expand-file-name (if (consp dired-directory)
(car dired-directory)
dired-directory)))
save-place-alist)))
(if cell
(progn
(or revert-buffer-in-progress-p
(if (integerp (cdr cell))
(goto-char (cdr cell))
(and (assq 'dired-filename (cdr cell))
(dired-goto-file (cdr (assq 'dired-filename (cdr cell)))))))
;; and make sure it will be saved again for later
(setq save-place t)))))
--8<---------------cut here---------------end--------------->8---
Evaluating the new defun should fix the problem for you, I think.
Regards,
Michael.
This bug report was last modified 11 years and 109 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.