Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [doc-strings]

The tag has no usage guidance.

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
120 views

"helm-documentation"? (search docstrings like apropos-documentation but with helm)

I just started using helm-apropos. It's great! Is there a helm equivalent for apropos-documentation or alternatively does helm-apropos have sources already available to narrow over docstrings?
ebpa's user avatar
  • 7,499
2 votes
0 answers
208 views

Optional docstring in defun

After taking a look at the definition of defun in byte-run.el, it seems that the macro does some very interesting things regarding checking for the existence of a docstring. First, it uses a declare ...
Tianxiang Xiong's user avatar
1 vote
0 answers
74 views

auto intendation on newline doesn't stay at same indentation for python docstring

Ubuntu 19.10 emacs 26.3 from system repos I do use elpy and evil-mode In general when I am editing python code, indentation works just fine. However, when I am editing doc-strings, when I type enter ...
Vince W.'s user avatar
  • 415
1 vote
0 answers
92 views

Is there an existing function to add docstrings, relevant to the current major mode?

In emacs is there a function that I can invoke to add a docstring template based on the current major mode? eg: If I'm working on javascript, insert a javascript docstring template "here", like: /*...
pwalsh's user avatar
  • 245
0 votes
0 answers
37 views

fill-paragraph for Google style docstrings

When editing an existing docstring in Google style you need to call a function like fill-paragraph to cut the long lines while preserving the proper indentation. However fill-paragraph will not work ...
olivaw's user avatar
  • 151
0 votes
0 answers
16 views

Non-filling of lines and paragraphs when using docstrings

I am having a problem with docstrings because everything is written as verbatim without paragraph or line filling. The following for instance puts Malicious and Functionalities on two separate lines. ...
Dilna's user avatar
  • 1
0 votes
0 answers
19 views

put function-documentation fails inside own function

How is it that (put 'workbench 'function-documentation does not work inside (defun workbench? (setq workbench-usage "Usage Information.") (defun workbench (&optional prefix name mode) ...
Dilna's user avatar
  • 1