From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#11934: 24.1; provide variable for pp.el to control max display width Date: Fri, 29 Apr 2016 16:24:01 +0200 Message-ID: <8737q47ata.fsf@gnus.org> References: <87bn4tafw8.fsf@gnus.org> <87k2jg4i3j.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461939947 6880 80.91.229.3 (29 Apr 2016 14:25:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 14:25:47 +0000 (UTC) Cc: 11934@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 16:25:35 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aw9MK-0005BY-NU for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 16:25:32 +0200 Original-Received: from localhost ([::1]:54845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw9MG-0004Xo-W2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 10:25:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw9M7-0004Ku-J4 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 10:25:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw9Lv-0002lS-OO for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 10:25:14 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw9Lt-0002gc-Oq for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 10:25:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aw9Lp-0001v1-V8 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 10:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2016 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11934 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11934-submit@debbugs.gnu.org id=B11934.14619398517315 (code B ref 11934); Fri, 29 Apr 2016 14:25:01 +0000 Original-Received: (at 11934) by debbugs.gnu.org; 29 Apr 2016 14:24:11 +0000 Original-Received: from localhost ([127.0.0.1]:55375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw9L1-0001tv-0R for submit@debbugs.gnu.org; Fri, 29 Apr 2016 10:24:11 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw9Ky-0001tl-Mv for 11934@debbugs.gnu.org; Fri, 29 Apr 2016 10:24:09 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aw9Ks-0001Ps-66; Fri, 29 Apr 2016 16:24:04 +0200 In-Reply-To: <87k2jg4i3j.fsf@web.de> (Michael Heerdegen's message of "Fri, 29 Apr 2016 16:14:56 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117181 Archived-At: Michael Heerdegen writes: > But of course handling this problem is not trivial: we can't distinguish > "simple lists" from code, and what might look good for the first might > look weird for a macro call with a special lisp-indent-function value > (e.g. imagine a `defun' call with a line break inserted just after > "defun"). Well, pp isn't really designed for handling code. I pp'd a function at random... it may be pretty, but it sure is unusual for code... So I don't really think that's a consideration here. (defun menu-bar-buffer-vector (alist) (let ((buffers-vec (make-vector (length alist) nil)) (i (length alist))) (dolist (pair alist) (setq i (1- i)) (aset buffers-vec i (cons (car pair) `(lambda nil (interactive) (funcall menu-bar-select-buffer-function ,(cdr pair)))))) buffers-vec)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no