From: Eli Zaretskii <eliz@gnu.org>
To: npostavs@users.sourceforge.net
Cc: 27210@debbugs.gnu.org, ambrevar@gmail.com
Subject: bug#27210: 25.2; Recovering loaddefs.el with desktop-mode hangs when linum is on
Date: Sat, 03 Jun 2017 21:38:43 +0300 [thread overview]
Message-ID: <83d1akc3ws.fsf@gnu.org> (raw)
In-Reply-To: <83efv1aqzx.fsf@gnu.org> (message from Eli Zaretskii on Sat, 03 Jun 2017 21:02:58 +0300)
> Date: Sat, 03 Jun 2017 21:02:58 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 27210@debbugs.gnu.org, ambrevar@gmail.com
>
> > I can reproduce this, the problem seems to be that window-start and
> > window-end give the same answers as point-min and point-max respectively
> > when in daemon mode. This causes linum-update-window to make overlays
> > for every line in the buffer.
>
> So you are saying this just takes a lot of time, but will eventually
> end? If so, what is the bug here?
Or maybe we should do the below?
diff --git a/lisp/linum.el b/lisp/linum.el
index 8baa263..06165f2 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -112,7 +112,8 @@ linum-mode
(define-globalized-minor-mode global-linum-mode linum-mode linum-on)
(defun linum-on ()
- (unless (minibufferp)
+ (unless (or (minibufferp)
+ (and (daemonp) (null (frame-parameter nil 'client))))
(linum-mode 1)))
(defun linum-delete-overlays ()
next prev parent reply other threads:[~2017-06-03 18:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-03 14:29 bug#27210: 25.2; Recovering loaddefs.el with desktop-mode hangs when linum is on Pierre Neidhardt
2017-06-03 14:56 ` Eli Zaretskii
2017-06-03 16:22 ` Pierre Neidhardt
2017-06-03 17:43 ` npostavs
2017-06-03 18:02 ` Eli Zaretskii
2017-06-03 18:38 ` Eli Zaretskii [this message]
2017-06-03 19:52 ` npostavs
2017-06-03 23:07 ` npostavs
2017-06-04 14:15 ` Eli Zaretskii
2017-06-04 15:08 ` npostavs
2017-06-04 16:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83d1akc3ws.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=27210@debbugs.gnu.org \
--cc=ambrevar@gmail.com \
--cc=npostavs@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).