Eshell: Add fix draft for eshell-write-history with read-only entries

master
Pierre Neidhardt 2017-11-03 14:55:57 +01:00
parent f2e5e0d1fb
commit 92f3aed303
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,14 @@
;; Emacs pinentry for GPG.
(require 'main)
;;; TODO: If history contains read-only text (e.g. accidental insertion of the prompt),
;;; `eshell-write-history' won't work. Fix as follows:
;; (let ((start (point))
;; (command (ring-ref ring index)))
;; ;; Errors follows: this should insert non-read-only text.
;; (remove-text-properties 0 (length command) '(read-only t) command)
;; (insert command ?\n)
;;; REVIEW: ANSI coloring goes wrong sometimes. Quite often with emerge/eix.
;;; Fixed in #27407.
(require 'patch-eshell)