Index: emacs/src/sysdep.c
diff -c emacs/src/sysdep.c:1.263 emacs/src/sysdep.c:1.264
*** emacs/src/sysdep.c:1.263    Wed Apr 20 15:09:38 2005
--- emacs/src/sysdep.c  Sun May  1 11:32:49 2005
***************
*** 1718,1727 ****
  #else
  #ifdef VMS
  
    struct sensemode tty;
  
!   SYS$QIOW (0, input_fd, IO$_SENSEMODE, &tty, 0, 0,
!           &tty.class, 12, 0, 0, 0, 0);
    *widthp = tty.scr_wid;
    *heightp = tty.scr_len;
  
--- 1718,1733 ----
  #else
  #ifdef VMS
  
+   /* Use a fresh channel since the current one may have stale info
+      (for example, from prior to a suspend); and to avoid a dependency
+      in the init sequence.  */
+   int chan;
    struct sensemode tty;
  
!   SYS$ASSIGN (&input_dsc, &chan, 0, 0);
!   SYS$QIOW (0, chan, IO$_SENSEMODE, &tty, 0, 0,
!             &tty.class, 12, 0, 0, 0, 0);
!   SYS$DASSGN (chan);
    *widthp = tty.scr_wid;
    *heightp = tty.scr_len;
  


_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs

Reply via email to