unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23046: 25.0.92; Docstring of `sh-indent-after-continuation' lacks backslash escapes
@ 2016-03-17 20:59 Philipp Stephani
  2016-07-03  0:00 ` npostavs
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Stephani @ 2016-03-17 20:59 UTC (permalink / raw)
  To: 23046


M-x load-library RET sh-script RET
C-h v sh-indent-after-continuation

prints

...
If non-nil, indent relative to the continued line’s beginning.
Continued lines can either be indented as "one long wrapped line" without
paying attention to the actual syntactic structure, as in:

   for f        in a; do        toto;        done

or as lines that just don’t have implicit semi-colons between them, as in:

   for f    in a; do        toto;    done

With ‘always’ you get the former behavior whereas with nil you get the latter.
With t, you get the latter as long as that would indent the continuation line
deeper than the initial line.
...

I think the code examples were meant to be on multiple lines.  For that
the backslashes in the docstring need to be escaped.



In GNU Emacs 25.0.92.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2016-03-17 built on localhost
Repository revision: 9094304a9c109495bf2212a713df1b07270d15cd
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description:	Ubuntu 14.04 LTS

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Loading sh-script...done
Type C-x 1 to delete the help window, C-M-v to scroll help.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra
thingatpt help-fns help-mode easymenu cl-loaddefs pcase cl-lib sh-script
smie executable time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 95337 7607)
 (symbols 48 20389 0)
 (miscs 40 465 172)
 (strings 32 17449 4685)
 (string-bytes 1 499427)
 (vectors 16 13034)
 (vector-slots 8 454811 4405)
 (floats 8 164 26)
 (intervals 56 260 0)
 (buffers 976 14)
 (heap 1024 46802 923))

-- 
Google Germany GmbH
Erika-Mann-Straße 33
80636 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle

Diese E-Mail ist vertraulich.  Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen
Sie die E-Mail und alle Anhänge.  Vielen Dank.

This e-mail is confidential.  If you are not the right addressee please do not
forward it, please inform the sender, and please erase this e-mail including
any attachments.  Thanks.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#23046: 25.0.92; Docstring of `sh-indent-after-continuation' lacks backslash escapes
  2016-03-17 20:59 bug#23046: 25.0.92; Docstring of `sh-indent-after-continuation' lacks backslash escapes Philipp Stephani
@ 2016-07-03  0:00 ` npostavs
  0 siblings, 0 replies; 2+ messages in thread
From: npostavs @ 2016-07-03  0:00 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 23046

tags 23046 fixed
close 23046 25.1
quit

Philipp Stephani <p.stephani2@gmail.com> writes:

> M-x load-library RET sh-script RET
> C-h v sh-indent-after-continuation
>
> prints
>
> ...
> If non-nil, indent relative to the continued line’s beginning.
> Continued lines can either be indented as "one long wrapped line" without
> paying attention to the actual syntactic structure, as in:
>
>    for f        in a; do        toto;        done
>
> or as lines that just don’t have implicit semi-colons between them, as in:
>
>    for f    in a; do        toto;    done
>
> With ‘always’ you get the former behavior whereas with nil you get the latter.
> With t, you get the latter as long as that would indent the continuation line
> deeper than the initial line.
> ...
>
> I think the code examples were meant to be on multiple lines.  For that
> the backslashes in the docstring need to be escaped.

Yep, looks like a copy-pasto, fixed in 113d1e2.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-03  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 20:59 bug#23046: 25.0.92; Docstring of `sh-indent-after-continuation' lacks backslash escapes Philipp Stephani
2016-07-03  0:00 ` npostavs

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).