From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18643: 25.0.50; elisp--expect-function-p Date: Sat, 11 Oct 2014 20:18:34 +0400 Message-ID: <5439585A.3030201@yandex.ru> References: <3601111412974400@web5o.yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1413044372 23831 80.91.229.3 (11 Oct 2014 16:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2014 16:19:32 +0000 (UTC) Cc: Leo Liu , "18643@debbugs.gnu.org" <18643@debbugs.gnu.org> To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 18:19:25 2014 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 1XczO9-0001y5-0v for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Oct 2014 18:19:25 +0200 Original-Received: from localhost ([::1]:54654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XczO8-0006bv-JH for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Oct 2014 12:19:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XczNy-0006VK-0t for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2014 12:19:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XczNm-0006hM-M2 for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2014 12:19:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XczNm-0006hG-IN for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2014 12:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XczNm-0008QL-0K for bug-gnu-emacs@gnu.org; Sat, 11 Oct 2014 12:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Oct 2014 16:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18643 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18643-submit@debbugs.gnu.org id=B18643.141304432232352 (code B ref 18643); Sat, 11 Oct 2014 16:19:01 +0000 Original-Received: (at 18643) by debbugs.gnu.org; 11 Oct 2014 16:18:42 +0000 Original-Received: from localhost ([127.0.0.1]:41233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XczNR-0008Pk-Hm for submit@debbugs.gnu.org; Sat, 11 Oct 2014 12:18:41 -0400 Original-Received: from mail-lb0-f170.google.com ([209.85.217.170]:50383) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XczNP-0008PZ-Cz for 18643@debbugs.gnu.org; Sat, 11 Oct 2014 12:18:39 -0400 Original-Received: by mail-lb0-f170.google.com with SMTP id u10so4638383lbd.15 for <18643@debbugs.gnu.org>; Sat, 11 Oct 2014 09:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OzJQiw6g4wEd/opfi+KN529aqmLYKDxRP3AVt7x3Et8=; b=ebD7K1fKdK3E+3UgRBXR6Lgl1IFAsaQDlbK76Q40dDIcBioNVomaypTV3WJXMGP65H cu3wm/40ckO1EZ9uYM/VkRGyMJ32D87H6OxC8iv8R1YdDsD3eTBtQ5QuGTJDdXRqoYiF aEIS5Wrj/xM74Ux2nyVUGNPKcdzlAkTPGREcG+GyRDx0n9+qngc4SmTWwHlefnBGG3cS aOXin6omWsDA4/JAfmKEBY/LsvZbYBfEOEG0CWECANB1oFHIcG74kD0uEVM6m1qIi0kr Ajo14MS+pJn+dEUZEWo6moTTCflTVAMU9APazN915b23/FuKov6mGD037FSOm2T42/HN PYAQ== X-Received: by 10.112.149.2 with SMTP id tw2mr12072936lbb.21.1413044318269; Sat, 11 Oct 2014 09:18:38 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id z2sm2832239laa.15.2014.10.11.09.18.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Oct 2014 09:18:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94416 On 10/11/2014 05:47 PM, Stefan Monnier wrote: > But by being a separate function, users can add/remove it at will, > depending on their preference. Hmm, that's one option, yes. >> I rather think the right solution would start with a stricter convention for >> code snippets in docstrings. > > That's a non-starter, because while we can apply this to our own code, > we can't enforce it on others's, Then those others won't get Lisp completion is docstrings. Which is their choice, and not that big a deal. The convention doesn't have to be complicated. For example, we can limit ourselves to considering blocks within comments or docstrings separated by newlines from the rest of the text, and only when each line starts with 2+ (or 4+?) spaces. As a plus, we'll be able to modify the indentation function to work in these blocks, too.