bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13044: 24.2; mark-whole-buffer seems doesn't work with these code in


From: npostavs
Subject: bug#13044: 24.2; mark-whole-buffer seems doesn't work with these code in my .emacs
Date: Sat, 25 Mar 2017 01:09:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

found 13044 24.5
tags 13044 fixed
close 13044 25.2
quit

jixiuf <address@hidden> 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).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]