Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at 80492) by debbugs.gnu.org; 26 Feb 2026 09:05:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 26 04:05:27 2026
Received: from localhost ([127.0.0.1]:38730 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vvXJG-0001mA-8Y
for submit <at> debbugs.gnu.org; Thu, 26 Feb 2026 04:05:27 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45220)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
id 1vvXJE-0001ld-0F; Thu, 26 Feb 2026 04:05:24 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1vvXJ8-0000Bq-MX; Thu, 26 Feb 2026 04:05:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=66cxWHiTmMesFnziH5FgtaaOXf89oNxNXEzwHrmPMs8=; b=rb+fBnxTKK+u
caqiOHQYDoNZ85Q/Dra6l0JU4AN1ReldKALkVBGh7AspBTOGinXBs/zOtqYc9KQtuAqhUanb8wAdZ
eCtLC3fBTifyCvoggZAwutf/1WzI23SGDEsJ9+pxH4JrQB02qoI3nSVGmXiu0Pia3Ym22Om8uMUNv
qICa6vlWaGyoz3mgHh3H+RIv4evO10/ycEokcL3psYIiXc9NCzmuXuZ8pu4nFjLvyVWAQcyjrPlVc
EbHigbfuH1vBRpcPq+CwHVFyezTW48LWxYu6rScPvJW3cP+Ogncr5ZZmGcvzahADdN2A6+0STPlRI
dAwP9zUOkNjeYWvuf5gtKQ==;
Date: Thu, 26 Feb 2026 11:05:00 +0200
Message-Id: <86ldgf7u4j.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
In-Reply-To: <CAO48Bk-vQESn1W5XofmJRMoNdRWN4wSzF5qkOxNOCwN8k-naew@HIDDEN>
(message from Pedro Andres Aranda Gutierrez on Thu, 26 Feb 2026
07:52:53 +0100)
Subject: Re: bug#80492: 31.0.50; Strange behaviour of skeletons
References: <CAO48Bk-vQESn1W5XofmJRMoNdRWN4wSzF5qkOxNOCwN8k-naew@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 80492
Cc: 80492 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
tags 80492 notabug
thanks
> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
> Date: Thu, 26 Feb 2026 07:52:53 +0100
>
> This is a full transcript of my test in the *scratch* buffer:
>
> -----
> Evaluate:
>
> (define-skeleton test
> "A test skeleton"
> "What?"
> "\\textcolor{" str "}{" _ "}")
> t
>
> Without region selected (i.e. M-x test):
>
> \textcolor{red}{}
>
> With a region:
>
> I have the line
>
> pepe is wrong in this
>
> Go to the 'w' in wrong and mark, moving the cursor 'g',
> leaving it at the end of the region:
>
> pepe is \textcolor{red}{wrong}
> in this
>
> I copy the line again, move to the 'g' in wrong and mark,
> moving the cursor to the 'w' and leaving it
> at the beginning of the region:
>
> pepe is \textcolor{blue}{wrong}
> in this
>
> Finding:
>
> When there is a region active, the skeleton wraps correctly around it
> but an additional new line is inserted at the end of the skeleton.
>
> What I would expect:
>
> Since I have not indicated I want a newline inserted, I would expect
> no newline to be inserted when the region is active, i.e. the same
> behaviour as without region selected.
Thanks.
This is a feature, see the variable skeleton-end-newline and this part
of the doc string of skeleton-insert:
When done with skeleton, but before going back to `_'-point, add
a newline (unless `skeleton-end-newline' is nil) and run the hook
`skeleton-end-hook'.
So if you don't want the added newline, you should set
skeleton-end-newline to the nil value.
(The behavior without the region seems to be different because in your
recipe point is already and newline. I've now made the doc string
more accurate by mentioning the EOL situation.)
This is not a bug.
bug-gnu-emacs@HIDDEN:bug#80492; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 26 Feb 2026 06:53:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 26 01:53:33 2026
Received: from localhost ([127.0.0.1]:38000 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vvVFc-0008Ul-JV
for submit <at> debbugs.gnu.org; Thu, 26 Feb 2026 01:53:33 -0500
Received: from lists.gnu.org ([2001:470:142::17]:40492)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <paaguti@HIDDEN>) id 1vvVFa-0008UM-FM
for submit <at> debbugs.gnu.org; Thu, 26 Feb 2026 01:53:31 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <paaguti@HIDDEN>) id 1vvVFU-0002Rc-BB
for bug-gnu-emacs@HIDDEN; Thu, 26 Feb 2026 01:53:24 -0500
Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from <paaguti@HIDDEN>) id 1vvVFR-0003sg-Vi
for bug-gnu-emacs@HIDDEN; Thu, 26 Feb 2026 01:53:24 -0500
Received: by mail-ed1-x52f.google.com with SMTP id
4fb4d7f45d1cf-65fa0fbe9fdso1090253a12.3
for <bug-gnu-emacs@HIDDEN>; Wed, 25 Feb 2026 22:53:21 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1772088799; cv=none;
d=google.com; s=arc-20240605;
b=PpCuboRn6wtmOaQjHWv8NQNExKjIr4jI+bnup+lLaoNaRCzyuel74asSKtTnd2ruu7
+jBVkb1Dv/bi3anoe4AiJUFU0aj7y/eymYKImPcN8d4PIWwarx7kO0zy/EuQtbLRIIW1
y9jkJxpi/4VGMrZQecL4zGaKuj7Dg9+Ldu7ARq4jP16uylT3EDltngeW+oSkAEeatkJT
sruhWa1JgfrclUqdZRO49v2w9WZ6zMGRXKQJdQ0bJEiylabG+wCUcxB2ophc75eHjg9s
NGQRMVnbCmxphrDUkksZcUl8xxTRtcuqasAEaeckLOk6C0tkJWnVfpHsdL8vnsxlFkla
eSMw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=to:subject:message-id:date:from:mime-version:dkim-signature;
bh=4Ip+eypa2FbE4ivXb03DTR6iR6Mk65E/jmEYDOQqqiQ=;
fh=+R8aXOFVnuBbN1nRXJJI02Ia//JUQJmLW/Uk/VaA0ag=;
b=fn9KOVgQD6R7hggvZq6fBknGXcdJfUqHUZpPAjPayZnSjTLx2Xipgf6Gd67rOyv++A
xmvxtHZOq3gps6mO1SrO+7TpHa+M/1eCtaXoO0sjCFZmIJh6ogyIZb+++V3KMDNXepu1
5YRbceHRRjq1VGJu2RkpatAvax1z283JX/8aue5Z/DLHhcgw1r7QT+/5DfQcxXhm3bGl
5////p1RUJ5CKwaRC8Bv5JJaVUK7yd7WvpZYN+m6b39b29unD7AyPGyOkwHx6jdre/eL
8w2LFC/SMfDXeirskIcG1/M2WcHP8rH+KcYwNQrzXXG/nSx+l5+Oc2ZrqIwt6kzxh1h1
6o4Q==; darn=gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1772088799; x=1772693599; darn=gnu.org;
h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
:date:message-id:reply-to;
bh=4Ip+eypa2FbE4ivXb03DTR6iR6Mk65E/jmEYDOQqqiQ=;
b=cc1KVmOZXM+/vS9pgd7FI+FB7Az1rJgedftyYXujZ33+2W9T96tOi0Cgi45iZtaJ4d
kk1NAFdV7FDUgVPVY3AEjdjGqzdqHUZTiRYAgbRAqpIbN/M6jLd3KAW45wNEDOaer802
En3yLW5jn1RKpVK/6bl7vFflbmXUzxiYLm4CjFZieW0VYSS6b7YXPVSbTwzgjmcMyCkF
n9HdCFlo3hBtf/5Yjl/PhNcyD/Pld3XeVtQ/GNAt37GASNmkQXuPbLmKrIiK2xfulIIv
s6q0VNo/EKw+YjM0J5c3OaKREAz+YFxZzY7XgpYUOrEPHYupji7ELT4IZqfXgtffKUwH
rYQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1772088799; x=1772693599;
h=to:subject:message-id:date:from:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=4Ip+eypa2FbE4ivXb03DTR6iR6Mk65E/jmEYDOQqqiQ=;
b=PhfilCY5X3YpjY+XNFKnHIMFcoBcKdS85VhEcdRhaeeE1DOxceCe4JdXWcUvXJHM+4
wfHZFj0nKERklQJTSdNhFcEwPhpibTE2Uwtmjx+/ou1SOj6YTrVJfekc7BYZuiN7+IOk
2/FX1NnKWm0EEkeq0j6kW0qqYsRNo85Q1R+n68qRLTb2XHdBpg0kEjTVvyff+aBD0HUg
nsgz80ztKV/HsSVVQnDXJ96DsO/8TTghvckhJrohbKWbROY0xsfjzMIHyBdVobNcv55N
wNjYxx2UpulRu3S3zqntg9F0r2MQDmOx4S30HWw4FBwmAXeDiLaOtHoTddJTJeU8RdJ1
rBLQ==
X-Gm-Message-State: AOJu0Yy8qILabOwtOXgSMDDaXa8M+0ejh5+HcvNYcl5HsOrdYoqZ8EPy
qFvLOdD/iq5voGtyWa1PlM+P99wOmdAPD97MlqspZx3je8+b/B5lf+Y7s7arDaT3/31/+9WGYiC
+dxy7V4M8qQovb9TxQHtwrZ+qRC0yQ8ikxMjgl8A=
X-Gm-Gg: ATEYQzxfky9EsL4Sbn6aUhyvype0aggpnQluYqHo+rP8dj562sc3nhh8sJ6Q9vnggtV
GmH4TTvoopG08Dd0UabSCWISguYZsUs0MoAXFv5HkM3ilfqVqjhgx7k3yDRQjAwv38fUVSb3VhF
VMy3Yd55SN3hye1JeBQ/xi30OG6S4e+dPqEpCjVS9PpCsdk+7N+BgurnaDoIj8iSjm3KGFO6PKZ
OF/Ux0Hg4Jl6CDp9yZNYNfzKeLK7Axt78TSc/2nDZVLQANQPnKzgG8V+KNBREVH60yCvzMtRbZj
GPyZI2HuE/YP43xhDQ==
X-Received: by 2002:a17:907:74b:b0:b93:4763:2bda with SMTP id
a640c23a62f3a-b9351667526mr190165966b.23.1772088799160; Wed, 25 Feb 2026
22:53:19 -0800 (PST)
MIME-Version: 1.0
From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
Date: Thu, 26 Feb 2026 07:52:53 +0100
X-Gm-Features: AaiRm51k-Yl6cIV284STGAou3Dhyy95Lo1RZoJXF_iUf24rciFjfvalXO7qsGFY
Message-ID: <CAO48Bk-vQESn1W5XofmJRMoNdRWN4wSzF5qkOxNOCwN8k-naew@HIDDEN>
Subject: 31.0.50; Strange behaviour of skeletons
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000626dc8064bb49371"
Received-SPF: pass client-ip=2a00:1450:4864:20::52f;
envelope-from=paaguti@HIDDEN; helo=mail-ed1-x52f.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: This is a full transcript of my test in the *scratch* buffer:
----- Evaluate: (define-skeleton test "A test skeleton" "What?" "\\textcolor{"
str "}{" _ "}") t
Content analysis details: (2.0 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (paaguti[at]gmail.com)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
0.0 HTML_MESSAGE BODY: HTML included in message
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)
--000000000000626dc8064bb49371
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
This is a full transcript of my test in the *scratch* buffer:
-----
Evaluate:
(define-skeleton test
"A test skeleton"
"What?"
"\\textcolor{" str "}{" _ "}")
t
Without region selected (i.e. M-x test):
\textcolor{red}{}
With a region:
I have the line
pepe is wrong in this
Go to the 'w' in wrong and mark, moving the cursor 'g',
leaving it at the end of the region:
pepe is \textcolor{red}{wrong}
in this
I copy the line again, move to the 'g' in wrong and mark,
moving the cursor to the 'w' and leaving it
at the beginning of the region:
pepe is \textcolor{blue}{wrong}
in this
Finding:
When there is a region active, the skeleton wraps correctly around it
but an additional new line is inserted at the end of the skeleton.
What I would expect:
Since I have not indicated I want a newline inserted, I would expect
no newline to be inserted when the region is active, i.e. the same
behaviour as without region selected.
-----
In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.41, cairo version 1.18.0) of 2026-02-24 built on 54fb0aa3e568
Repository revision: a84530ac2ed7b5c045176979002e635c9bdd462b
Repository branch: master
System Description: Ubuntu 24.04.4 LTS
Configured using:
'configure --prefix=3D/usr --program-suffix=3D31 --with-compress-install
--with-modules=3Dyes --with-threads --with-included-regex --with-zlib
--with-dbus --without-x --with-x-toolkit=3Dgtk3 --with-cairo --with-pgtk
--with-native-compilation=3Daot 'CFLAGS=3D-g -O2 -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer
-ffile-prefix-map=3D/home/ubuntu/emacs=3D. -flto=3Dauto -ffat-lto-objects
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=3Dformat-security -fcf-protection
-fdebug-prefix-map=3D/home/ubuntu/emacs=3D/usr/src/emacs31-20260224-1'
'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D3'
'LDFLAGS=3D-Wl,-Bsymbolic-functions -flto=3Dauto -ffat-lto-objects
-Wl,-z,relro''
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBOTF
LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP
SOUND THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM GTK3 ZLIB
Important settings:
value of $LC_MONETARY: es_ES.UTF-8
value of $LC_NUMERIC: es_ES.UTF-8
value of $LC_TIME: es_ES.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=3Dibus
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-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
minibuffer-nonselected-mode: t
minibuffer-regexp-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mailabbrev
gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils skeleton compile
text-property-search comint ansi-osc ansi-color ring comp-run bytecomp
byte-compile comp-common rx time-date subr-x mule-util cl-loaddefs
cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win
pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk pgtk
multi-tty move-toolbar make-network-process tty-child-frames
native-compile emacs)
Memory information:
((conses 16 67031 9250) (symbols 48 6872 0) (strings 32 17117 1142)
(string-bytes 1 616275) (vectors 16 10513)
(vector-slots 8 149383 10075) (floats 8 53 38) (intervals 56 573 15)
(buffers 984 12))
--=20
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
"Sagen's Paradeiser" (ORF: Als Radioh=C3=B6ren gef=C3=A4hrlich war) =3D> wr=
ite BE!
Year 2 of the New Koprocracy
--000000000000626dc8064bb49371
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>This is a full transcript of my test in the *scratch*=
buffer:</div><div><br>-----<br>Evaluate:<br><br>(define-skeleton test<br>=
=C2=A0 "A test skeleton"<br>=C2=A0 "What?"<br>=C2=A0 &q=
uot;\\textcolor{" str "}{" _ "}")<br>t<br><br>With=
out region selected (i.e. M-x test):<br><br>\textcolor{red}{}<br><br>With a=
region:<br><br>I have the line<br><br>pepe is wrong in this<br><br>Go to t=
he 'w' in wrong and mark, moving the cursor 'g',<br>leaving=
it at the end of the region:<br><br>pepe is \textcolor{red}{wrong}<br>in t=
his<br><br>I<span class=3D"gmail_default" style=3D"font-family:monospace"> =
copy the line again,</span>=C2=A0move to the 'g' in wrong and mark,=
<br>moving the cursor to the 'w' and leaving it<br>at the beginning=
of the region:<br><br>pepe is \textcolor{blue}{wrong}<br>in this<br><br>Fi=
nding:<br><br>When there is a region active, the skeleton wraps correctly a=
round it<br>but an additional new line is inserted at the end of the skelet=
on.<br><br>What I would expect:<br><br>Since I have not indicated I want a =
newline inserted, I would expect<br>no newline to be inserted when the regi=
on is active, i.e. the same<br>behaviour as without region selected.<br>---=
--<br><br><br>In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Vers=
ion<br>=C2=A03.24.41, cairo version 1.18.0) of 2026-02-24 built on 54fb0aa3=
e568<br>Repository revision: a84530ac2ed7b5c045176979002e635c9bdd462b<br>Re=
pository branch: master<br>System Description: Ubuntu 24.04.4 LTS<br><br>Co=
nfigured using:<br>=C2=A0'configure --prefix=3D/usr --program-suffix=3D=
31 --with-compress-install<br>=C2=A0--with-modules=3Dyes --with-threads --w=
ith-included-regex --with-zlib<br>=C2=A0--with-dbus --without-x --with-x-to=
olkit=3Dgtk3 --with-cairo --with-pgtk<br>=C2=A0--with-native-compilation=3D=
aot 'CFLAGS=3D-g -O2 -fno-omit-frame-pointer<br>=C2=A0-mno-omit-leaf-fr=
ame-pointer<br>=C2=A0-ffile-prefix-map=3D/home/ubuntu/emacs=3D. -flto=3Daut=
o -ffat-lto-objects<br>=C2=A0-fstack-protector-strong -fstack-clash-protect=
ion -Wformat<br>=C2=A0-Werror=3Dformat-security -fcf-protection<br>=C2=A0-f=
debug-prefix-map=3D/home/ubuntu/emacs=3D/usr/src/emacs31-20260224-1'<br=
>=C2=A0'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D3'<br>=C2=A0'=
;LDFLAGS=3D-Wl,-Bsymbolic-functions -flto=3Dauto -ffat-lto-objects<br>=C2=
=A0-Wl,-z,relro''<br><br>Configured features:<br>CAIRO DBUS FREETYP=
E GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBOTF<br>LIBXML2 MODULES NAT=
IVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP<br>SOUND THREADS TIFF=
TOOLKIT_SCROLL_BARS WEBP XIM GTK3 ZLIB<br><br>Important settings:<br>=C2=
=A0 value of $LC_MONETARY: es_ES.UTF-8<br>=C2=A0 value of $LC_NUMERIC: es_E=
S.UTF-8<br>=C2=A0 value of $LC_TIME: es_ES.UTF-8<br>=C2=A0 value of $LANG: =
en_US.UTF-8<br>=C2=A0 value of $XMODIFIERS: @im=3Dibus<br>=C2=A0 locale-cod=
ing-system: utf-8-unix<br><br>Major mode: Lisp Interaction<br><br>Minor mod=
es in effect:<br>=C2=A0 tooltip-mode: t<br>=C2=A0 global-eldoc-mode: t<br>=
=C2=A0 eldoc-mode: t<br>=C2=A0 show-paren-mode: t<br>=C2=A0 electric-indent=
-mode: t<br>=C2=A0 mouse-wheel-mode: t<br>=C2=A0 tool-bar-mode: t<br>=C2=A0=
menu-bar-mode: t<br>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-font-=
lock-mode: t<br>=C2=A0 font-lock-mode: t<br>=C2=A0 blink-cursor-mode: t<br>=
=C2=A0 minibuffer-nonselected-mode: t<br>=C2=A0 minibuffer-regexp-mode: t<b=
r>=C2=A0 line-number-mode: t<br>=C2=A0 indent-tabs-mode: t<br>=C2=A0 transi=
ent-mark-mode: t<br>=C2=A0 auto-composition-mode: t<br>=C2=A0 auto-encrypti=
on-mode: t<br>=C2=A0 auto-compression-mode: t<br><br>Load-path shadows:<br>=
None found.<br><br>Features:<br>(shadow sort mail-extr emacsbug lisp-mnt me=
ssage mailcap yank-media puny<br>dired dired-loaddefs rfc822 mml mml-sec pa=
ssword-cache epa derived epg<br>rfc6068 epg-config gnus-util mm-decode mm-b=
odies mm-encode mailabbrev<br>gmm-utils mailheader sendmail mail-parse rfc2=
231 rfc2047 rfc2045<br>ietf-drums mm-util mail-prsvr mail-utils skeleton co=
mpile<br>text-property-search comint ansi-osc ansi-color ring comp-run byte=
comp<br>byte-compile comp-common rx time-date subr-x mule-util cl-loaddefs<=
br>cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify<br>edi=
ff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win<br>pgtk-wi=
n term/common-win touch-screen pgtk-dnd tool-bar dnd fontset<br>image regex=
p-opt fringe tabulated-list replace newcomment text-mode<br>lisp-mode prog-=
mode register page tab-bar menu-bar rfn-eshadow isearch<br>easymenu timer s=
elect scroll-bar mouse jit-lock font-lock syntax<br>font-core term/tty-colo=
rs frame minibuffer nadvice seq simple cl-generic<br>indonesian philippine =
cham georgian utf-8-lang misc-lang vietnamese<br>tibetan thai tai-viet lao =
korean japanese eucjp-ms cp51932 hebrew greek<br>romanian slovak czech euro=
pean ethiopic indian cyrillic chinese<br>composite emoji-zwj charscript cha=
rprop case-table epa-hook<br>jka-cmpr-hook help abbrev obarray oclosure cl-=
preloaded button loaddefs<br>theme-loaddefs faces cus-face macroexp files w=
indow text-properties<br>overlay sha1 md5 base64 format env code-pages mule=
custom widget keymap<br>hashtable-print-readable backquote threads dbusbin=
d inotify<br>dynamic-setting system-font-setting font-render-setting cairo =
gtk pgtk<br>multi-tty move-toolbar make-network-process tty-child-frames<br=
>native-compile emacs)<br><br>Memory information:<br>((conses 16 67031 9250=
) (symbols 48 6872 0) (strings 32 17117 1142)<br>=C2=A0(string-bytes 1 6162=
75) (vectors 16 10513)<br>=C2=A0(vector-slots 8 149383 10075) (floats 8 53 =
38) (intervals 56 573 15)<br>=C2=A0(buffers 984 12))<br><br></div><span cla=
ss=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail=
_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div d=
ir=3D"ltr"><div><div>Fragen sind nicht da, um beantwortet zu werden,<br></d=
iv>Fragen sind da um gestellt zu werden<br></div>Georg Kreisler</div><div><=
br></div><div>"Sagen's Paradeiser" (ORF: Als Radioh=C3=B6ren =
gef=C3=A4hrlich war) =3D> write BE!</div><div>Year 2 of the New Koprocra=
cy</div><div><br></div></div></div></div></div>
--000000000000626dc8064bb49371--
Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#80492; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.