From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: nitish chandra Newsgroups: gmane.emacs.bugs Subject: bug#25229: 25.1; newline inserted at end of html-href-anchor Date: Mon, 19 Dec 2016 20:48:00 +0530 Message-ID: References: <3E7D43F4-D020-4A20-AC0F-036677DBA4AF@pushface.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c06cdea1468180544046e65 X-Trace: blaine.gmane.org 1482165679 19645 195.159.176.226 (19 Dec 2016 16:41:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2016 16:41:19 +0000 (UTC) Cc: 25229@debbugs.gnu.org To: Simon Wright Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 19 17:41:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJ0zv-0003ht-C2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2016 17:41:11 +0100 Original-Received: from localhost ([::1]:46594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJ0zz-00043m-Gv for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Dec 2016 11:41:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJ0zq-00041d-9r for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2016 11:41:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJ0zm-00082C-AF for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2016 11:41:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60651) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJ0zm-00081x-6U for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2016 11:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cJ0zm-0005Ti-1E for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2016 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nitish chandra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2016 16:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25229-submit@debbugs.gnu.org id=B25229.148216560920961 (code B ref 25229); Mon, 19 Dec 2016 16:41:01 +0000 Original-Received: (at 25229) by debbugs.gnu.org; 19 Dec 2016 16:40:09 +0000 Original-Received: from localhost ([127.0.0.1]:47812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJ0yu-0005Ry-AI for submit@debbugs.gnu.org; Mon, 19 Dec 2016 11:40:08 -0500 Original-Received: from mail-qk0-f176.google.com ([209.85.220.176]:35300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIzhq-0003HZ-Ei for 25229@debbugs.gnu.org; Mon, 19 Dec 2016 10:18:27 -0500 Original-Received: by mail-qk0-f176.google.com with SMTP id u25so7230716qki.2 for <25229@debbugs.gnu.org>; Mon, 19 Dec 2016 07:18:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZU5APkDUCXbQ/b2p8hrb1RsNw8zn0nILWLHxiFL3aMk=; b=XNDU/SHoWcIw+FapIO+Zs8tw0J2GOcT1Wd6zC2X3SCIPzXsK1F3BBjZAiNBHwVCA+L pdWMpKrAjKCGQZvJy3DKGk5GwJnzD6Ej9nr5/YR26sXAKFaDl3QGhCIYvUyxCqgfgxr+ 5JyEYqrhg1PBs0pPc5FPIUfS1JmMSrEeT2bupk+Ky/xqSiVpYzB0YutQdDwSw0ZZwnqp xaCN6/T1SdZgshAnKMJ1C2HxGm2uXcHBBicmz5vBQSJapG9WbPsoTzaS025HS+AuU0ox pkV5dw3co47cg1/uZAPTwzyw7lUJ3oSOYxyYJhHD5NKAWvJMgit2nbP7u+3VV8EKfNwj 1w0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZU5APkDUCXbQ/b2p8hrb1RsNw8zn0nILWLHxiFL3aMk=; b=k9WOoejyOZsaoUiEZMNrlltpYwdZO9sCF6Egn5sJKqTeg58LPnOg6oI3Iwq5FqMO+E ZLe8Yujtynzh5Rkg5Sk2Fyd774Ns+ho4z3Oi/4dYrR8OMeUfZ19MQ6cUc++cNuywGS47 XwKDZJVt30yTm195FS/GCMfVWDPo2x6XLTshKY5Z52Wyby5UcRzvWl7Hby8/H4H/FFgb kvR9rTHxajtPPJbsbxxv9Q8qmms8YAxhC1OFmP1mZne2YgXknuS2Aj3m/7djS6obXfYE x2ZYMBVR3ZCbdXpGqO+iVnOTok3jRjMpyIHqSLcigbP7m4KKLJEkIWok7IT/qrnVyBVS s95w== X-Gm-Message-State: AIkVDXIGPf/MQz+TMDOTSWzd8m7JDDEXgQtddcmnJ8ipHVxRXiMf7sc7RnvN7pfEh+rx0JcCQD7g9dnvgbZpzA== X-Received: by 10.55.176.131 with SMTP id z125mr3163824qke.286.1482160700939; Mon, 19 Dec 2016 07:18:20 -0800 (PST) Original-Received: by 10.237.40.66 with HTTP; Mon, 19 Dec 2016 07:18:00 -0800 (PST) In-Reply-To: <3E7D43F4-D020-4A20-AC0F-036677DBA4AF@pushface.org> X-Mailman-Approved-At: Mon, 19 Dec 2016 11:40:06 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127191 Archived-At: --94eb2c06cdea1468180544046e65 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This appears to be the default behaviour of all skeletons. AFAIU a newline is inserted after the insertion of the skeleton. To override this behaviour, set skeleton-end-newline to nil. Thanks, Nitish On 19 December 2016 at 17:35, Simon Wright wrote: > From emacs -Q, in the scratch buffer, > > M-x html-mode RET > > enter "foo." > > highlight "foo", point before "." > > M-x html-href-anchor RET > sample RET > > buffer contains > > foo > . > > where it should contain > > foo. > > I believe this is down to the same problem as reported in PR16634. > > In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version > 10.9.5 (Build 13F1911)) > of 2016-09-21 built on builder10-9.porkrind.org > Windowing system distributor 'Apple', version 10.3.1504 > Configured using: > 'configure --with-ns '--enable-locallisppath=3D/Library/Application > Support/Emacs/${version}/site-lisp:/Library/Application > Support/Emacs/site-lisp' --with-modules' > > Configured features: > NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES > > Important settings: > value of $LANG: en_GB.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: HTML > > 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. > user-error: The mark is not set now, so there is no region > Mark set > You can run the command =E2=80=98html-href-anchor=E2=80=99 with C-c C-c h > mwheel-scroll: Beginning of buffer [17 times] > current-kill: Kill ring is empty > read-number: Command attempted to use minibuffer while in minibuffer > > 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 help-fns help-mode easymenu > cl-loaddefs pcase cl-lib mail-prsvr mail-utils skeleton sgml-mode > time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks > lisp-float-type mwheel ns-win ucs-normalize term/common-win 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 kqueue cocoa ns > multi-tty make-network-process emacs) > > Memory information: > ((conses 16 200051 6221) > (symbols 48 19907 0) > (miscs 40 56 148) > (strings 32 16504 5506) > (string-bytes 1 456332) > (vectors 16 33151) > (vector-slots 8 656015 4921) > (floats 8 162 175) > (intervals 56 217 0) > (buffers 976 18)) > > > > --94eb2c06cdea1468180544046e65 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This appears to be the default behaviour of all = skeletons. AFAIU a newline is inserted after the insertion of the skeleton.= To override this behaviour, set skeleton-end-newline to nil.

