unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Add function eshell/clear to clear current eshell buffer
@ 2015-03-08  5:22 vibhavp
  2015-03-08  5:23 ` Vibhav Pant
  2015-03-08 15:45 ` Eli Zaretskii
  0 siblings, 2 replies; 36+ messages in thread
From: vibhavp @ 2015-03-08  5:22 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

Hello,
Eshell currently lacks a "clear" command. Since it cannot use the one
provided by the ncurses package, I added a patch which adds similar
functionality to eshell. It can be called by simply typing "clear" on
the eshell prompt.

Thanks


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: eshell-clear patch --]
[-- Type: text/x-diff, Size: 938 bytes --]

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0b277c7..409ca23 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-08  Vibhav Pant  <vibhavp@gmail.com>
+
+	* eshell/esh-mode.el (eshell/clear): New function.
+
 2015-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* battery.el (battery-echo-area-format): Simplify default.
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index da83ec6..a1c71cc 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -902,6 +902,12 @@ When run interactively, widen the buffer first."
       (bury-buffer)
     (kill-buffer (current-buffer))))
 
+(defun eshell/clear ()
+  "Clear the eshell buffer."
+  (let ((inhibit-read-only t))
+    (erase-buffer)
+    (eshell-send-input)))
+
 (defun eshell-truncate-buffer ()
   "Truncate the buffer to `eshell-buffer-maximum-lines'.
 This function could be on `eshell-output-filter-functions' or bound to

[-- Attachment #3: Type: text/plain, Size: 34 bytes --]

-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08  5:22 [PATCH] Add function eshell/clear to clear current eshell buffer vibhavp
@ 2015-03-08  5:23 ` Vibhav Pant
  2015-03-08  7:08   ` Bozhidar Batsov
  2015-03-08 15:45 ` Eli Zaretskii
  1 sibling, 1 reply; 36+ messages in thread
From: Vibhav Pant @ 2015-03-08  5:23 UTC (permalink / raw)
  To: emacs-devel@gnu.org

Also, since the patch is < 15 lines of code, I dont think a copyright
assignment should be required.

On Sun, Mar 8, 2015 at 10:52 AM,  <vibhavp@gmail.com> wrote:
> Hello,
> Eshell currently lacks a "clear" command. Since it cannot use the one
> provided by the ncurses package, I added a patch which adds similar
> functionality to eshell. It can be called by simply typing "clear" on
> the eshell prompt.
>
> Thanks
>
>
> --
> Vibhav Pant
> vibhavp@gmail.com
>



-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08  5:23 ` Vibhav Pant
@ 2015-03-08  7:08   ` Bozhidar Batsov
  2015-03-08  7:19     ` vibhavp
  0 siblings, 1 reply; 36+ messages in thread
From: Bozhidar Batsov @ 2015-03-08  7:08 UTC (permalink / raw)
  To: Vibhav Pant; +Cc: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Guess it should be bound to `C-c M-o` as the clear command for comint
buffers. On a related note - doesn't it make some sense for eshell do
derive from comint?

On 8 March 2015 at 07:23, Vibhav Pant <vibhavp@gmail.com> wrote:

> Also, since the patch is < 15 lines of code, I dont think a copyright
> assignment should be required.
>
> On Sun, Mar 8, 2015 at 10:52 AM,  <vibhavp@gmail.com> wrote:
> > Hello,
> > Eshell currently lacks a "clear" command. Since it cannot use the one
> > provided by the ncurses package, I added a patch which adds similar
> > functionality to eshell. It can be called by simply typing "clear" on
> > the eshell prompt.
> >
> > Thanks
> >
> >
> > --
> > Vibhav Pant
> > vibhavp@gmail.com
> >
>
>
>
> --
> Vibhav Pant
> vibhavp@gmail.com
>
>

[-- Attachment #2: Type: text/html, Size: 1434 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08  7:08   ` Bozhidar Batsov
@ 2015-03-08  7:19     ` vibhavp
  2015-03-08  7:25       ` Bozhidar Batsov
  0 siblings, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-03-08  7:19 UTC (permalink / raw)
  To: Bozhidar Batsov; +Cc: emacs-devel@gnu.org

Bozhidar Batsov <bozhidar@batsov.com> writes:

> Guess it should be bound to `C-c M-o` as the clear command for comint
> buffers.

`C-c M-o` is bound to (eshell-mark-output), which does something similar
to clear, but instead of erasing the buffer, only moves the active
eshell prompt to the top of the window. However, once you enter a
newline at the prompt, the prompt goes back to its original position,
something which clear isn't supposed to do.

The documentation suggests that the command is used to narrow the buffer
to the region containing the last command's output.

-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08  7:19     ` vibhavp
@ 2015-03-08  7:25       ` Bozhidar Batsov
  0 siblings, 0 replies; 36+ messages in thread
From: Bozhidar Batsov @ 2015-03-08  7:25 UTC (permalink / raw)
  To: Vibhav Pant; +Cc: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

Yeah, this command seems pretty broken to me. Guess someone should have a
look at it.

On 8 March 2015 at 09:19, <vibhavp@gmail.com> wrote:

> Bozhidar Batsov <bozhidar@batsov.com> writes:
>
> > Guess it should be bound to `C-c M-o` as the clear command for comint
> > buffers.
>
> `C-c M-o` is bound to (eshell-mark-output), which does something similar
> to clear, but instead of erasing the buffer, only moves the active
> eshell prompt to the top of the window. However, once you enter a
> newline at the prompt, the prompt goes back to its original position,
> something which clear isn't supposed to do.
>
> The documentation suggests that the command is used to narrow the buffer
> to the region containing the last command's output.
>
> --
> Vibhav Pant
> vibhavp@gmail.com
>

[-- Attachment #2: Type: text/html, Size: 1309 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08  5:22 [PATCH] Add function eshell/clear to clear current eshell buffer vibhavp
  2015-03-08  5:23 ` Vibhav Pant
@ 2015-03-08 15:45 ` Eli Zaretskii
  2015-03-08 19:28   ` vibhavp
  1 sibling, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-03-08 15:45 UTC (permalink / raw)
  To: vibhavp; +Cc: emacs-devel

> From: vibhavp@gmail.com
> Date: Sun, 08 Mar 2015 10:52:10 +0530
> 
> Eshell currently lacks a "clear" command. Since it cannot use the one
> provided by the ncurses package, I added a patch which adds similar
> functionality to eshell. It can be called by simply typing "clear" on
> the eshell prompt.

Thanks.

As someone who was more than once in a situation where I would give
half of my kingdom for an opportunity to look again at the contents of
the screen I just "clear"ed, how about filling the window with blank
lines instead, so that the old contents are out of sight, but still
reachable?  Would that make sense?



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08 15:45 ` Eli Zaretskii
@ 2015-03-08 19:28   ` vibhavp
  2015-03-08 20:11     ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-03-08 19:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> As someone who was more than once in a situation where I would give
> half of my kingdom for an opportunity to look again at the contents of
> the screen I just "clear"ed

Most shells do something list this, and moves the prompt the top of the
window. Elisp has something similar with (recenter-top-bottom), but
eshell overrides this by going to the window's bottom again.

> how about filling the window with blank
> lines instead, so that the old contents are out of sight, but still
> reachable?  Would that make sense?

Unfortunately, I don't know how to do that :(. Although, I think that
can be done with getting the number of lines between (point-max) and the
top of the window, and then inserting these many newlines.

-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08 19:28   ` vibhavp
@ 2015-03-08 20:11     ` Eli Zaretskii
  2015-03-09  6:16       ` vibhavp
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-03-08 20:11 UTC (permalink / raw)
  To: vibhavp; +Cc: emacs-devel

> From: vibhavp@gmail.com
> Cc: emacs-devel@gnu.org
> Date: Mon, 09 Mar 2015 00:58:12 +0530
> 
> > how about filling the window with blank
> > lines instead, so that the old contents are out of sight, but still
> > reachable?  Would that make sense?
> 
> Unfortunately, I don't know how to do that :(. Although, I think that
> can be done with getting the number of lines between (point-max) and the
> top of the window, and then inserting these many newlines.

Yes, exactly.  It shouldn't be hard.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: [PATCH] Add function eshell/clear to clear current eshell buffer
  2015-03-08 20:11     ` Eli Zaretskii
@ 2015-03-09  6:16       ` vibhavp
  2015-03-09 10:11         ` Gregor Zattler
  0 siblings, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-03-09  6:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> Yes, exactly.  It shouldn't be hard.

Done, does this look good?

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: new patch --]
[-- Type: text/x-diff, Size: 972 bytes --]

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b284ef1..3133cef 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-09  Vibhav Pant  <vibhavp@gmail.com>
+
+	* eshell/esh-mode.el (eshell/clear): New function.
+
 2015-03-09  Dmitry Gutov  <dgutov@yandex.ru>
 
 	* progmodes/ruby-mode.el (ruby-font-lock-keywords): Don't consider
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index da83ec6..41ee132 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -871,6 +871,13 @@ When run interactively, widen the buffer first."
   (goto-char (point-max))
   (recenter -1))
 
+(defun eshell/clear ()
+  "Clear the eshell-buffer"
+  (interactive)
+  (let ((number-newlines (count-lines (window-start) (point))))
+    (insert (make-string number-newlines ?\n)))
+    (eshell-send-input))
+
 (defun eshell-get-old-input (&optional use-current-region)
   "Return the command input on the current line."
   (if use-current-region

[-- Attachment #3: Type: text/plain, Size: 42 bytes --]


Thanks
-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09  6:16       ` vibhavp
@ 2015-03-09 10:11         ` Gregor Zattler
  2015-03-09 12:33           ` vibhavp
  2015-03-09 15:59           ` Eli Zaretskii
  0 siblings, 2 replies; 36+ messages in thread
From: Gregor Zattler @ 2015-03-09 10:11 UTC (permalink / raw)
  To: emacs-devel

Hi Vibhav,
* vibhavp@gmail.com <vibhavp@gmail.com> [09. Mar. 2015]:
> +(defun eshell/clear ()
> +  "Clear the eshell-buffer"

Now this command does not clear the eshell buffer any more, but the
eshell window.  I think the doc string should say so because this has
security implications: The user may think some info is gone but actually
it’s only no longer visible.  How about:

"Scroll contents out of the eshell window by inserting newlines."

(let ((number-newlines (count-lines (window-start) (point))))
  (insert (make-string number-newlines ?\n)))
  (eshell-send-input))

> +  (interactive)
> +  (let ((number-newlines (count-lines (window-start) (point))))
> +    (insert (make-string number-newlines ?\n)))
> +    (eshell-send-input))

Doesn't this insert the newlines where ever the point is?
Shouldn't it append the newlines to the very end of the buffer
where ever point was before?

Ciao; Gregor




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 10:11         ` Gregor Zattler
@ 2015-03-09 12:33           ` vibhavp
  2015-03-09 12:39             ` vibhavp
  2015-03-09 15:59           ` Eli Zaretskii
  1 sibling, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-03-09 12:33 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Gregor Zattler <telegraph@gmx.net> writes:

> Now this command does not clear the eshell buffer any more, but the
> eshell window.  I think the doc string should say so because this has
> security implications: The user may think some info is gone but actually
> it’s only no longer visible.  How about:
>
> "Scroll contents out of the eshell window by inserting newlines."

Yep, attached patch.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 952 bytes --]

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d8330a4..efb160c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-09  Vibhav Pant <vibhavp@gmail.com>
+
+	* eshell/esh-mode.el (eshell/clear): New function.
+
 2015-03-09  Nicolas Petton <nicolas@petton.fr>
 
 	* emacs-lisp/seq.el (seq-into): New function.
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index da83ec6..41ee132 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -871,6 +871,13 @@ When run interactively, widen the buffer first."
   (goto-char (point-max))
   (recenter -1))
 
+(defun eshell/clear ()
+  "Clear the eshell-buffer"
+  (interactive)
+  (let ((number-newlines (count-lines (window-start) (point))))
+    (insert (make-string number-newlines ?\n)))
+    (eshell-send-input))
+
 (defun eshell-get-old-input (&optional use-current-region)
   "Return the command input on the current line."
   (if use-current-region

[-- Attachment #3: Type: text/plain, Size: 379 bytes --]



> Doesn't this insert the newlines where ever the point is?
> Shouldn't it append the newlines to the very end of the buffer
> where ever point was before?

IIUC, Whenever the return key is pressed, (eshell-send-input)
automatically sets the point to end of the eshell buffer. So, the
newlines are always inserted at the buffer's end.

Thanks
-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 12:33           ` vibhavp
@ 2015-03-09 12:39             ` vibhavp
  0 siblings, 0 replies; 36+ messages in thread
From: vibhavp @ 2015-03-09 12:39 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

> Yep, attached patch.

Oops, that wrong the wrong patch. Here's the correct one:

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: eshell-clear.patch --]
[-- Type: text/x-diff, Size: 992 bytes --]

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d8330a4..efb160c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-09  Vibhav Pant <vibhavp@gmail.com>
+
+	* eshell/esh-mode.el (eshell/clear): New function.
+
 2015-03-09  Nicolas Petton <nicolas@petton.fr>
 
 	* emacs-lisp/seq.el (seq-into): New function.
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index da83ec6..f134cb3 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -871,6 +871,13 @@ When run interactively, widen the buffer first."
   (goto-char (point-max))
   (recenter -1))
 
+(defun eshell/clear ()
+  "Scroll contents out of the eshell window by inserting newlines."
+  (interactive)
+  (let ((number-newlines (count-lines (window-start) (point))))
+    (insert (make-string number-newlines ?\n)))
+    (eshell-send-input))
+
 (defun eshell-get-old-input (&optional use-current-region)
   "Return the command input on the current line."
   (if use-current-region

[-- Attachment #3: Type: text/plain, Size: 35 bytes --]


-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 10:11         ` Gregor Zattler
  2015-03-09 12:33           ` vibhavp
@ 2015-03-09 15:59           ` Eli Zaretskii
  2015-03-09 16:09             ` vibhavp
  2015-04-18 11:12             ` Ted Zlatanov
  1 sibling, 2 replies; 36+ messages in thread
From: Eli Zaretskii @ 2015-03-09 15:59 UTC (permalink / raw)
  To: Gregor Zattler; +Cc: emacs-devel

> Date: Mon, 9 Mar 2015 11:11:26 +0100
> From: Gregor Zattler <telegraph@gmx.net>
> 
> Hi Vibhav,
> * vibhavp@gmail.com <vibhavp@gmail.com> [09. Mar. 2015]:
> > +(defun eshell/clear ()
> > +  "Clear the eshell-buffer"
> 
> Now this command does not clear the eshell buffer any more, but the
> eshell window.  I think the doc string should say so because this has
> security implications: The user may think some info is gone but actually
> it’s only no longer visible.

The same happens with a few terminal emulators, so users should
already be expecting that possibility

> "Scroll contents out of the eshell window by inserting newlines."

The last part describes the implementation, which is not a good thing,
IMO.  So I suggest just

  Scroll contents of eshell window out of sight, leaving a blank window.

Thanks.




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 15:59           ` Eli Zaretskii
@ 2015-03-09 16:09             ` vibhavp
  2015-03-09 16:43               ` Eli Zaretskii
  2015-04-18 11:12             ` Ted Zlatanov
  1 sibling, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-03-09 16:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Gregor Zattler, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 127 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>   Scroll contents of eshell window out of sight, leaving a blank window.

Here you go.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: eshell-clear.patch --]
[-- Type: text/x-diff, Size: 999 bytes --]

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d8330a4..efb160c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-09  Vibhav Pant <vibhavp@gmail.com>
+
+	* eshell/esh-mode.el (eshell/clear): New function.
+
 2015-03-09  Nicolas Petton <nicolas@petton.fr>
 
 	* emacs-lisp/seq.el (seq-into): New function.
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index da83ec6..15120cb 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -871,6 +871,13 @@ When run interactively, widen the buffer first."
   (goto-char (point-max))
   (recenter -1))
 
+(defun eshell/clear ()
+  "Scroll contents of eshell window out of sight, leaving a blank window."
+  (interactive)
+  (let ((number-newlines (count-lines (window-start) (point))))
+    (insert (make-string number-newlines ?\n)))
+    (eshell-send-input))
+
 (defun eshell-get-old-input (&optional use-current-region)
   "Return the command input on the current line."
   (if use-current-region

[-- Attachment #3: Type: text/plain, Size: 36 bytes --]



-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 16:09             ` vibhavp
@ 2015-03-09 16:43               ` Eli Zaretskii
  2015-03-10  3:27                 ` Vibhav Pant
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-03-09 16:43 UTC (permalink / raw)
  To: vibhavp; +Cc: telegraph, emacs-devel

> From: vibhavp@gmail.com
> Cc: Gregor Zattler <telegraph@gmx.net>,  emacs-devel@gnu.org
> Date: Mon, 09 Mar 2015 21:39:22 +0530
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >   Scroll contents of eshell window out of sight, leaving a blank window.
> 
> Here you go.

LGTM, thanks.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 16:43               ` Eli Zaretskii
@ 2015-03-10  3:27                 ` Vibhav Pant
  2015-03-10  7:59                   ` Bozhidar Batsov
  0 siblings, 1 reply; 36+ messages in thread
From: Vibhav Pant @ 2015-03-10  3:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Gregor Zattler, emacs-devel@gnu.org

On Mon, Mar 9, 2015 at 10:13 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> LGTM, thanks.

Can the patch to master, or is there anything left to be worked upon?


-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-10  3:27                 ` Vibhav Pant
@ 2015-03-10  7:59                   ` Bozhidar Batsov
  2015-03-10  8:20                     ` Ricardo Wurmus
  0 siblings, 1 reply; 36+ messages in thread
From: Bozhidar Batsov @ 2015-03-10  7:59 UTC (permalink / raw)
  To: Vibhav Pant; +Cc: Eli Zaretskii, Gregor Zattler, emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

The name of the function is strange, btw. We don't use `/` is command names.

On 10 March 2015 at 05:27, Vibhav Pant <vibhavp@gmail.com> wrote:

> On Mon, Mar 9, 2015 at 10:13 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > LGTM, thanks.
>
> Can the patch to master, or is there anything left to be worked upon?
>
>
> --
> Vibhav Pant
> vibhavp@gmail.com
>
>

[-- Attachment #2: Type: text/html, Size: 822 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-10  7:59                   ` Bozhidar Batsov
@ 2015-03-10  8:20                     ` Ricardo Wurmus
  0 siblings, 0 replies; 36+ messages in thread
From: Ricardo Wurmus @ 2015-03-10  8:20 UTC (permalink / raw)
  To: Bozhidar Batsov
  Cc: Eli Zaretskii, Gregor Zattler, Vibhav Pant, emacs-devel@gnu.org


Bozhidar Batsov writes:

> The name of the function is strange, btw. We don't use `/` is command names.

The name is just right.  Any function with prefix "eshell/" becomes an
eshell command.  "eshell/clear" will be available on the eshell as
"clear".




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-03-09 15:59           ` Eli Zaretskii
  2015-03-09 16:09             ` vibhavp
@ 2015-04-18 11:12             ` Ted Zlatanov
  2015-04-18 12:39               ` Eli Zaretskii
  1 sibling, 1 reply; 36+ messages in thread
From: Ted Zlatanov @ 2015-04-18 11:12 UTC (permalink / raw)
  To: emacs-devel

On Mon, 09 Mar 2015 17:59:34 +0200 Eli Zaretskii <eliz@gnu.org> wrote: 

>> Date: Mon, 9 Mar 2015 11:11:26 +0100
>> From: Gregor Zattler <telegraph@gmx.net>
>> 
>> Hi Vibhav,
>> * vibhavp@gmail.com <vibhavp@gmail.com> [09. Mar. 2015]:
>> > +(defun eshell/clear ()
>> > +  "Clear the eshell-buffer"
>> 
>> Now this command does not clear the eshell buffer any more, but the
>> eshell window.  I think the doc string should say so because this has
>> security implications: The user may think some info is gone but actually
>> it’s only no longer visible.

EZ> The same happens with a few terminal emulators, so users should
EZ> already be expecting that possibility

But eshell is not a terminal emulator.  It's a shell.  Emacs provides
the text UI around it.

I would rename `eshell/clear' to `eshell/clear-view' and also provide
`eshell/clear-buffer', if that's OK with Vibhav and everyone else?

Ted




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 11:12             ` Ted Zlatanov
@ 2015-04-18 12:39               ` Eli Zaretskii
  2015-04-18 13:31                 ` Ted Zlatanov
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-18 12:39 UTC (permalink / raw)
  To: emacs-devel

> From: Ted Zlatanov <tzz@lifelogs.com>
> Date: Sat, 18 Apr 2015 07:12:22 -0400
> 
> >> > +(defun eshell/clear ()
> >> > +  "Clear the eshell-buffer"
> >> 
> >> Now this command does not clear the eshell buffer any more, but the
> >> eshell window.  I think the doc string should say so because this has
> >> security implications: The user may think some info is gone but actually
> >> it’s only no longer visible.
> 
> EZ> The same happens with a few terminal emulators, so users should
> EZ> already be expecting that possibility
> 
> But eshell is not a terminal emulator.  It's a shell.  Emacs provides
> the text UI around it.

I don't see the significance of this observation for the issue at
hand.  Eshell is an implementation of a shell in Emacs Lisp, and as
such, Emacs is part of it.  Therefore, we should compare what Eshell's
command do with what shells+emulators do.

> I would rename `eshell/clear' to `eshell/clear-view' and also provide
> `eshell/clear-buffer', if that's OK with Vibhav and everyone else?

Eshell should have commands named like corresponding shell commands.
Having commands with no namesakes in popular shells makes very little
sense to me.




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 12:39               ` Eli Zaretskii
@ 2015-04-18 13:31                 ` Ted Zlatanov
  2015-04-18 13:43                   ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: Ted Zlatanov @ 2015-04-18 13:31 UTC (permalink / raw)
  To: emacs-devel

On Sat, 18 Apr 2015 15:39:19 +0300 Eli Zaretskii <eliz@gnu.org> wrote: 

>> From: Ted Zlatanov <tzz@lifelogs.com>
>> Date: Sat, 18 Apr 2015 07:12:22 -0400
>> 
>> >> > +(defun eshell/clear ()
>> >> > +  "Clear the eshell-buffer"
>> >> 
>> >> Now this command does not clear the eshell buffer any more, but the
>> >> eshell window.  I think the doc string should say so because this has
>> >> security implications: The user may think some info is gone but actually
>> >> it’s only no longer visible.
>> 
EZ> The same happens with a few terminal emulators, so users should
EZ> already be expecting that possibility
>> 
>> But eshell is not a terminal emulator.  It's a shell.  Emacs provides
>> the text UI around it.

EZ> I don't see the significance of this observation for the issue at
EZ> hand.  Eshell is an implementation of a shell in Emacs Lisp, and as
EZ> such, Emacs is part of it.  Therefore, we should compare what Eshell's
EZ> command do with what shells+emulators do.

I think Emacs' concepts of windows and buffers should override the
typical terminal emulators' concepts of window and scrollback buffer.
Since Emacs typically doesn't clear just the window in normal usage,
it's strange to do it here (especially by inserting blank lines).

>> I would rename `eshell/clear' to `eshell/clear-view' and also provide
>> `eshell/clear-buffer', if that's OK with Vibhav and everyone else?

EZ> Eshell should have commands named like corresponding shell commands.
EZ> Having commands with no namesakes in popular shells makes very little
EZ> sense to me.

From the man page:

      clear clears your screen if this is possible, including its
      scrollback buffer (if the extended "E3" capability is defined).
      clear looks in the environment for the terminal type and then in
      the terminfo database to determine how to clear the screen.

So, unless we come up with some E3 equivalent, I think it should be two
commands or in some other way apparent that there's two operation modes
to the `clear' eshell command.

For simplicity, how about `eshell/clear' for the window and
`eshell/clear-scrollback' for the whole buffer (also invoked with
universal-prefix on `eshell/clear')? The scrollback clear should IMO
also make sure undo is enabled, but the text is not in any registers.

Ted




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 13:31                 ` Ted Zlatanov
@ 2015-04-18 13:43                   ` Eli Zaretskii
  2015-04-18 14:17                     ` Ted Zlatanov
  2015-04-18 15:18                     ` vibhavp
  0 siblings, 2 replies; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-18 13:43 UTC (permalink / raw)
  To: emacs-devel

> From: Ted Zlatanov <tzz@lifelogs.com>
> Date: Sat, 18 Apr 2015 09:31:35 -0400
> 
> >> But eshell is not a terminal emulator.  It's a shell.  Emacs provides
> >> the text UI around it.
> 
> EZ> I don't see the significance of this observation for the issue at
> EZ> hand.  Eshell is an implementation of a shell in Emacs Lisp, and as
> EZ> such, Emacs is part of it.  Therefore, we should compare what Eshell's
> EZ> command do with what shells+emulators do.
> 
> I think Emacs' concepts of windows and buffers should override the
> typical terminal emulators' concepts of window and scrollback buffer.

Not when we are talking about a shell.

> Since Emacs typically doesn't clear just the window in normal usage,
> it's strange to do it here (especially by inserting blank lines).

It's a command; if you don't like it, don't use it.

But people who do want to start with a "clean slate" should be able
to.

> >> I would rename `eshell/clear' to `eshell/clear-view' and also provide
> >> `eshell/clear-buffer', if that's OK with Vibhav and everyone else?
> 
> EZ> Eshell should have commands named like corresponding shell commands.
> EZ> Having commands with no namesakes in popular shells makes very little
> EZ> sense to me.
> 
> >From the man page:
> 
>       clear clears your screen if this is possible, including its
>       scrollback buffer (if the extended "E3" capability is defined).
>       clear looks in the environment for the terminal type and then in
>       the terminfo database to determine how to clear the screen.
> 
> So, unless we come up with some E3 equivalent, I think it should be two
> commands or in some other way apparent that there's two operation modes
> to the `clear' eshell command.

The idea was that cleaning the scrollback buffer make little sense in
Emacs, because you gain nothing, but lose a chance to change your mind
later.  So I think inventing the equivalent of E3 would be wasted
effort.

> For simplicity, how about `eshell/clear' for the window and
> `eshell/clear-scrollback' for the whole buffer (also invoked with
> universal-prefix on `eshell/clear')? The scrollback clear should IMO
> also make sure undo is enabled, but the text is not in any registers.

I'm not necessarily object, but again: what would be the purpose of
removing the scrollback? what will that give you?



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 13:43                   ` Eli Zaretskii
@ 2015-04-18 14:17                     ` Ted Zlatanov
  2015-04-18 15:18                     ` vibhavp
  1 sibling, 0 replies; 36+ messages in thread
From: Ted Zlatanov @ 2015-04-18 14:17 UTC (permalink / raw)
  To: emacs-devel

On Sat, 18 Apr 2015 16:43:16 +0300 Eli Zaretskii <eliz@gnu.org> wrote: 

>> For simplicity, how about `eshell/clear' for the window and
>> `eshell/clear-scrollback' for the whole buffer (also invoked with
>> universal-prefix on `eshell/clear')? The scrollback clear should IMO
>> also make sure undo is enabled, but the text is not in any registers.

EZ> I'm not necessarily object, but again: what would be the purpose of
EZ> removing the scrollback? what will that give you?

Often I force-close an eshell buffer because I don't want the
interaction to remain in memory, because some password was echoed (to
the terminal, in a URL, etc.).

Perhaps it's not a common need so triggering a full scrollback clear
with the universal prefix is probably the best way forward.

Ted




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 13:43                   ` Eli Zaretskii
  2015-04-18 14:17                     ` Ted Zlatanov
@ 2015-04-18 15:18                     ` vibhavp
  2015-04-18 15:23                       ` Eli Zaretskii
  1 sibling, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-04-18 15:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>  So I think inventing the equivalent of E3 would be wasted
> effort.

It shouldn't be really that hard, my earlier patch removed the
scrollback, and we call always add another command to do that. I have no
problem with writing a patch for the latter.

> I'm not necessarily object, but again: what would be the purpose of
> removing the scrollback? what will that give you?

Privacy? The scrollback might have some sensitive info, so someone might
want it cleared.

-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 15:18                     ` vibhavp
@ 2015-04-18 15:23                       ` Eli Zaretskii
  2015-04-18 19:10                         ` chad
  2015-04-18 20:13                         ` vibhavp
  0 siblings, 2 replies; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-18 15:23 UTC (permalink / raw)
  To: vibhavp; +Cc: emacs-devel

> From: vibhavp@gmail.com
> Cc: emacs-devel@gnu.org
> Date: Sat, 18 Apr 2015 20:48:42 +0530
> 
> > I'm not necessarily object, but again: what would be the purpose of
> > removing the scrollback? what will that give you?
> 
> Privacy? The scrollback might have some sensitive info, so someone might
> want it cleared.

There could be no privacy if the attackers have physical access to
your computer.

But, as I said, I don't object.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 15:23                       ` Eli Zaretskii
@ 2015-04-18 19:10                         ` chad
  2015-04-18 19:23                           ` Eli Zaretskii
  2015-04-18 20:13                         ` vibhavp
  1 sibling, 1 reply; 36+ messages in thread
From: chad @ 2015-04-18 19:10 UTC (permalink / raw)
  To: Eli Zaretskii, emacs-devel


> On 18 Apr 2015, at 08:23, Eli Zaretskii <eliz@gnu.org> wrote:
>>> I'm not necessarily object, but again: what would be the purpose of
>>> removing the scrollback? what will that give you?
>> 
>> Privacy? The scrollback might have some sensitive info, so someone might
>> want it cleared.
> 
> There could be no privacy if the attackers have physical access to
> your computer.

This conflates privacy with security. If I want to pass my computer
to someone else (a common practice in pair programming, to pick one
example), but I want to clear out some sensitive info first, it
shouldnt be hard to do. Making the emacs shell interface work like
a non-emacs shell interface seems like a perfectly reasonable thing
to do (especially since eshell already lets you hide the previous
context simply by hitting C-l C-l).

~Chad





^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 19:10                         ` chad
@ 2015-04-18 19:23                           ` Eli Zaretskii
  0 siblings, 0 replies; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-18 19:23 UTC (permalink / raw)
  To: chad; +Cc: emacs-devel

> From: chad <yandros@gmail.com>
> Date: Sat, 18 Apr 2015 12:10:23 -0700
> 
> > There could be no privacy if the attackers have physical access to
> > your computer.
> 
> This conflates privacy with security.

No, it doesn't.

> If I want to pass my computer to someone else (a common practice in
> pair programming, to pick one example), but I want to clear out some
> sensitive info first, it shouldnt be hard to do.

Good luck keeping your privacy that way!

> Making the emacs shell interface work like a non-emacs shell
> interface seems like a perfectly reasonable thing to do

We are in violent agreement.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 15:23                       ` Eli Zaretskii
  2015-04-18 19:10                         ` chad
@ 2015-04-18 20:13                         ` vibhavp
  2015-04-18 23:06                           ` Ted Zlatanov
  1 sibling, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-04-18 20:13 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

Attached a patch which adds a clear-scrollback command to eshell. If it
looks good, I'll push the patch to master with the relevant info in
etc/NEWS.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: esh-clear-scrollback.patch --]
[-- Type: text/x-diff, Size: 603 bytes --]

diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index 15120cb..21026b2 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -878,6 +878,12 @@ When run interactively, widen the buffer first."
     (insert (make-string number-newlines ?\n)))
     (eshell-send-input))
 
+(defun eshell/clear-scrollback ()
+    "Clear the scrollback content of the eshell window."
+  (interactive)
+  (let ((inhibit-read-only t))
+    (erase-buffer)))
+
 (defun eshell-get-old-input (&optional use-current-region)
   "Return the command input on the current line."
   (if use-current-region

[-- Attachment #3: Type: text/plain, Size: 35 bytes --]


-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 20:13                         ` vibhavp
@ 2015-04-18 23:06                           ` Ted Zlatanov
  2015-04-19  4:26                             ` vibhavp
  0 siblings, 1 reply; 36+ messages in thread
From: Ted Zlatanov @ 2015-04-18 23:06 UTC (permalink / raw)
  To: emacs-devel

On Sun, 19 Apr 2015 01:43:49 +0530 vibhavp@gmail.com wrote: 

v> Attached a patch which adds a clear-scrollback command to eshell. If it
v> looks good, I'll push the patch to master with the relevant info in
v> etc/NEWS.

v> diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
v> index 15120cb..21026b2 100644
v> --- a/lisp/eshell/esh-mode.el
v> +++ b/lisp/eshell/esh-mode.el
v> @@ -878,6 +878,12 @@ When run interactively, widen the buffer first."
v>      (insert (make-string number-newlines ?\n)))
v>      (eshell-send-input))
 
v> +(defun eshell/clear-scrollback ()
v> +    "Clear the scrollback content of the eshell window."
v> +  (interactive)
v> +  (let ((inhibit-read-only t))
v> +    (erase-buffer)))
v> +
v>  (defun eshell-get-old-input (&optional use-current-region)
v>    "Return the command input on the current line."
v>    (if use-current-region

That looks great.  Could you also make it available through
`C-u M-x eshell/clear'?  Or maybe "clear t" at the prompt?  Whatever you
think is best.

Ted




^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-18 23:06                           ` Ted Zlatanov
@ 2015-04-19  4:26                             ` vibhavp
  2015-04-19 14:40                               ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-04-19  4:26 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

Ted Zlatanov <tzz@lifelogs.com> writes:

> That looks great.  Could you also make it available through
> `C-u M-x eshell/clear'?

Attached Patch.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: esh-clear-scrollback.patch --]
[-- Type: text/x-diff, Size: 1508 bytes --]

diff --git a/etc/NEWS b/etc/NEWS
index 5e312ed..5bb84e1 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -610,6 +610,7 @@ command line's password prompt.
 ** Eshell
 
 *** The new built-in command `clear' can scroll window contents out of sight.
+If provided with an optional non-nil argument, the scrollback contents will be cleared.
 
 ** Browse-url
 
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index 15120cb..54e52b9 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -871,12 +871,20 @@ When run interactively, widen the buffer first."
   (goto-char (point-max))
   (recenter -1))
 
-(defun eshell/clear ()
-  "Scroll contents of eshell window out of sight, leaving a blank window."
+(defun eshell/clear (&optional scrollback)
+  "Scroll contents of eshell window out of sight, leaving a blank window.
+If SCROLLBACK is non-nil, clear the scollback contents."
   (interactive)
-  (let ((number-newlines (count-lines (window-start) (point))))
-    (insert (make-string number-newlines ?\n)))
-    (eshell-send-input))
+  (if scrollback
+      (eshell/clear-scrollback)
+    (let ((number-newlines (count-lines (window-start) (point))))
+      (insert (make-string number-newlines ?\n))
+      (eshell-send-input))))
+
+(defun eshell/clear-scrollback ()
+  "Clear the scrollback content of the eshell window."
+  (let ((inhibit-read-only t))
+    (erase-buffer)))
 
 (defun eshell-get-old-input (&optional use-current-region)
   "Return the command input on the current line."

[-- Attachment #3: Type: text/plain, Size: 35 bytes --]


-- 
Vibhav Pant
vibhavp@gmail.com

^ permalink raw reply related	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-19  4:26                             ` vibhavp
@ 2015-04-19 14:40                               ` Eli Zaretskii
  2015-04-19 18:06                                 ` vibhavp
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-19 14:40 UTC (permalink / raw)
  To: vibhavp; +Cc: emacs-devel

> From: vibhavp@gmail.com
> Date: Sun, 19 Apr 2015 09:56:45 +0530
> 
> Ted Zlatanov <tzz@lifelogs.com> writes:
> 
> > That looks great.  Could you also make it available through
> > `C-u M-x eshell/clear'?
> 
> Attached Patch.

Looks good to me, thanks.  Bonus points for updating eshell.texi as
well.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-19 14:40                               ` Eli Zaretskii
@ 2015-04-19 18:06                                 ` vibhavp
  2015-04-19 18:24                                   ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-04-19 18:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Looks good to me, thanks.  Bonus points for updating eshell.texi as
> well.

I've pushed the changes, which include an entry for "clear" in
eshell.texi

Thanks.
-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-19 18:06                                 ` vibhavp
@ 2015-04-19 18:24                                   ` Eli Zaretskii
  2015-04-19 18:49                                     ` vibhavp
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-19 18:24 UTC (permalink / raw)
  To: vibhavp; +Cc: emacs-devel

> From: vibhavp@gmail.com
> Date: Sun, 19 Apr 2015 23:36:31 +0530
> Cc: emacs-devel@gnu.org
> 
> I've pushed the changes, which include an entry for "clear" in
> eshell.texi

Thanks.  That means you should mark the NEWS entry with "+++", as
explained in the beginning of that file.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-19 18:24                                   ` Eli Zaretskii
@ 2015-04-19 18:49                                     ` vibhavp
  2015-04-19 18:53                                       ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: vibhavp @ 2015-04-19 18:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> Thanks.  That means you should mark the NEWS entry with "+++", as
> explained in the beginning of that file.

Done, sorry for forgetting that.

-- 
Vibhav Pant
vibhavp@gmail.com



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-19 18:49                                     ` vibhavp
@ 2015-04-19 18:53                                       ` Eli Zaretskii
  2015-04-20 12:50                                         ` Ted Zlatanov
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2015-04-19 18:53 UTC (permalink / raw)
  To: vibhavp; +Cc: emacs-devel

> From: vibhavp@gmail.com
> Date: Mon, 20 Apr 2015 00:19:20 +0530
> Cc: emacs-devel@gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Thanks.  That means you should mark the NEWS entry with "+++", as
> > explained in the beginning of that file.
> 
> Done, sorry for forgetting that.

No sweat, thanks for working on this.



^ permalink raw reply	[flat|nested] 36+ messages in thread

* Re: Add function eshell/clear to clear current eshell buffer
  2015-04-19 18:53                                       ` Eli Zaretskii
@ 2015-04-20 12:50                                         ` Ted Zlatanov
  0 siblings, 0 replies; 36+ messages in thread
From: Ted Zlatanov @ 2015-04-20 12:50 UTC (permalink / raw)
  To: emacs-devel

On Sun, 19 Apr 2015 21:53:29 +0300 Eli Zaretskii <eliz@gnu.org> wrote: 

>> From: vibhavp@gmail.com
>> Date: Mon, 20 Apr 2015 00:19:20 +0530
>> Cc: emacs-devel@gnu.org
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Thanks.  That means you should mark the NEWS entry with "+++", as
>> > explained in the beginning of that file.
>> 
>> Done, sorry for forgetting that.

EZ> No sweat, thanks for working on this.

I really appreciate it too, Vibhav!

Ted




^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2015-04-20 12:50 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-08  5:22 [PATCH] Add function eshell/clear to clear current eshell buffer vibhavp
2015-03-08  5:23 ` Vibhav Pant
2015-03-08  7:08   ` Bozhidar Batsov
2015-03-08  7:19     ` vibhavp
2015-03-08  7:25       ` Bozhidar Batsov
2015-03-08 15:45 ` Eli Zaretskii
2015-03-08 19:28   ` vibhavp
2015-03-08 20:11     ` Eli Zaretskii
2015-03-09  6:16       ` vibhavp
2015-03-09 10:11         ` Gregor Zattler
2015-03-09 12:33           ` vibhavp
2015-03-09 12:39             ` vibhavp
2015-03-09 15:59           ` Eli Zaretskii
2015-03-09 16:09             ` vibhavp
2015-03-09 16:43               ` Eli Zaretskii
2015-03-10  3:27                 ` Vibhav Pant
2015-03-10  7:59                   ` Bozhidar Batsov
2015-03-10  8:20                     ` Ricardo Wurmus
2015-04-18 11:12             ` Ted Zlatanov
2015-04-18 12:39               ` Eli Zaretskii
2015-04-18 13:31                 ` Ted Zlatanov
2015-04-18 13:43                   ` Eli Zaretskii
2015-04-18 14:17                     ` Ted Zlatanov
2015-04-18 15:18                     ` vibhavp
2015-04-18 15:23                       ` Eli Zaretskii
2015-04-18 19:10                         ` chad
2015-04-18 19:23                           ` Eli Zaretskii
2015-04-18 20:13                         ` vibhavp
2015-04-18 23:06                           ` Ted Zlatanov
2015-04-19  4:26                             ` vibhavp
2015-04-19 14:40                               ` Eli Zaretskii
2015-04-19 18:06                                 ` vibhavp
2015-04-19 18:24                                   ` Eli Zaretskii
2015-04-19 18:49                                     ` vibhavp
2015-04-19 18:53                                       ` Eli Zaretskii
2015-04-20 12:50                                         ` Ted Zlatanov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).