🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98776

18.57 print doesn't start at beginning of minibuffer after message

#98776
From: Joe Wells
Date: Sat, 23 Feb 1991 05:20
69 lines
2452 bytes
(emacs-version)
"GNU Emacs 18.57.19 of Sat Feb 23 1991 on bigbird (berkeley-unix)"

In GNU Emacs 18.57 (and 18.56), the various "print" routines don't start
at the beginning of the minibuffer after a call to "message".  For fun,
put this form in the *scratch* buffer and invoke it over and over:

    (progn
      (message "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")
      (prin1 t t))

The minibuffer will show things like these:

    ABCDEt
    ABCDEFt
    ABCDEFGt
    ABCDEFGHt
    ABCDEFGHIt
    ABCDEFGHIJt
    ABCDEFGHIJKt
    ABCDEFGHIJKLt
    ABCDEFGHIJKLMt

and so on.

I'm including a fix that restores the behavior from 18.55 and earlier.
The fix is assuming that you want to keep the way "print" and "message"
are now sharing the same display buffer, the reason for which I don't
really understand.

-- 
Enjoy,

Joe Wells <jbw@bu.edu>
----------------------------------------------------------------------
*** print.c-dist	Tue Jan  8 13:01:11 1991
--- print.c	Sat Feb 23 00:04:26 1991
***************
*** 93,97 ****
  
  /* Index of first unused element of message_buf.  */
! static int printbufidx;
  
  static void
--- 93,97 ----
  
  /* Index of first unused element of message_buf.  */
! int printbufidx;
  
  static void
----------------------------------------------------------------------
*** xdisp.c-dist	Tue Jan  8 13:21:59 1991
--- xdisp.c	Sat Feb 23 00:05:36 1991
***************
*** 189,192 ****
--- 189,193 ----
    else if (FROM_KBD)
      {
+       extern int printbufidx;
  #ifdef NO_ARG_ARRAY
        int a[3];
***************
*** 200,203 ****
--- 201,205 ----
  #endif /* NO_ARG_ARRAY */
        echo_area_contents = message_buf;
+       printbufidx = 0;
        do {
  	do_pending_window_change ();
Technical Details
Message-ID: <JBW.91Feb23002017@bigbird.bu.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,bc6d6a41e1684fab,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-02-22 21:20:17 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: jbw@BIGBIRD.BU.EDU (Joe Wells)
Newsgroups: gnu.emacs.bug
Subject: 18.57 print doesn't start at beginning of minibuffer after message
Message-ID: <JBW.91Feb23002017@bigbird.bu.edu>
Date: 23 Feb 91 05:20:17 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Boston University Computer Science Department
Lines: 69
Approved: bug-gnu-emacs@prep.ai.mit.edu