GNU bug report logs - #30291
25.2; "ubuntu mono font" and "query-replace" (twice) hangs emacs

Previous Next

Package: emacs;

Reported by: Bill Evans <bill <at> 8pawexpress.com>

Date: Tue, 30 Jan 2018 03:10:01 UTC

Severity: normal

Merged with 34690

Found in versions 25.2, 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 30291 in the body.
You can then email your comments to 30291 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#30291; Package emacs. (Tue, 30 Jan 2018 03:10:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bill Evans <bill <at> 8pawexpress.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Jan 2018 03:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bill Evans <bill <at> 8pawexpress.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; "ubuntu mono font" and "query-replace" (twice) hangs emacs
Date: Mon, 29 Jan 2018 17:58:38 -0800
Reproducible steps with "emacs -Q":

1. Set the font with (set-face-attribute 'default nil :font "Ubuntu Mono").
2. In any buffer (including *scratch* of a freshly-started emacs).
3. Do a query-replace, it does not matter if anything is found or replaced.
4. Do another query-replace. This time, emacs should provide the 
previous search/replace as default, something ala:
        Query replace (foo --> bar): _
    where the --> is actually a fancy arrow, not dash-dash-greaterthan. 
Emacs always slows down a little in this part.
5. Interrupt (C-g) before completing the act. Emacs hangs (for me). 
(Occasionally it requires doing this twice, never more than that.)

If I do not set the font (fresh emacs) or set it to another font (e.g., 
"Consolas"), no such slow-down or hang occurs with the same steps.

Versions: win10_64, emacs-25.2.1 (vgoulet's 25.2mod3), ubuntu mono 0.80 
(dtd 2011; non-mono fonts are 0.83 from 2015)




In GNU Emacs 25.2.1 (x86_64-w64-mingw32)
 of 2017-04-24 built on KAEL
Repository revision: 784602b10506c50075aa9463891a47380ebea55f
Windowing system distributor 'Microsoft Corp.', version 10.0.16299
Configured using:
 'configure --prefix=/tmp/emacs --without-imagemagick --without-dbus
 --with-modules 'CFLAGS=-O2 -fomit-frame-pointer -g0''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS MODULES

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

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-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 messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded 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 w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 16 90268 10268)
 (symbols 56 20082 0)
 (miscs 48 51 126)
 (strings 32 16583 4807)
 (string-bytes 1 439616)
 (vectors 16 11784)
 (vector-slots 8 427318 4744)
 (floats 8 160 33)
 (intervals 56 237 21)
 (buffers 976 20))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30291; Package emacs. (Wed, 31 Jan 2018 06:35:01 GMT) Full text and rfc822 format available.

Message #8 received at 30291 <at> debbugs.gnu.org (full text, mbox):

From: Bill Evans <bill <at> 8pawexpress.com>
To: 30291 <at> debbugs.gnu.org
Subject: Re: bug#30291: Acknowledgement (25.2; "ubuntu mono font" and
 "query-replace" (twice) hangs emacs)
Date: Tue, 30 Jan 2018 21:16:41 -0800
Further information, as mentioned in a comment on StackOverflow 
(https://emacs.stackexchange.com/questions/38449/ubuntu-mono-font-hanging-emacs?noredirect=1#comment60603_38449):

Changing `query-replace-from-to-separator` to something trivial such as 
" -> " also fixes the problem. This suggests that there is (1) likely 
something "different" with Ubuntu Mono's interpretation of the 
right-arrow character, and (2) emacs is not dealing well with that 
different-ness.

(I recently upgraded to "GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 
2017-09-12", the bug behaves the same. It originally became a problem 
when I upgraded from emacs24 to emacs25.)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30291; Package emacs. (Wed, 31 Jan 2018 15:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 30291 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Bill Evans <bill <at> 8pawexpress.com>
Cc: 30291 <at> debbugs.gnu.org
Subject: Re: bug#30291: Acknowledgement (25.2;
 "ubuntu mono font" and "query-replace" (twice) hangs emacs)
Date: Wed, 31 Jan 2018 17:03:23 +0200
> From: Bill Evans <bill <at> 8pawexpress.com>
> Date: Tue, 30 Jan 2018 21:16:41 -0800
> 
> Changing `query-replace-from-to-separator` to something trivial such as 
> " -> " also fixes the problem. This suggests that there is (1) likely 
> something "different" with Ubuntu Mono's interpretation of the 
> right-arrow character, and (2) emacs is not dealing well with that 
> different-ness.
> 
> (I recently upgraded to "GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 
> 2017-09-12", the bug behaves the same. It originally became a problem 
> when I upgraded from emacs24 to emacs25.)

Does it help to set use-default-font-for-symbols to the nil value
(without customizing query-replace-from-to-separator)?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30291; Package emacs. (Wed, 31 Jan 2018 17:31:01 GMT) Full text and rfc822 format available.

Message #14 received at 30291 <at> debbugs.gnu.org (full text, mbox):

From: Bill Evans <bill <at> 8pawexpress.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 30291 <at> debbugs.gnu.org
Subject: Re: bug#30291: Acknowledgement (25.2; "ubuntu mono font" and
 "query-replace" (twice) hangs emacs)
