Subject: 24.4; dired-insert-subdir with saveplace

From: Tak Kunihiro <[email-masked]>
Date: Wed, 24 Dec 2014 23:24:01 +0900 (JST)

On `dired-insert-subdir' with saveplace on, point goes to random place.

0. emacs -Q
1. (require 'saveplace)
2. (setq-default save-place t)
3. M-x dired
4. M-x dired-insert-subdir
5. I expect point goes to top of the new inserted directory.
   However, it goes to random place.
6. It seems that it has something to do with dired-initial-position-hook
   in dired-initial-position.

In GNU Emacs 24.4.1 (i686-pc-mingw32)
 of 2014-10-25 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr'

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp932

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x b u g <tab> <tab> <M-backspace> r e p o r t <tab> 
<tab> <backspace> <M-backspace> <M-backspace> r e p 
o r <tab> <return> s a v e p l a c e SPC + SPC <down-mouse-1> 
<mouse-1> <double-down-mouse-1> <double-mouse-1> C-g 
<down-mouse-1> <mouse-1> C-g <down-mouse-1> <mouse-1> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
C-g <help-echo> <down-mouse-1> <mouse-1> C-g <help-echo> 
<down-mouse-1> <mouse-1> C-x d C-g C-; C-; C-g M-x 
C-g C-h C-g C-x C-f C-g C-h f d i r e d C-a p o s i 
<tab> <backspace> <backspace> <backspace> <backspace> 
C-e - i n i <tab> <return> C-x o C-e C-b C-b C-b <return> 
C-n C-n C-p C-p C-f C-f C-f C-f C-f C-f C-f C-M-SPC 
M-w C-x 5 2 <switch-frame> <help-echo> <help-echo> 
M-x r e p o r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Quit [5 times]
C-; is undefined [2 times]
Quit [2 times]
C-h C-g is undefined
Quit
Making completion list...
Type C-x 1 to delete the help window.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr find-func dired emacsbug message
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
w32notify w32 multi-tty emacs)

Memory information:
((conses 8 81635 14902)
 (symbols 32 17881 0)
 (miscs 32 61 231)
 (strings 16 13041 4284)
 (string-bytes 1 322092)
 (vectors 8 10161)
 (vector-slots 4 401031 5646)
 (floats 8 67 243)
 (intervals 28 462 0)
 (buffers 508 15))