From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Themba Fletcher" Newsgroups: gmane.emacs.bugs Subject: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows Date: Mon, 17 Nov 2008 15:50:06 -0500 Message-ID: References: Reply-To: Themba Fletcher , 1348@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0006_01C948CC.2A2EACC0" X-Trace: ger.gmane.org 1227004287 25985 80.91.229.12 (18 Nov 2008 10:31:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 10:31:27 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 11:32:28 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2Nsd-0006SM-4G for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 11:32:23 +0100 Original-Received: from localhost ([127.0.0.1]:38716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2NrU-0003nA-I0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 05:31:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2BMN-0006Hp-Da for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 16:10:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2BMK-0006EU-Lx for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 16:10:15 -0500 Original-Received: from [199.232.76.173] (port=60721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2BMK-0006E6-IQ for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 16:10:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41448) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2BMJ-0007gr-Up for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 16:10:12 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAHLA8qf007885; Mon, 17 Nov 2008 13:10:09 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAHL03o6004296; Mon, 17 Nov 2008 13:00:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Themba Fletcher" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 17 Nov 2008 21:00:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1348 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12269550343019 (code B ref -1); Mon, 17 Nov 2008 21:00:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Nov 2008 20:50:34 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAHKoUxh003013 for ; Mon, 17 Nov 2008 12:50:32 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2B3G-0007Q6-8v for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 15:50:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2B3F-0007Oj-EX for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 15:50:29 -0500 Original-Received: from [199.232.76.173] (port=50651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2B3F-0007OV-3W for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 15:50:29 -0500 Original-Received: from smtp102.biz.mail.re2.yahoo.com ([68.142.229.216]:22392) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L2B3E-0005zr-Jx for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2008 15:50:28 -0500 Original-Received: (qmail 67875 invoked from network); 17 Nov 2008 20:50:23 -0000 Original-Received: from unknown (HELO cadstation01) (themba@76.252.62.121 with login) by smtp102.biz.mail.re2.yahoo.com with SMTP; 17 Nov 2008 20:50:23 -0000 X-YMail-OSG: OvrzUokVM1l1Xzgvr_6tMo9mKsQ87CmlgHdMusvtr3i4EtuQoKKJiyR5xcfGTpN9Bt1q9lejEoCNTwUZHAoOjfU9tsrQ6gwPNaKgRugyRQtr1NhidWE5crZPOPU8MAg_vdOQQMtb.kXVz5RheuW5DCei X-Yahoo-Newman-Property: ymail-3 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AclHBjdNBKtX2ZYiRQC1VBajr49IUgB7caiQ X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 17 Nov 2008 16:10:14 -0500 X-Mailman-Approved-At: Tue, 18 Nov 2008 05:31:06 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22466 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C948CC.2A2EACC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > From: Eli Zaretskii [mailto:eliz@gnu.org] > Sent: Saturday, November 15, 2008 4:41 AM > To: Themba Fletcher; 1348@emacsbugs.donarmstrong.com > Cc: bug-gnu-emacs@gnu.org > > From: "Themba Fletcher" > > Date: Fri, 14 Nov 2008 17:46:19 -0500 > > Cc: > > When migrating to Emacs 22.3.1 on microsoft windows, the following > > lines in my .emacs file do not behave as expected: > > (set-frame-position (selected-frame) 0 0) > > (sleep-for 2) ; not originally in my .emacs -- testing only > > (set-frame-width (selected-frame) 150) > > (sleep-for 2) > > (set-frame-height (selected-frame) 55) > > (sleep-for 2)) > (Extra paren here^) Whoops, this was nested in an expression while I was testing. > > This used to leave me with a 150 X 55 frame located at 0,0 on my > > display but it instead now leaves me with a default size frame still > > located at 0,0 as expected. > This leaves me with a 80x55 frame located at (0,0), not a default size > frame. I see this both in Emacs 22.3.1 and in the current CVS trunk. > So, while still not entirely correct, the behavior I see is different, > and I wonder why. Is the above the _only_ contents of your .emacs? No, but the behavior held even when the rest of my .emacs was commented out. Please feel free to play with my original .emacs file, attached. I was upgrading, due to standard windows problems (ie I had to reformat and reinstall), from Emacs 22.1 when I found this. Over the weekend I moved my home machine from Emacs 22.2 to 22.3 and discovered two things: 1. The bug is present in 22.2 2. (set-frame-size) is not affected, and is probably a better work-around than I gave in my previous message. ------=_NextPart_000_0006_01C948CC.2A2EACC0 Content-Type: application/octet-stream; name="dot-emacs" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dot-emacs" (server-start) ;; = *************************************************************************= ** (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(column-number-mode t) '(org-agenda-files (quote ("c:/Documents and = Settings/tif/Desktop/top.org"))) '(scroll-bar-mode nil) '(size-indication-mode t) '(tool-bar-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; = *************************************************************************= ** (set-frame-position (selected-frame) 0 0) (set-frame-height (selected-frame) 66) (set-frame-width (selected-frame) 178) (set-frame-name "emacs") (set-default-font "-outline-Bitstream Vera Sans = Mono-normal-r-normal-normal-12-90-96-96-c-*-iso8859-1") (iconify-frame) ;; my global settings (put 'upcase-region 'disabled nil) (transient-mark-mode)=20 (global-font-lock-mode 1) (partial-completion-mode 1) (icomplete-mode 1) (setq inhibit-splash-screen t) ;; colors (require 'color-theme) (color-theme-select) ; bullshit (kill-buffer "*Color Theme Selection*") ; bullshit (color-theme-jsc-dark) ;; print to dell laser, shared by local machine ;; M-x eshell, then net view cadstation01 to see shares list=20 (setq printer-name "//cadstation01/dell1710") ;; programming modes (require 'generic-x) (add-to-list 'auto-mode-alist '("\\.el$" . emacs-lisp-mode)) (add-to-list 'auto-mode-alist '("\\.elisp$" . emacs-lisp-mode)) ;; sql-mode settings for local oracle installation (require 'sql) (defalias 'sql-get-login 'ignore) ;; org-mode (require 'org-install) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) (setq org-log-done t) (setq org-agenda-custom-commands '(("n" occur-tree ":next:"))) (setq org-hide-leading-stars t) ;; NC-MODE !!! (require 'nc) (add-to-list 'auto-mode-alist '("\\.nc$" . nc-mode)) (defun edit-dot-emacs () (interactive) (find-file "c:\.emacs")) (put 'downcase-region 'disabled nil) ;; startup (find-file "c:/Documents and Settings/tif/Desktop/top.org") ------=_NextPart_000_0006_01C948CC.2A2EACC0--