From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: C-x C-e with prefix arg Date: Sun, 05 May 2013 22:50:35 +0300 Organization: JURTA Message-ID: <87zjw9z0fk.fsf@mail.jurta.org> References: <4D5891EF34DF42D3A479CF83CAF1E43E@us.oracle.com> <87zjw97qo7.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367783597 24527 80.91.229.3 (5 May 2013 19:53:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 May 2013 19:53:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 05 21:53:15 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZ4zj-0002oS-IU for ged-emacs-devel@m.gmane.org; Sun, 05 May 2013 21:53:15 +0200 Original-Received: from localhost ([::1]:46221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ4zj-0001Jw-8z for ged-emacs-devel@m.gmane.org; Sun, 05 May 2013 15:53:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ4zg-0001Jf-8N for emacs-devel@gnu.org; Sun, 05 May 2013 15:53:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZ4zf-00089V-9J for emacs-devel@gnu.org; Sun, 05 May 2013 15:53:12 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35647 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ4zf-00089P-3l for emacs-devel@gnu.org; Sun, 05 May 2013 15:53:11 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3DA2C258B9E91C; Sun, 5 May 2013 12:53:09 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Sun, 5 May 2013 07:23:05 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.218.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159348 Archived-At: > We should pick the most appropriate, most useful prefix-arg behavior > _for the particular command_. A numeric prefix arg is not the most appropriate, most useful prefix-arg behavior for the particular command `eval-last-sexp'. E.g. `C-u -42 C-x C-e' is useless and meaningless for binding `eval-expression-print-length' and `eval-expression-print-level' to nil (or using their default values that differ from the arg value). >> e.g. for this case it could define the number of values to >> insert to the buffer or the depth of list nesting to print. > > If you want to propose either of those, go for it. I don't want to propose those now, but we should try to reserve numeric prefixes for features where numbers make sense like e.g. `C-u -42 C-x C-e' to bind `eval-expression-print-length' to the numeric arg 42, or `C-u 42 C-x C-e' to bind `eval-expression-print-level' to the given number. > * Negative in this case is mnemonic for "less". It hints at the > elision/abbreviation. Fine, then use the symbol `-' (just a minus sign) as the prefix arg. > `M-0' is "usually" for counting and should mean only zero inserts or > zeroth print level Which is the most appropriate prefix where zero means to bind `eval-expression-print-length' and `eval-expression-print-level' to nil. > IMHO, the proposal I made is better, but I really don't care. I never use > either `eval-last-sexp' or `eval-print-last-sexp', personally. I use > `pp-eval-last-sexp' instead (and my own version of it), and I use *scratch* in > Emacs-Lisp mode (so C-j is not `eval-print-last-sexp'). I like your proposal, but I strive to find the most appropriate prefix arg that could be shared between lists and numeric output of `C-x C-e', `M-:', and `C-j'. i.e. the same prefix arg to define whether to print the full list value or not, and whether to print full information about numbers (octal, hexadecimal). This is required for bug#12985.