unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
       [not found] <E1WyGFi-00030X-E3@vcs.savannah.gnu.org>
@ 2014-06-21 13:01 ` Stefan Monnier
  2014-06-21 13:42   ` Eli Zaretskii
  2014-06-21 13:03 ` Stefan Monnier
  1 sibling, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-06-21 13:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> -	\\n	go to next line and indent according to mode
> +	\\n	if not at eol, go to next line and indent according to mode

That is not true.  The "eol" exception only applies to a \n that's the
last element of a skeleton.


        Stefan



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
       [not found] <E1WyGFi-00030X-E3@vcs.savannah.gnu.org>
  2014-06-21 13:01 ` [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix Stefan Monnier
@ 2014-06-21 13:03 ` Stefan Monnier
  2014-06-21 13:43   ` Eli Zaretskii
  1 sibling, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-06-21 13:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> -	\\n	go to next line and indent according to mode
> +	\\n	if not at eol, go to next line and indent according to mode

Oh, and there's a similar/reversed exception for a \n that's the first
element of a skeleton.


        Stefan



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
  2014-06-21 13:01 ` [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix Stefan Monnier
@ 2014-06-21 13:42   ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2014-06-21 13:42 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Sat, 21 Jun 2014 09:01:47 -0400
> 
> > -	\\n	go to next line and indent according to mode
> > +	\\n	if not at eol, go to next line and indent according to mode
> 
> That is not true.  The "eol" exception only applies to a \n that's the
> last element of a skeleton.

Fixed.



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
  2014-06-21 13:03 ` Stefan Monnier
@ 2014-06-21 13:43   ` Eli Zaretskii
  2014-06-21 17:22     ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2014-06-21 13:43 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Sat, 21 Jun 2014 09:03:13 -0400
> 
> > -	\\n	go to next line and indent according to mode
> > +	\\n	if not at eol, go to next line and indent according to mode
> 
> Oh, and there's a similar/reversed exception for a \n that's the first
> element of a skeleton.

Reversed in what way?  Can you describe what happens in that case?



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
  2014-06-21 13:43   ` Eli Zaretskii
@ 2014-06-21 17:22     ` Stefan Monnier
  2014-06-21 17:39       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-06-21 17:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

>> Oh, and there's a similar/reversed exception for a \n that's the first
>> element of a skeleton.
> Reversed in what way?  Can you describe what happens in that case?

Something like "insert newline unless we're already at BOL".


        Stefan



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
  2014-06-21 17:22     ` Stefan Monnier
@ 2014-06-21 17:39       ` Eli Zaretskii
  2014-06-21 18:50         ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2014-06-21 17:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Cc: emacs-devel@gnu.org
> Date: Sat, 21 Jun 2014 13:22:06 -0400
> 
> >> Oh, and there's a similar/reversed exception for a \n that's the first
> >> element of a skeleton.
> > Reversed in what way?  Can you describe what happens in that case?
> 
> Something like "insert newline unless we're already at BOL".

That's not what I see.  texinfo-insert-@quotation simply _never_
inserts the \n that is the first element of its skeleton.  It doesn't
matter whether I type "C-c C-c q" at bol, eol, or in the middle of a
line.



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
  2014-06-21 17:39       ` Eli Zaretskii
@ 2014-06-21 18:50         ` Stefan Monnier
  2014-06-22 17:00           ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2014-06-21 18:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> That's not what I see.  texinfo-insert-@quotation simply _never_
> inserts the \n that is the first element of its skeleton.

That's because its \n is not the first element bu the "interactor".
IOW there's a nil missing before it.


        Stefan



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

* Re: [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix.
  2014-06-21 18:50         ` Stefan Monnier
@ 2014-06-22 17:00           ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2014-06-22 17:00 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Sat, 21 Jun 2014 14:50:51 -0400
> 
> > That's not what I see.  texinfo-insert-@quotation simply _never_
> > inserts the \n that is the first element of its skeleton.
> 
> That's because its \n is not the first element bu the "interactor".
> IOW there's a nil missing before it.

OK, I fixed the doc again.



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

end of thread, other threads:[~2014-06-22 17:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1WyGFi-00030X-E3@vcs.savannah.gnu.org>
2014-06-21 13:01 ` [Emacs-diffs] emacs-24 r117272: lisp/skeleton.el (skeleton-insert): Doc fix Stefan Monnier
2014-06-21 13:42   ` Eli Zaretskii
2014-06-21 13:03 ` Stefan Monnier
2014-06-21 13:43   ` Eli Zaretskii
2014-06-21 17:22     ` Stefan Monnier
2014-06-21 17:39       ` Eli Zaretskii
2014-06-21 18:50         ` Stefan Monnier
2014-06-22 17:00           ` Eli Zaretskii

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