GNU bug report logs -
#13044
24.2; mark-whole-buffer seems doesn't work with these code in my .emacs
Previous Next
Reported by: jixiuf <jixiuf <at> gmail.com>
Date: Sat, 1 Dec 2012 02:02:02 UTC
Severity: minor
Tags: fixed
Found in versions 24.5, 24.2
Fixed in version 25.2
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
found 13044 24.5
tags 13044 fixed
close 13044 25.2
quit
jixiuf <jixiuf <at> gmail.com> writes:
> 1 I run emacs with `emacs -Q`
> 2 paste these in *scratch* buffer
> ```
> (setq ibuffer-saved-filter-groups
> '(("Default"
> ("Dired" (mode . dired-mode))
> )))
> (add-hook 'ibuffer-mode-hook
> (lambda ()
> (ibuffer-auto-mode 1) ;自动更新*Ibuffer* buffer
> (ibuffer-switch-to-saved-filter-groups "Default")))
> (defun joseph-set-frame-title()
> "show correct buffer name even in minibuffer"
> (let* ((title "")
> (size)
> (win-buf (if (minibufferp)(window-buffer (next-window )) (current-buffer)))
> (file-name (buffer-file-name win-buf))
> )
> (setq title (concat (buffer-name win-buf) " "))
> (setq size (cond
> ((> (buffer-size win-buf) 1000000) (format "%.1fM" (/ (buffer-size win-buf) 1000000.0)))
> ((> (buffer-size win-buf) 1000) (format "%.1fk" (/ (buffer-size win-buf) 1000.0)))
> (t (format "%d" (buffer-size win-buf)))))
> (setq title (format " %s[%s] %s GNU/Emacs" title size (or file-name "")))
> title))
>
> (setq frame-title-format '( (:eval (joseph-set-frame-title))))
> (ibuffer)
> ```
> 3 eval-buffer
> 4 press `C-xh` call mark-whole-buffer ,I can see "Mark Set" in the echo area,
> but the buffer is not selected .I need press another `C-xh` to select the
> buffer.
I can reproduce with 24.3, 24.4, 24.5, but not with 25.2 (didn't check
with 25.1).
This bug report was last modified 8 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.