bug#16332: 24.3; emacs -nw in M-x term: term and ansi-term should substract the fringes from the width
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgment at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
Dear Emacs Hackers,
On wy small laptop, I use emacs in full-screen view as replacement for a desktop environment. When I then use term to ssh into another computer ad run the remotee emacs in shell-mode, the display is broken - except when I set fringe-mode to no-fringes.
To fix this, it would be great, if term and ansi-term could substract the fringes from the width they report to the running shell. This (or a more elegant solution) should the allow running a remote emacs in emacs seamlessly.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.4)
of 2013-09-01 on kaverne
System Description: Gentoo Base System release 2.2
value of $LC_ALL: de_DE.utf8
value of $LANG: de_DE.utf8
default enable-multibyte-characters: t
Major mode: Folder
Minor modes in effect:
i SPC ESC DEL U n d SPC h a b t SPC i h r SPC w a s
SPC w e g e n SPC R ü d i g e r SPC h DEL g e f u n
d ESC DEL ESC b ESC DEL ESC DEL ESC DEL ESC DEL s e
i d SPC i h r SPC m i t C-e SPC w e i t e r SPC g e
k o m m e n ? ESC [ D ESC [ D ESC [ D ESC [ D ESC [
D ESC [ D ESC [ D ESC [ D ESC [ D ESC [ D ESC [ D ESC
[ D ESC [ D ESC [ D ESC [ D ESC [ D ESC [ D DEL ESC
[ D ESC [ D ESC [ D ESC [ D ESC [ D ESC [ D ESC [ D
SPC C-e RET RET ( w a r u m SPC i c h SPC j e t z t
SPC g e r a d e SPC s c h r e i b e _ : SPC DEL DEL
DEL : SPC C-a ESC [ C u n d SPC C-e H a b e n SPC w
i r SPC e i n ESC DEL d e n SPC S c h n u l l e r SPC
m i t SPC K e t t e SPC b e i SPC e u c h SPC v e r
g e s s e n ? ) RET RET ü l C-c C-c y ESC x r e p o
r t - e m a c TAB TAB b u TAB TAB ESC [ C RET
Send current draft? (y or n)
Send current draft? (y or n) y
Type C-c C-x C-z to exit MIME mode, and type C-c C-x ? to get help.
Exit MIME editor mode.
Sending...done [2 times]
Making completion list... [2 times]
call-interactively: End of buffer
user-error: End of history; no default available [4 times]
> On wy small laptop, I use emacs in full-screen view as replacement for
> a desktop environment. When I then use term to ssh into another
> computer ad run the remotee emacs in shell-mode, the display is broken
> - except when I set fringe-mode to no-fringes.
> To fix this, it would be great, if term and ansi-term could substract
> the fringes from the width they report to the running shell. This (or
> a more elegant solution) should the allow running a remote emacs in
> emacs seamlessly.
(I'm going through old bug reports that unfortunately got no response at
I tried reproducing this in Emacs 28, but things look OK to me. Are you
still seeing this problem? If so, could you give a recipe, starting
from "emacs -Q", to reproduce it?