On Tue, 8 Apr 2008, Nkuvu the Wonder Tortoise wrote:

> I am attempting to set up emacs on a new Windows XP
> installation. I downloaded a few of the latest
> versions of emacs, but they're all exhibiting the same
> behavior -- notably, the maximize is not...
> maximizing. To be specific, when I just have
> "(w32-send-sys-command 61488)" in my .emacs file, the
> frame jumps around a bit.

I have this in my .emacs, and it works for me under XP (I'm using
Emacs 21.3, if that matters):

;;;; ------------------------------------------------------------------------
;;;; --- Frame max toggle - From: "rgb" <[EMAIL PROTECTED]> / gnu.emacs.help / 
18 Mar 2005 16:30:32 -0800
;;;; ------------------------------------------------------------------------
(make-variable-frame-local 'my-frame-state)

(defun my-frame-maximize ()
  "Maximize Emacs window in win32"
  (interactive)

  (modify-frame-parameters nil '((my-frame-state . t)))
  (w32-send-sys-command ?\xf030))

 (defun my-frame-restore ()
   "Restore Emacs window in win32"
   (interactive)

   (modify-frame-parameters nil '((my-frame-state . nil)))
   (w32-send-sys-command ?\xF120))

(defun my-frame-toggle ()
  "Maximize/Restore Emacs frame based on `my-frame-state'"
  (interactive)
  (if my-frame-state
          (my-frame-restore)
        (my-frame-maximize)))

--
Regards,


joe
Joe Casadonte
[EMAIL PROTECTED]

------------------------------------------------------------------------------
         Llama Fresh Farms => http://www.northbound-train.com
    Ramblings of a Gay Man => http://www.northbound-train.com/ramblings
               Emacs Stuff => http://www.northbound-train.com/emacs.html
          Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
                       Live Free, that's the message!
------------------------------------------------------------------------------



Reply via email to