From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: emacs OSX initial frame does not show initial line Date: Thu, 09 Jul 2015 13:49:06 +0200 Organization: Informatimago Message-ID: <87y4ippn4d.fsf@kuiper.lan.informatimago.com> References: <1993fcc6-2970-46fc-8201-6241e2593029@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1436442701 6593 80.91.229.3 (9 Jul 2015 11:51:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 11:51:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 09 13:51:31 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ZDAMS-00021M-38 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 13:51:28 +0200 Original-Received: from localhost ([::1]:39181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDAMR-00029t-Jz for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 07:51:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDAKQ-00080S-R6 for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 07:49:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDAKL-00068Z-KN for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 07:49:22 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDAKL-00068T-DS for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 07:49:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZDAKK-0000Ps-3l for help-gnu-emacs@gnu.org; Thu, 09 Jul 2015 13:49:16 +0200 Original-Received: from amontsouris-654-1-82-18.w83-202.abo.wanadoo.fr ([83.202.141.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jul 2015 13:49:16 +0200 Original-Received: from pjb by amontsouris-654-1-82-18.w83-202.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jul 2015 13:49:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: amontsouris-654-1-82-18.w83-202.abo.wanadoo.fr Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:MmJkY2U4ZDM2ZmViODkyZmQ2NzUxNzNjYWZiMzZmNzg3ZjQyYTUwOQ== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105557 Archived-At: don.rozenberg@gmail.com writes: > I am running emacs 24.5.1 on an Apple Mini with 4 GB of memory and > Yosemite. When the initial frame is displayed the top line is not > present no matter what I put in buffer. If I create a new frame the > top line is visible. I could just create a new frame and abandon the > original, but that is unattractive. It was a bug occuring a few versions ago. It was corrected or at least inactive in emacs-version "24.3.1" and a couple of previous versions. Just resizing the emacs window was enough for it to recompute and redisplay the geometry correctly. > As emacs starts a smaller window appears at the upper left of the > screen and includes icons. That window quickly disappears and is > replaced by a frame located, colored, sized, and using my font > according to my .emacs and sports no icons but it also does not > display the first line of the the scratch buffer. I am happy with the > appearance of the window except for the missing line. The missing line > persists no matter what I load into the buffer. > > If I then create a new frame, with the same dimensions specified in my > .emacs, the contents are nearly the same as the previous frame but > moved down one line to display the first line but missing the bottom > line. Also, the new frame appears to be one line smaller. I think I > probable have done something mistaken in my .emacs. > > It appears that the original frame is 81x44 while the new frame is > 81x43 whilst my .emacs specifies a height of 45 for both > initial-frame-alist and default-frame-alist. This is very confusing! > > I would appreciate any suggestion about how to make the initial frame > appear as expected. Perhaps adding something like: (let ((h (frame-parameter (selected-frame) 'height)) (w (frame-parameter (selected-frame) 'width))) (set-frame-width (selected-frame) (1- w)) (set-frame-height (selected-frame) (1- h)) (set-frame-width (selected-frame) w) (set-frame-height (selected-frame) h)) at the end of ~/.emacs ? -- __Pascal Bourguignon__ http://www.informatimago.com/ “The factory of the future will have only two employees, a man and a dog. The man will be there to feed the dog. The dog will be there to keep the man from touching the equipment.” -- Carl Bass CEO Autodesk