unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Proposal: alias `clear-buffer` to `erase-buffer`
@ 2017-01-14 19:41 Tianxiang Xiong
  2017-01-15  3:02 ` Richard Stallman
  2017-01-26  0:45 ` Davis Herring
  0 siblings, 2 replies; 4+ messages in thread
From: Tianxiang Xiong @ 2017-01-14 19:41 UTC (permalink / raw)
  To: Emacs developers

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

The `erase-buffer` function is the only function that "clears" data, but
begins with the word "erase". This makes it difficult to discover for new
users.

The most widely used term seems to be "clear" instead of "erase". See:

- `clear-string`
- `clear-rectangle`
- `clear-abbrev-table`

and more.

`erase-buffer` should be called `clear-buffer`. We can create an alias in
`subr.el` and mark `erase-buffer` as deprecated, though it'll never be safe
to remove due to the amount of code that uses it.

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

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

* Re: Proposal: alias `clear-buffer` to `erase-buffer`
  2017-01-14 19:41 Proposal: alias `clear-buffer` to `erase-buffer` Tianxiang Xiong
@ 2017-01-15  3:02 ` Richard Stallman
  2017-01-26  0:45 ` Davis Herring
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2017-01-15  3:02 UTC (permalink / raw)
  To: Tianxiang Xiong; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I find it useful that 'erase' completes to this command.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




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

* Re: Proposal: alias `clear-buffer` to `erase-buffer`
  2017-01-14 19:41 Proposal: alias `clear-buffer` to `erase-buffer` Tianxiang Xiong
  2017-01-15  3:02 ` Richard Stallman
@ 2017-01-26  0:45 ` Davis Herring
       [not found]   ` <CAFyQvY1Pefa5Ycx-LHnM2m_1ygMMwH_oveGTuj_r+Fc_M=y0Qg@mail.gmail.com>
  1 sibling, 1 reply; 4+ messages in thread
From: Davis Herring @ 2017-01-26  0:45 UTC (permalink / raw)
  To: Tianxiang Xiong; +Cc: Emacs developers

> - `clear-string`
> - `clear-rectangle`

I'm not sure the analogy follows: these two replace a container's 
contents with some sort of blank, but don't change their size to be 0.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or 
too sparse, it is because mass-energy conversion has occurred during 
shipping.



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

* Re: Proposal: alias `clear-buffer` to `erase-buffer`
       [not found]     ` <CAFyQvY1UyTbJ0QXZjsCJ=iCk5sP30374xjHAaA7hihSv7v0vGg@mail.gmail.com>
@ 2017-01-29 23:54       ` Kaushal Modi
  0 siblings, 0 replies; 4+ messages in thread
From: Kaushal Modi @ 2017-01-29 23:54 UTC (permalink / raw)
  To: Davis Herring; +Cc: Tianxiang Xiong, Emacs developers

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

On Jan 25, 2017 7:45 PM, "Davis Herring" <herring@lanl.gov> wrote:

- `clear-string`
> - `clear-rectangle`
>

I'm not sure the analogy follows: these two replace a container's contents
with some sort of blank, but don't change their size to be 0.


+1 erase-buffer makes more sense.

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

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

end of thread, other threads:[~2017-01-29 23:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-14 19:41 Proposal: alias `clear-buffer` to `erase-buffer` Tianxiang Xiong
2017-01-15  3:02 ` Richard Stallman
2017-01-26  0:45 ` Davis Herring
     [not found]   ` <CAFyQvY1Pefa5Ycx-LHnM2m_1ygMMwH_oveGTuj_r+Fc_M=y0Qg@mail.gmail.com>
     [not found]     ` <CAFyQvY1UyTbJ0QXZjsCJ=iCk5sP30374xjHAaA7hihSv7v0vGg@mail.gmail.com>
2017-01-29 23:54       ` Kaushal Modi

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).