Just wanted to let anyone interested in this package know: I've added it to MELPA. It can be installed as "sticky-shell". I've also improved its support of terminal modes and shell modes. You can find more info at the repo On Fri, Dec 30, 2022 at 9:58 AM Jean Louis wrote: > * Andrew De Angelis [2022-12-28 18:35]: > > @Jean Louis > > Thank you. I still can't reproduce the error, but I understand its > causes. > > Line 72: > > `(aset prompt (- (length prompt) 1) 0) ; remove the newline ending char` > > was intended to remove the newline char that showed up in my header as > > '^J'. There must be something different in your configuration that > already > > removes it from the header/prompt, so deleting it again caused the issue. > > I've replaced this line with the more explicit: > > `(string-trim-right prompt "[ \t\n\r]+"))) ; remove the newline ending > char` > > Please try out the latest code >and > > let me know your experience. > > Thank you. I do not see that problem anymore, though I tested it for > only short time. > > Here are matches for `shell''of my custom.el if you wish to test if > that fiddles with your package. > > 7 matches for "shell" in buffer: custom.el > 78: '(async-shell-command-buffer 'new-buffer) > 524: '(shell-command-prompt-show-cwd t) > 525: '(shell-completion-execonly nil) > > > -- > Jean > > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > In support of Richard M. Stallman > https://stallmansupport.org/ >