From: Michael Heerdegen <michael_heerdegen@web.de>
To: Fabrice Niessen <public-fni-news-TA4HMoP+1wHrZ44/DZwexQ@plane.gmane.org>
Cc: public-17134-ubl+/3LiMTaZdePnXv/OxA@plane.gmane.org
Subject: bug#17134: 24.3.50; Dired error
Date: Sat, 29 Mar 2014 18:53:06 +0100 [thread overview]
Message-ID: <87fvm07uyl.fsf@web.de> (raw)
In-Reply-To: <86zjk9j4rg.fsf@somewhere.org> (Fabrice Niessen's message of "Sat, 29 Mar 2014 00:13:39 +0100")
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.
next prev parent reply other threads:[~2014-03-29 17:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 23:13 bug#17134: 24.3.50; Dired error Fabrice Niessen
2014-03-29 17:53 ` Michael Heerdegen [this message]
2014-03-29 17:54 ` Juri Linkov
[not found] ` <86zjk9j4rg.fsf-oHC15RC7JGTNLxjTenLetw@public.gmane.org>
2014-03-31 13:09 ` Fabrice Niessen
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=87fvm07uyl.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=public-17134-ubl+/3LiMTaZdePnXv/OxA@plane.gmane.org \
--cc=public-fni-news-TA4HMoP+1wHrZ44/DZwexQ@plane.gmane.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.