From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Trunk emacs infelicity with linum mode Date: Sun, 07 Sep 2014 20:03:27 +0200 Message-ID: <540C9DEF.1010301@gmx.at> References: <87zjeix7hg.fsf@glaurung.internal.golden-gryphon.com> <838um1gar9.fsf@gnu.org> <87ppfdyhpf.fsf@glaurung.internal.golden-gryphon.com> <8361h5g7mv.fsf@gnu.org> <87zjehw5cs.fsf@glaurung.internal.golden-gryphon.com> <834mwog0u0.fsf@gnu.org> <87wq9kd5y3.fsf@glaurung.internal.golden-gryphon.com> <83oauve75i.fsf@gnu.org> <87lhpxaopi.fsf@glaurung.internal.golden-gryphon.com> <83vbp1deta.fsf@gnu.org> <540ACB6A.5020402@gmx.at> <540AED8A.9030000@gmx.at> <83ha0jcv31.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410113051 4357 80.91.229.3 (7 Sep 2014 18:04:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2014 18:04:11 +0000 (UTC) Cc: srivasta@ieee.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 20:04:04 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XQgol-0007Fl-3v for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2014 20:04:03 +0200 Original-Received: from localhost ([::1]:39190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQgok-0002AS-O0 for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2014 14:04:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQgoR-0002AH-Hf for emacs-devel@gnu.org; Sun, 07 Sep 2014 14:03:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQgoK-00073W-26 for emacs-devel@gnu.org; Sun, 07 Sep 2014 14:03:43 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQgoJ-00073O-PK; Sun, 07 Sep 2014 14:03:36 -0400 Original-Received: from [88.117.85.72] ([88.117.85.72]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LgZ7h-1YC8Qu3gLF-00nyli; Sun, 07 Sep 2014 20:03:30 +0200 In-Reply-To: <83ha0jcv31.fsf@gnu.org> X-Provags-ID: V03:K0:89erFT5GLEJa269Qtmw5/JcSyYD10b11KtVyVpcbjwrD+vcmx2/ xagS5nV1gvZfpRWgMw2ZM4fPidDG2XC/tx8J+HzAZPfDMHUIs9TfBnH6O8meUQF4oBt7VyM zOWNRO6FT1+PWqRXVDsYghh82MtLpNp4C1PEkzePY7OHRMF0a/g30hJFp1W7Eyu5GBErj1y oPYlvytFalah3zdlksaSQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174067 Archived-At: > Yes, but how does that help us resolve this problem? There's nothing > wrong in general with calling face-font, so linum-mode doesn't do > anything blatantly incorrect here. It's just that this function is > called "too early" in the frame creation process. At the time `window-configuration-change-hook' is called, the frame is considered "official" already. Do you really want to wait calling it until redisplay has passed over the frame at least once? > How about adding some simple flag that would avoid calling > window-configuration-change-hook when adjust_frame_size is called from > x-create-frame? There is such a flag: f->official. It does exactly that for all adjust_frame_size calls before the last one that causes trouble. But if we don't run `window-configuration-change-hook' here, we might not run it at all when creating a new frame. martin