From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: hideshow docstring in elisp or common lisp code Date: Sun, 11 Nov 2018 10:03:04 +0100 Message-ID: <8dc48396-7815-86b2-9539-5525ae375174@easy-emacs.de> References: <87o9azngn5.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1541926554 12176 195.159.176.226 (11 Nov 2018 08:55:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 08:55:54 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 09:55:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gLlX3-00034p-U0 for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 09:55:50 +0100 Original-Received: from localhost ([::1]:41416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLlZA-0003aj-1N for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 03:58:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gLlYh-0003aM-7e for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:57:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gLlYb-0001GY-IO for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:57:30 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.187]:40849) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gLlYb-0001AS-7z for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 03:57:25 -0500 Original-Received: from [192.168.178.35] ([87.123.157.3]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M8Syu-1gQBOt1TVY-004Tdt for ; Sun, 11 Nov 2018 09:57:23 +0100 In-Reply-To: <87o9azngn5.fsf@web.de> Content-Language: en-US X-Provags-ID: V03:K1:UoPyi9KwpQwB1k71g3vowLz3RMzTSoft0rHJbp+gdZwQuBdLNPf a3edzrCHf+Ia/QMnQmC36F5s1Q9/AvE6ZAl0pd+pt2tZPu254atMsLevyArYyErLd5lB2ML SO5znr2XiKrNNSapMpt+kui9f4ROfLWyV+N0CzLh1fg/MMSKS4szEzL4HiZAkXs8hspYKYO jQXHBvkfksVMhFGTCCXWg== X-UI-Out-Filterresults: notjunk:1;V01:K0:X19XqOYpZ14=:nAb8jLV7JVGccThPaFrQi6 EMUsPxPnFY0IzcsEJOPd6VmrUE7lyxo6rSxQEixsmKOGTtJWIaNCOvfvXgESCPv1/VzoIHurA bZ/4/e5nkKkZNUkEwuFDomIew0DjjJe53ZXAMz1+pgMKQwRXkGeUo9UL2zvd2tLSCqAtaZgXy CX+W2u/Rj8StHyv8g+fRKiEBcXen4DV+lLVqTBgoEv5VQFzejcbNaDO0aXcER4hiIUAgfOfqm FR+WWD8jGlk0bpzQVE8GxjUKeHyOCqlty3n21OFmjVM9ULQqT1FP4jcrGmXjxUKXeEsPUMOEC 0YTY4SbE9cetjFciXD0gDYEaseRdRYcxUL0khfKVdKyB+wMVy+9YAbgsp8BqWuNAahYHJEaIr WZvzkft1cZ5zFEpsG9PNpkKeebxcC6kub7PuX8FwmfqKFvh6Jexwroh4w8NuMauWShy8Ht5cm SR6rSsOmqyMxYsJg7fhsUzRJh9Zgi7Gf9XS6LknGBpmpGn7KTseb/dXRY3EucOwzvnEnQHuzv HyVo682tMDw3xGvK2vP9yhoi3fc/998WUJ6l151M059tnygklIYj0J3+KQCM62y0ViSIEn8OH nsModUfgVim6l1dWoiN2gXnSPTyBCbQMExn9QG/p3xrTH6hBiTeBep9qgVqw8dCR9Z3WWXGre GwYoPi0JUWA74nbHRdu1UQy27lNUhK+0/X6YwUmyuyGLBZUWYKptIGNlDW20DAOuN3ReBH9Yy Dn+hEPDOzIPAimCOZT6GjyND/QGTH/OoD2kiXBfTJQpq5bq4KYlwBETISpUn5+P0AdalcElZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118644 Archived-At: On 09.11.2018 03:12, Michael Heerdegen wrote: > Mirko Vukovic writes: > >> I would like to hide/show docstrings of my common lisp code. >> >> Has that been defined in some hideshow package? >> >> If not I'll give it a shot, initially for defuns. > > AFAIK no, hideshow is only about blocks. However, you could try to > teach hideshow that it should handle strings as blocks. Can be done by > simply customizing hs-special-modes-alist. It isn't fun to do this, > however, since it's not easy to do it in a way that doesn't totally > confuse hideshow. > > Michael. > External thing-at-point-utils.el provides (defun ar-hide-string-atpt (&optional arg) "Hides STRING at point. " (interactive "P") (ar-th-hide 'string)) (defun ar-show-string-atpt (&optional arg) "Shows hidden STRING at point. " (interactive "P") (ar-th-show 'string)) Remains to write some function traveling the buffer and picking docstring-sections https://github.com/andreas-roehler/thing-at-point-utils