🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #741

Re: shell mode loses markers

#741
From: Rob Austein
Date: Fri, 04 Sep 1992 00:38
20 lines
1279 bytes
[I tried to send this directly to Mr. Neale, but the UK DNS servers
 say that srv-dev.jet.uk doesn't exist. --sra]

   From: mjn@srv-dev.jet.UK (Mark J Neale)
   Date: 3 Sep 92 19:11:32 GMT

   Bug report for emacs version 18.57, in shell.el. Calling the function
   shell when a shell buffer already exists destroys the markers marking
   the last command typed. This is because make-shell calls shell-mode
   for a buffer which is already in shell mode. I have changed make-shell
   (see diffs below) to only call shell-mode on a new shell buffer, not
   when switching to an already existing one.

There's a simpler fix.  Just check to see if the buffer is already in
shell mode:

    (or (eq 'shell-mode major-mode)
        (shell-mode))

--Rob Austein <sra@epilogue.com>
Technical Details
Message-ID: <SRA.92Sep4013848@quern.epilogue.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!epilogue.com!sra
References: <MJN.92Sep3151132@srv-dev.jet.uk>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!epilogue.com!sra
From: sra@epilogue.com (Rob Austein)
Subject: Re: shell mode loses markers
Message-ID: <SRA.92Sep4013848@quern.epilogue.com>
Sender: gnulists@ai.mit.edu
Organization: Epilogue Technology Corporation
References: <MJN.92Sep3151132@srv-dev.jet.uk>
Distribution: gnu
Date: Fri, 4 Sep 1992 00:38:48 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 21