git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC PATCH 0/3] editor: teach it to protect itself from rogue editors

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
Dec 2, 2021, 03:54 UTC
Message-ID
<20211202035446.1154-1-carenas@gmail.com>

This series reimplements a problematic series that was partially reverted in 2.34.1, but addressing all raised concerns and being a lot more conservative.

The first commit addresses directly the issue reported and that required the revert, but punts several changes to future series to make sure it is safe enough for backporting into maint if needed, it also tries (probably too hard) to not introduce any behaviour changes, so it might seem "incomplete", but expect further changes that will clean it up further.

The the second one is taken from a draft[1] and is ammended by the third, hence why this is all still an RFC.

Carlo Marcelo Arenas Belón (2):
  terminal: teach save_term to fail when not foreground
  fixup! editor: allow for saving/restoring terminal state
Junio C Hamano (1):
  editor: allow for saving/restoring terminal state
 Documentation/config.txt        |  2 ++
 Documentation/config/editor.txt |  8 ++++++++
 compat/terminal.c               | 17 ++++++++++++++++-
 editor.c                        | 22 ++++++++++++++++++++--
 4 files changed, 46 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/config/editor.txt
[1] https://lore.kernel.org/git/xmqq7dcnyh5o.fsf@gitster.g/
-- 
2.34.1.460.g364565cfab
Next: Carlo Marcelo Arenas Belón
Message 1 of 5 in “editor: teach it to protect itself from rogue editors”
  1. 0/3 editor: teach it to protect itself from rogue editorsCarlo Marcelo Arenas Belón, Dec 2, 2021
  2. 1/3 terminal: teach save_term to fail when not foregroundCarlo Marcelo Arenas Belón, Dec 2, 2021
  3. 2/3 editor: allow for saving/restoring terminal stateCarlo Marcelo Arenas Belón, Dec 2, 2021
  4. Junio C HamanoDec 2, 2021
  5. 3/3 fixup! editor: allow for saving/restoring terminal stateCarlo Marcelo Arenas Belón, Dec 2, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.