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

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