= Thanks,
Nitish

On 19 December 2016 at 17:35, Simon Wright <simon@pushfa= ce.org> wrote:
From emacs -= Q, in the scratch buffer,

M-x html-mode RET

enter "foo."

highlight "foo", point before "."

M-x html-href-anchor RET
sample RET

buffer contains

<a href=3D"sample">foo</a>
.

where it should contain

<a href=3D"sample">foo</a>.

I believe this is down to the same problem as reported in PR16634.

In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 1= 0.9.5 (Build 13F1911))
of 2016-09-21 built on builder10-9.porkrind.org
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
'configure --with-ns '--enable-locallisppath=3D/Library/Applic= ation
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Important settings:
=C2=A0 value of $LANG: en_GB.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: HTML

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

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
user-error: The mark is not set now, so there is no region
Mark set
You can run the command =E2=80=98html-href-anchor=E2=80=99 with C-c C-c h mwheel-scroll: Beginning of buffer [17 times]
current-kill: Kill ring is empty
read-number: Command attempted to use minibuffer while in minibuffer

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 help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils skeleton sgml-mode
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win ucs-normalize term/common-win 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 kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 200051 6221)
(symbols 48 19907 0)
(miscs 40 56 148)
(strings 32 16504 5506)
(string-bytes 1 456332)
(vectors 16 33151)
(vector-slots 8 656015 4921)
(floats 8 162 175)
(intervals 56 217 0)
(buffers 976 18))




--94eb2c06cdea1468180544046e65--