From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: hideshow docstring in elisp or common lisp code
Date: Sun, 11 Nov 2018 10:03:04 +0100 [thread overview]
Message-ID: <8dc48396-7815-86b2-9539-5525ae375174@easy-emacs.de> (raw)
In-Reply-To: <87o9azngn5.fsf@web.de>
On 09.11.2018 03:12, Michael Heerdegen wrote:
> Mirko Vukovic <mirko.vukovic@gmail.com> 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
next prev parent reply other threads:[~2018-11-11 9:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 22:33 hideshow docstring in elisp or common lisp code Mirko Vukovic
2018-11-09 2:12 ` Michael Heerdegen
2018-11-11 9:03 ` Andreas Röhler [this message]
2018-11-13 3:34 ` Drew Adams
2018-11-13 15:11 ` Drew Adams
[not found] <mailman.3529.1541470097.1284.help-gnu-emacs@gnu.org>
2018-11-06 19:05 ` Emanuel Berg
2018-11-08 13:57 ` Mirko
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=8dc48396-7815-86b2-9539-5525ae375174@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@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.
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).