[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2731: emacs with gud creates ~/.terminfo/e/emacs



In message <[🔎] m0uAawd-000z68C@valour.pem.cam.ac.uk>, Austin Donnelly writes:
>I'm not entirely sure if this is a bug, but it's strange. Equally, I'm
>not convinced that the bug is in emacs, it could be in gdb, or
>ncurses.

Well, the particular actions smack of ncurses, though I don't see how
emacs is causing it to do what it's doing.

>  1) ensure ~/.terminfo/e/emacs doesn't exist

Could you try making sure that /usr/lib/terminfo/e/emacs exists, and
then try this and see what happens?

>There are a few concerning things here:
>  1) I don't like emacs/gdb creating directory structures without
>     telling me. The only way I found out was when I read my backup
>     logs.
>
>  2) Where's the information for this terminal entry coming from: how
>     do I know it correctly describes an emacs terminal? (In fact, it
>     incorrectly describes an emacs terminal: I get prompted to press
>     return to go on the the next page, when I didn't previously).
>
>  3) Should ncurses-term include an entry for emacs in
>     /usr/lib/terminfo ?
>
>  4) The first time gud is run, and it creates the .terminfo
>     directory, gdb's CWD is ~/.terminfo, rather than the directory
>     of the file last visited (the usual case).

What I would guess is happening is that emacs, in its usual arrogance,
is trying to create a terminfo entry for itself (I don't know where
the info's coming from, frankly), and tries to use tic, which creates
the directory structure you noted because it can't write to
/usr/lib/terminfo/e.

As I understand, emacs' ability to coexist with terminfo in general is
enhanced in 19.30---that might be the solution you're looking for.

I'm uncertain that it's appropriate to have an "emacs" terminfo entry,
since it seems to be a figment of emacs' imagination---and a badly
formed one at that.

Mike.
--
"Don't let me make you unhappy by failing to be contrary enough...."


Reply to: