top | item 14825792

(no title)

codychan | 8 years ago

There is something wrong with the `eshell/x` function, if start `Ctrl-!` in scratch buffer, after execute `x` in eshell prompt, there will `Wrong type argument: integer-or-marker-p, nil x` in scratch buffer; if I start `Ctrl-!` in init.el, there will be `Marker points into wrong buffer: #<marker at 955 in scratch> x` in my init.el file.

discuss

order

oskarth|8 years ago

This works for me:

  (defun eshell/x ()
      (interactive)
      (insert "exit")
      (eshell-send-input)
      (delete-window))