unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tianxiang Xiong <tianxiang.xiong@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Proposal: alias `clear-buffer` to `erase-buffer`
Date: Sat, 14 Jan 2017 11:41:50 -0800	[thread overview]
Message-ID: <CACMkxiytHUnsKioWyiXK34FPkiD-875V8TEbd9=4RZfBYBwJrw@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2017-01-14 19:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-14 19:41 Tianxiang Xiong [this message]
2017-01-15  3:02 ` Proposal: alias `clear-buffer` to `erase-buffer` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACMkxiytHUnsKioWyiXK34FPkiD-875V8TEbd9=4RZfBYBwJrw@mail.gmail.com' \
    --to=tianxiang.xiong@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).