Date: Wed, 31 Jan 2018 08:31:16 -0800

On 2018-01-31 07:03, Eli Zaretskii wrote:
> Does it help to set use-default-font-for-symbols to the nil value
> (without customizing query-replace-from-to-separator)?

No, it still causes the hang.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30291; Package emacs. (Tue, 17 Apr 2018 20:02:01 GMT) Full text and rfc822 format available.

Message #17 received at 30291 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Bill Evans <bill <at> 8pawexpress.com>
Cc: 30291 <at> debbugs.gnu.org
Subject: Re: bug#30291: Acknowledgement (25.2;
 "ubuntu mono font" and "query-replace" (twice) hangs emacs)
Date: Tue, 17 Apr 2018 22:01:27 +0200
Bill Evans <bill <at> 8pawexpress.com> writes:

> Further information, as mentioned in a comment on StackOverflow
> (https://emacs.stackexchange.com/questions/38449/ubuntu-mono-font-hanging-emacs?noredirect=1#comment60603_38449):
>
> Changing `query-replace-from-to-separator` to something trivial such
> as " -> " also fixes the problem. This suggests that there is (1)
> likely something "different" with Ubuntu Mono's interpretation of the
> right-arrow character, and (2) emacs is not dealing well with that
> different-ness.

Is `query-replace' necessary to trigger the bug, or does evaling

(message "%s" query-replace-from-to-separator)

a couple of times also hang Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#30291; Package emacs. (Wed, 18 Apr 2018 19:16:02 GMT) Full text and rfc822 format available.

Message #20 received at 30291 <at> debbugs.gnu.org (full text, mbox):

From: Bill Evans <bill <at> 8pawexpress.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 30291 <at> debbugs.gnu.org
Subject: Re: bug#30291: Acknowledgement (25.2; "ubuntu mono font" and
 "query-replace" (twice) hangs emacs)
Date: Wed, 18 Apr 2018 12:06:35 -0700

On 2018-04-17 13:01, Lars Ingebrigtsen wrote:
> Bill Evans <bill <at> 8pawexpress.com> writes:
>
>> Further information, as mentioned in a comment on StackOverflow
>> (https://emacs.stackexchange.com/questions/38449/ubuntu-mono-font-hanging-emacs?noredirect=1#comment60603_38449):
>>
>> Changing `query-replace-from-to-separator` to something trivial such
>> as " -> " also fixes the problem. This suggests that there is (1)
>> likely something "different" with Ubuntu Mono's interpretation of the
>> right-arrow character, and (2) emacs is not dealing well with that
>> different-ness.
> Is `query-replace' necessary to trigger the bug, or does evaling
>
> (message "%s" query-replace-from-to-separator)
>
> a couple of times also hang Emacs?
>

It is certainly noticeably slower than with other fonts, but I could not 
get it to actually hang emacs.





Merged 30291 34690. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 03 Apr 2019 11:05:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 34690 <at> debbugs.gnu.org and Daniel Hernandez <daniel <at> degu.cl> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 21 Nov 2019 12:28:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Dec 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.