Package: emacs;
Reported by: Ushnish Basu <ubasu <at> cal.berkeley.edu>
Date: 2014年4月17日 00:43:01 UTC
Severity: normal
Found in version 24.4.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17279 in the body.
You can then email your comments to 17279 AT debbugs.gnu.org in the normal way.
the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
bug-gnu-emacs <at> gnu.org:bug#17279; Package emacs.
(2014年4月17日 00:43:01 GMT) Full text and rfc822 format available.Ushnish Basu <ubasu <at> cal.berkeley.edu>:bug-gnu-emacs <at> gnu.org.
(2014年4月17日 00:43:02 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Ushnish Basu <ubasu <at> cal.berkeley.edu> To: bug-gnu-emacs <at> gnu.org Subject: 24.4.50; dired buffer slightly scrambled Date: 2014年4月16日 17:42:24 -0700
I just updated from the trunk, and I noticed that the dired buffer output is slightly scrambled, as follows... Normally the dired buffer has the text: "total used in directory xxxxx available xxxxx" Now the output is "total used in directory xxxxx" dired listing line 1 ... dired listing last line "available xxxxx" In GNU Emacs 24.4.50.3 (x86_64-suse-linux-gnu, GTK+ Version 3.10.4) of 2014年04月16日 on plato Repository revision: 116983 eggert <at> cs.ucla.edu-20140416194346-6t8crumggyrq5vz1 Windowing system distributor `The X.Org Foundation', version 11.0.11403901 System Description: openSUSE 13.1 (Bottle) (x86_64) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix Major mode: Dired by date Minor modes in effect: magit-auto-revert-mode: t diff-auto-refine-mode: t shell-dirtrack-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 buffer-read-only: t column-number-mode: t line-number-mode: t Recent input: <help-echo> <f3> s s <tab> c l i <tab> z h <tab> <return> g g g g <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> g g g <help-echo> R p m l . z i p <return> g g <up> <down> g g <up> C-x k <return> <f3> <up> <C-backspace> <C-backspace> <C-backspace> <return> g <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> <down> g g g g g <return> g g g s s s <up> <up> <up> g M-x b u g <tab> <tab> <C-backspace> <C-backspace> C-g C-g g g g M-x r e p o r <tab> <return> Recent messages: Loading delsel...done Loading paren...done For information about GNU Emacs and the GNU system, type C-x C-h C-a. Cannot move to same file: /home/ubasu/ssi/clients/zhe/pml.zip Making completion list... Quit [2 times] Load-path shadows: /home/ubasu/elisp/gnuplot hides /usr/local/share/emacs/site-lisp/gnuplot /home/ubasu/elisp/gnuplot-gui hides /usr/local/share/emacs/site-lisp/gnuplot-gui Features: (shadow sort mail-extr warnings emacsbug sendmail dired-aux magit-svn magit-key-mode magit view help-mode grep epa derived epg epg-config autorevert filenotify git-rebase-mode thingatpt git-commit-mode server which-func imenu zencoding-mode php-mode speedbar sb-image ezimage dframe etags flymake compile cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs psvn wid-edit cl cl-loaddefs cl-lib log-edit message dired rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log diff-mode easy-mmode tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns jka-compr paren delsel cus-start cus-load info easymenu package time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd 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 dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 210363 19821) (symbols 48 31947 0) (miscs 40 114 326) (strings 32 54179 13804) (string-bytes 1 1567914) (vectors 16 24398) (vector-slots 8 557708 7606) (floats 8 116 245) (intervals 56 502 278) (buffers 960 18) (heap 1024 46542 1151))
bug-gnu-emacs <at> gnu.org:bug#17279; Package emacs.
(2014年4月17日 05:35:02 GMT) Full text and rfc822 format available.Message #8 received at 17279 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Ushnish Basu <ubasu <at> cal.berkeley.edu> Cc: 17279 <at> debbugs.gnu.org Subject: Re: bug#17279: 24.4.50; dired buffer slightly scrambled Date: 2014年4月17日 08:35:00 +0300
> Date: 2014年4月16日 17:42:24 -0700 > From: Ushnish Basu <ubasu <at> cal.berkeley.edu> > > > I just updated from the trunk, and I noticed that the dired buffer > output is slightly scrambled, as follows... > > Normally the dired buffer has the text: > > "total used in directory xxxxx available xxxxx" > > Now the output is > > "total used in directory xxxxx" > dired listing line 1 > ... > dired listing last line "available xxxxx" I cannot reproduce this. However, if you do this: (setq-default cache-long-scans nil) before invoking Dired, does the problem go away?
bug-gnu-emacs <at> gnu.org:bug#17279; Package emacs.
(2014年4月17日 05:43:02 GMT) Full text and rfc822 format available.Message #11 received at 17279 <at> debbugs.gnu.org (full text, mbox):
From: Ushnish Basu <ubasu <at> cal.berkeley.edu> To: Eli Zaretskii <eliz <at> gnu.org> Cc: 17279 <at> debbugs.gnu.org Subject: Re: bug#17279: 24.4.50; dired buffer slightly scrambled Date: 2014年4月16日 22:41:14 -0700
Yes, it does - thanks for the tip. Ushnish On 04/16/2014 10:35 PM, Eli Zaretskii wrote: >> Date: 2014年4月16日 17:42:24 -0700 >> From: Ushnish Basu <ubasu <at> cal.berkeley.edu> >> >> >> I just updated from the trunk, and I noticed that the dired buffer >> output is slightly scrambled, as follows... >> >> Normally the dired buffer has the text: >> >> "total used in directory xxxxx available xxxxx" >> >> Now the output is >> >> "total used in directory xxxxx" >> dired listing line 1 >> ... >> dired listing last line "available xxxxx" > > I cannot reproduce this. However, if you do this: > > (setq-default cache-long-scans nil) > > before invoking Dired, does the problem go away? >
bug-gnu-emacs <at> gnu.org:bug#17279; Package emacs.
(2014年4月17日 05:50:01 GMT) Full text and rfc822 format available.Message #14 received at 17279 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Ushnish Basu <ubasu <at> cal.berkeley.edu> Cc: 17279 <at> debbugs.gnu.org Subject: Re: bug#17279: 24.4.50; dired buffer slightly scrambled Date: 2014年4月17日 08:49:25 +0300
> Date: 2014年4月16日 22:41:14 -0700 > From: Ushnish Basu <ubasu <at> cal.berkeley.edu> > CC: 17279 <at> debbugs.gnu.org > > Yes, it does - thanks for the tip. Then I guess it's another duplicate of 17269.
bug-gnu-emacs <at> gnu.org:bug#17279; Package emacs.
(2014年4月17日 07:33:01 GMT) Full text and rfc822 format available.Message #17 received at 17279 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: ubasu <at> cal.berkeley.edu Cc: 17279 <at> debbugs.gnu.org Subject: Re: bug#17279: 24.4.50; dired buffer slightly scrambled Date: 2014年4月17日 10:32:28 +0300
> Date: 2014年4月17日 08:49:25 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 17279 <at> debbugs.gnu.org
>
> > Date: 2014年4月16日 22:41:14 -0700
> > From: Ushnish Basu <ubasu <at> cal.berkeley.edu>
> > CC: 17279 <at> debbugs.gnu.org
> >
> > Yes, it does - thanks for the tip.
>
> Then I guess it's another duplicate of 17269.
Please try the patch below, which I've just committed to the emacs-24
branch:
=== modified file 'src/insdel.c'
--- src/insdel.c 2014年04月14日 15:32:27 +0000
+++ src/insdel.c 2014年04月17日 07:24:40 +0000
@@ -1857,14 +1857,9 @@ invalidate_buffer_caches (struct buffer
need to consider the caches of their base buffer. */
if (buf->base_buffer)
buf = buf->base_buffer;
- if (buf->newline_cache)
- invalidate_region_cache (buf,
- buf->newline_cache,
- start - BUF_BEG (buf), BUF_Z (buf) - end);
- if (buf->width_run_cache)
- invalidate_region_cache (buf,
- buf->width_run_cache,
- start - BUF_BEG (buf), BUF_Z (buf) - end);
+ /* The bidi_paragraph_cache must be invalidated first, because doing
+ so might need to use the newline_cache (via find_newline_no_quit,
+ see below). */
if (buf->bidi_paragraph_cache)
{
if (start != end
@@ -1888,13 +1883,20 @@ invalidate_buffer_caches (struct buffer
&start_byte);
set_buffer_internal (old);
}
- if (line_beg > BUF_BEG (buf))
- start = line_beg - 1;
+ start = line_beg - (line_beg > BUF_BEG (buf));
}
invalidate_region_cache (buf,
buf->bidi_paragraph_cache,
start - BUF_BEG (buf), BUF_Z (buf) - end);
}
+ if (buf->newline_cache)
+ invalidate_region_cache (buf,
+ buf->newline_cache,
+ start - BUF_BEG (buf), BUF_Z (buf) - end);
+ if (buf->width_run_cache)
+ invalidate_region_cache (buf,
+ buf->width_run_cache,
+ start - BUF_BEG (buf), BUF_Z (buf) - end);
}
/* These macros work with an argument named `preserve_ptr'
bug-gnu-emacs <at> gnu.org:bug#17279; Package emacs.
(2014年4月17日 16:50:05 GMT) Full text and rfc822 format available.Message #20 received at 17279 <at> debbugs.gnu.org (full text, mbox):
From: Ushnish Basu <ubasu <at> cal.berkeley.edu> To: Eli Zaretskii <eliz <at> gnu.org> Cc: 17279 <at> debbugs.gnu.org Subject: Re: bug#17279: 24.4.50; dired buffer slightly scrambled Date: 2014年4月17日 09:49:31 -0700
On 04/17/2014 12:32 AM, Eli Zaretskii wrote: > > Please try the patch below, which I've just committed to the emacs-24 > branch: > Thanks, that seems to have fixed it. Ushnish
Eli Zaretskii <eliz <at> gnu.org>:Ushnish Basu <ubasu <at> cal.berkeley.edu>:Message #25 received at 17279-done <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Ushnish Basu <ubasu <at> cal.berkeley.edu> Cc: 17279-done <at> debbugs.gnu.org Subject: Re: bug#17279: 24.4.50; dired buffer slightly scrambled Date: 2014年4月17日 20:40:30 +0300
> Date: 2014年4月17日 09:49:31 -0700 > From: Ushnish Basu <ubasu <at> cal.berkeley.edu> > CC: 17279 <at> debbugs.gnu.org > > > On 04/17/2014 12:32 AM, Eli Zaretskii wrote: > > > > Please try the patch below, which I've just committed to the emacs-24 > > branch: > > > > Thanks, that seems to have fixed it. Great, closing.
Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org.
(2014年5月16日 11:24:04 GMT) Full text and rfc822 format available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.