From unknown Mon Jun 23 18:32:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29056: 26.0.60; css completion always inserts ": ;" Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Oct 2017 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29056@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15092985316260 (code B ref -1); Sun, 29 Oct 2017 17:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2017 17:35:31 +0000 Received: from localhost ([127.0.0.1]:40831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rUg-0001ct-HR for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rUe-0001cg-HH for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8rUX-0000iE-LT for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8rUX-0000i9-IJ for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8rUV-0000M2-DR for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 13:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8rUQ-0000fX-A8 for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 13:35:19 -0400 Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:35932) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8rUP-0000U8-Uq for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 13:35:14 -0400 Received: from cmgw3 (unknown [10.0.90.84]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id 466F11E09E2 for ; Sun, 29 Oct 2017 11:34:58 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id TVat1w00S2f2jeq01Vaw6N; Sun, 29 Oct 2017 11:34:58 -0600 X-Authority-Analysis: v=2.2 cv=H76r+6Qi c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=02M-m0pO-4AA:10 a=kukYCFaz_cbA3Pxab84A:9 a=X2LzD3uw_YuCrqzM:21 a=qr_G8Pxvj7sWUf48:21 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pidg+x5ObWpi0HFgJCw/I0voYRBBYHmMnMjtCDU8Fhw=; b=Wtl23hW+bc9W64aeEQS37Gj80C G3L4FK/duv4iFpOkmtFKJafeI0FELhSZe+YQukqovvI+JLJTczZCLOJ/VHovW7l9Yk/cn/ruLQYPa zKsJov7TLwdQAfiOllSvcJIKC; Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:33942 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1e8rU5-0047GZ-D6; Sun, 29 Oct 2017 11:34:53 -0600 From: Tom Tromey X-Attribution: Tom Date: Sun, 29 Oct 2017 11:34:51 -0600 Message-ID: <87h8uhrh6s.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.218.90.63 X-Exim-ID: 1e8rU5-0047GZ-D6 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-218-90-63.hlrn.qwest.net (bapiya) [71.218.90.63]:33942 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Open a new .css file and insert: p { background-col: seagreen; } Move point to the ":" and complete using C-M-i. I get: background-color: ;: seagreen; css-completion-at-point has this at the end: (progn (insert ": ;") (forward-char -1)))))))))) This is convenient when writing a new property, but not convenient when editing an existing one and trying to complete. Perhaps this code could instead examine the context to see if the insertion is needed. Or, it could just never do this, which would seem to be more correct -- it seems strange for a completion function to modify the buffer. Tom In GNU Emacs 26.0.60 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-10-07 built on bapiya Repository revision: 0fa353b50476329531307905f23ed2b172a6e9fc Windowing system distributor 'Fedora Project', version 11.0.11903000 System Description: Fedora release 26 (Twenty Six) Recent messages: mhtml--css-submode mhtml--js-submode Quit C-h C-g is undefined Undo! C-M-g is undefined Making completion list... [2 times] Undo! Quit Making completion list... Configured using: 'configure --prefix=/home/tromey/Emacs/install --with-modules --with-file-notification=inotify' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: HTML+CSS Minor modes in effect: cursor-sensor-mode: t diff-auto-refine-mode: t flyspell-mode: t which-function-mode: t shell-dirtrack-mode: t erc-services-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-match-mode: t erc-netsplit-mode: t erc-hl-nicks-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/26.0.60/lisp/play/bubbles Features: (company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company cursor-sensor mhtml-mode css-mode eww js json sgml-mode time-stamp autoconf autoconf-mode sh-script smie executable finder lisp-mnt tcl dired-aux gud pcmpl-unix pcmpl-gnu whitespace descr-text url-http url-gw url-auth texinfo gnus-fun calc calc-loaddefs calc-macs vc-annotate shadow emacsbug cc-awk mode-local completion erc-replace delsel rect cl-print debug cus-edit gdb-shell novice log-edit make-mode org-bullets org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs jka-compr flow-fill gnus-html url-queue help-fns radix-tree url-cache mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util supercite regi nnir shr-color shr svg xml dom browse-url goto-addr find-file pulse etags xref project find-dired mail-hist ffap copyright perl-mode vc-mtn vc-hg conf-mode tabify man dabbrev term/xterm xterm bug-reference map cc-mode cc-fonts cc-guess cc-menus cc-cmds smerge-mode log-view pcvs-util vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log vc-git diff-mode rust-mode misc mailalias sort smiley gnus-cite mm-archive gnus-async gnus-bcklg mail-extr gnus-ml disp-table misearch multi-isearch gnus-topic nndraft nnmh nnfolder utf-7 network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-registry registry ebdb-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo smtpmail gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader elec-pair flyspell ispell diminish projectile ibuf-macs grep compile ibuf-ext ibuffer ibuffer-loaddefs dash appt diary-lib diary-loaddefs which-func imenu tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell parse-time minimap autorevert filenotify cus-start cus-load status erc-services erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete pcomplete erc-track erc-match erc-netsplit erc-hl-nicks easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend erc-compat thingatpt pp warnings advice vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine cc-vars cc-defs ebdb-complete ebdb-message sendmail message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mail-utils gmm-utils mailheader ebdb-mua ebdb-com derived edmacro kmacro crm mailabbrev ebdb-format qp ebdb cl-extra help-mode eieio-opt speedbar sb-image ezimage dframe find-func eieio-base pcase subr-x cal-menu calendar cal-loaddefs timezone ange-ftp comint ansi-color ring server savehist finder-inf dwarf-mode-autoloads gdb-shell-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info cl weblogger-autoloads package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 4157996 438203) (symbols 48 95870 12) (miscs 40 52304 22948) (strings 32 716947 49280) (string-bytes 1 22725061) (vectors 16 287043) (vector-slots 8 5066208 291846) (floats 8 586 1449) (intervals 56 563434 6196) (buffers 992 543)) From unknown Mon Jun 23 18:32:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29056: 26.0.60; css completion always inserts ": ;" Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Oct 2017 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29056 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tom Tromey Cc: 29056@debbugs.gnu.org Received: via spool by 29056-submit@debbugs.gnu.org id=B29056.15092998398189 (code B ref 29056); Sun, 29 Oct 2017 17:58:01 +0000 Received: (at 29056) by debbugs.gnu.org; 29 Oct 2017 17:57:19 +0000 Received: from localhost ([127.0.0.1]:40842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rpn-000281-4S for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:57:19 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:46839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rpm-00027p-0a for 29056@debbugs.gnu.org; Sun, 29 Oct 2017 13:57:18 -0400 Received: by mail-lf0-f46.google.com with SMTP id g70so12393999lfl.3 for <29056@debbugs.gnu.org>; Sun, 29 Oct 2017 10:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=arxc7h4M8P1CYZ1+k51l9pTO2eVJDrVearaUzYuqIXo=; b=UU1sGQOXwsa97lGlybaAE3uT42Mb3fM4mNFqGmoxHwKmPBawjNseQ1anUsvaNUyopv zbeU0V8kHxzNULa2O3Rvy9tOmJKy2zkO6S6vGpAFqStxlwSyNeTJe+uYAxD1KbDYyDvz cL2Anwu4GdAeBNDXq2o9wEU7P0bT6lcQDeaiwPuxC5CHR/SqyB/e/SeYz2UkDT7o9a+6 5NHVSRPonGpf2kqRO7MjcU052C6pIOalETnZAFikI42F6zHFhz+R1Vjk8urxcBh2HYzJ XPWE5GW+q5/WLpoBoci49FylFI88OkEcg699yxSUqHjVwVyUfuy9bZOx/Od7R+5bb2hI ETAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=arxc7h4M8P1CYZ1+k51l9pTO2eVJDrVearaUzYuqIXo=; b=ESAmzqMcxNyULI9pn1wdf6jrIW0JcRbEZd9SqtynrMOc9PHb629fg5agDQjGHvOK3/ Bka/gQdTwPlWUTvexwSeWP2NSI8qaLxjZZ3TEbW1RfkocK79UJOsLSRoFxLwv1FRy+o9 8FG7Fi2LW0cVt31zfXJvHzDyM0eQ790g7UZWLxxcRFVCyJ0LtIxWNiozO0xnrucl6PWj B+lPIVEIz9rZjQi8CeJdT4gCGjqz4GsEhUUa/0I10lmy8sYaYTkoRYptT/LDmsiVI/o7 MnCTv28v8Z7XCouIBUUKO4rYPS0GDbxTeeopRplKWyiMYrlJagCm1xDItY1cOKmn+Nzv AkBw== X-Gm-Message-State: AMCzsaUbLPCznam1cqjVq27TakDax9Sm2tJQnoinwv5QOwX73b9WNbBv b0aScICLYnvnr4rknsCs88Rj3Q== X-Google-Smtp-Source: ABhQp+TCyj5CT4NffxkNs7pY0pFAaqVzaSrYmeh7uip2oOAFgD4rV73RYl5sJsX01eh8U9BQ3v84Vw== X-Received: by 10.25.125.67 with SMTP id y64mr2049463lfc.44.1509299831732; Sun, 29 Oct 2017 10:57:11 -0700 (PDT) Received: from [192.168.100.3] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id l9sm2321701lfk.63.2017.10.29.10.57.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Oct 2017 10:57:10 -0700 (PDT) Date: Sun, 29 Oct 2017 18:57:00 +0100 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Message-Id: <1509299820.9453.0@smtp.gmail.com> In-Reply-To: <87h8uhrh6s.fsf@tromey.com> References: <87h8uhrh6s.fsf@tromey.com> X-Mailer: geary/0.12-dev MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-bEX4VUhW9kGS6DiDssHH" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-bEX4VUhW9kGS6DiDssHH Content-Type: text/plain; charset=us-ascii; format=flowed Thanks for reporting, Tom. Doing something like `(eq (point) (save-excursion (end-of-line) (point)))` before the `progn` seems sufficient to fix the case you mention. Like you, I also find the functionality convenient, but maybe we should make it possible to turn it off by adding a user option for it (leaving it on by default)? -- Simen --=-bEX4VUhW9kGS6DiDssHH Content-Type: text/html; charset=us-ascii
Thanks for reporting, Tom.

Doing something like
`(eq (point) (save-excursion (end-of-line) (point)))` before the
`progn` seems sufficient to fix the case you mention.

Like you, I also find the functionality convenient, but maybe we
should make it possible to turn it off by adding a user option for it
(leaving it on by default)?

-- Simen
--=-bEX4VUhW9kGS6DiDssHH-- From unknown Mon Jun 23 18:32:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tom Tromey Subject: bug#29056: closed (Re: bug#29056: 26.0.60; css completion always inserts ": ;") Message-ID: References: <1509651737.2492.0@smtp.gmail.com> <87h8uhrh6s.fsf@tromey.com> X-Gnu-PR-Message: they-closed 29056 X-Gnu-PR-Package: emacs Reply-To: 29056@debbugs.gnu.org Date: Thu, 02 Nov 2017 19:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1509651782-23076-1" This is a multi-part message in MIME format... ------------=_1509651782-23076-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #29056: 26.0.60; css completion always inserts ": ;" which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 29056@debbugs.gnu.org. --=20 29056: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29056 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1509651782-23076-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 29056-done) by debbugs.gnu.org; 2 Nov 2017 19:42:28 +0000 Received: from localhost ([127.0.0.1]:48288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eALNj-0005zQ-EC for submit@debbugs.gnu.org; Thu, 02 Nov 2017 15:42:28 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:51546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eALNi-0005zD-1E for 29056-done@debbugs.gnu.org; Thu, 02 Nov 2017 15:42:26 -0400 Received: by mail-lf0-f42.google.com with SMTP id r129so704803lff.8 for <29056-done@debbugs.gnu.org>; Thu, 02 Nov 2017 12:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=VjuGrQFGw+DKLgOqj58W136Gp0K4SS5Sv+F+saA/3Ac=; b=F5GlEMa+ILJh0h8wo4LIszwmFSQTtyXrSLuExeucEqlHKYZpJ/4j7EvaEpf5FDaM2w H/Udw5/n1cinByQHvFHtCHw9H27MrJpKajaFNeGwg3e5Ve+882NHDZaZR5GBexLMkPlB bc2+m+/+S22DeElLPMGmFZJ+aY3gm3BPPzX1iVlHsguof6GL4TD6m+8OEiM92G3W/Ntz dH+BeP3BMvADPsHowGfsOWiw1lsEkRSvzP8iKbEPBu9xcz1Sm9Cg9IwfoUNmgJIhJo4L 8YICTSuliHHXLEGSbgqwAUhy0U2C0cs+elMpev6WD/2iOC0mSbE2fGFc6CGKBGP2bl7i K/gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=VjuGrQFGw+DKLgOqj58W136Gp0K4SS5Sv+F+saA/3Ac=; b=aJ2wuOk9T8vTpT52VK9pXnsnlz6JsolNha8HypNhIEjIprnO8t7r2+Z7r8/JK6Irnz LJNdBUdTc0F/iiSUQxkXJpwKCgCflhBPkWxmBPhiQeopMTsMLqttqnhoArjNjESKGZN6 Mgutnv1wPO1zqsJ6akwAKWJr7Fgwpz924ddeC3o0n7HmqDiW25v7cYj6I+oWWOfCF7gN Oai41tohT4oHrGbAGP107bX7w1bXZTfbjdwgaazPPXx2u/JLzqCd8/30ywTfqNYHNIZD rmTLp3iwJow9+h7yHhxJ80KvnFHpRjl+d7/MPzqbuSUoEOLsg6JGqmtnhFswEx0ONmso I+gg== X-Gm-Message-State: AJaThX59ExBv/cKFfw19FBiqff5oLspDR4T5vGN0r0uySozjUKG5PYEX rdqIuYObHEwuDN0TWm7J/gEwMQ== X-Google-Smtp-Source: ABhQp+S+gydw+ed8mlL5tXQrUWSTpRWDWOs2M8sLKNlhHnLHeBvDO3DTKOM/dRzYPqkEjS8wHhWXlQ== X-Received: by 10.25.109.19 with SMTP id i19mr1882152lfc.75.1509651740070; Thu, 02 Nov 2017 12:42:20 -0700 (PDT) Received: from [192.168.100.3] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id g78sm697819lfi.23.2017.11.02.12.42.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Nov 2017 12:42:18 -0700 (PDT) Date: Thu, 02 Nov 2017 20:42:17 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: Re: bug#29056: 26.0.60; css completion always inserts ": ;" To: Tom Tromey Message-Id: <1509651737.2492.0@smtp.gmail.com> In-Reply-To: <1509299820.9453.0@smtp.gmail.com> References: <87h8uhrh6s.fsf@tromey.com> <1509299820.9453.0@smtp.gmail.com> X-Mailer: geary/0.12-dev MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-kT2ArxiWvnDkKBx5Kd36" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29056-done Cc: 29056-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-kT2ArxiWvnDkKBx5Kd36 Content-Type: text/plain; charset=us-ascii; format=flowed I've installed a similar patch that should fix the case you mention. -- Simen --=-kT2ArxiWvnDkKBx5Kd36 Content-Type: text/html; charset=us-ascii
I've installed a similar patch that should fix the case you mention.

-- Simen
--=-kT2ArxiWvnDkKBx5Kd36-- ------------=_1509651782-23076-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Oct 2017 17:35:31 +0000 Received: from localhost ([127.0.0.1]:40831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rUg-0001ct-HR for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rUe-0001cg-HH for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8rUX-0000iE-LT for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8rUX-0000i9-IJ for submit@debbugs.gnu.org; Sun, 29 Oct 2017 13:35:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8rUV-0000M2-DR for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 13:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8rUQ-0000fX-A8 for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 13:35:19 -0400 Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:35932) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8rUP-0000U8-Uq for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2017 13:35:14 -0400 Received: from cmgw3 (unknown [10.0.90.84]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id 466F11E09E2 for ; Sun, 29 Oct 2017 11:34:58 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id TVat1w00S2f2jeq01Vaw6N; Sun, 29 Oct 2017 11:34:58 -0600 X-Authority-Analysis: v=2.2 cv=H76r+6Qi c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=02M-m0pO-4AA:10 a=kukYCFaz_cbA3Pxab84A:9 a=X2LzD3uw_YuCrqzM:21 a=qr_G8Pxvj7sWUf48:21 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pidg+x5ObWpi0HFgJCw/I0voYRBBYHmMnMjtCDU8Fhw=; b=Wtl23hW+bc9W64aeEQS37Gj80C G3L4FK/duv4iFpOkmtFKJafeI0FELhSZe+YQukqovvI+JLJTczZCLOJ/VHovW7l9Yk/cn/ruLQYPa zKsJov7TLwdQAfiOllSvcJIKC; Received: from 71-218-90-63.hlrn.qwest.net ([71.218.90.63]:33942 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1e8rU5-0047GZ-D6; Sun, 29 Oct 2017 11:34:53 -0600 From: Tom Tromey To: bug-gnu-emacs@gnu.org Subject: 26.0.60; css completion always inserts ": ;" X-Attribution: Tom Date: Sun, 29 Oct 2017 11:34:51 -0600 Message-ID: <87h8uhrh6s.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.218.90.63 X-Exim-ID: 1e8rU5-0047GZ-D6 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-218-90-63.hlrn.qwest.net (bapiya) [71.218.90.63]:33942 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) Open a new .css file and insert: p { background-col: seagreen; } Move point to the ":" and complete using C-M-i. I get: background-color: ;: seagreen; css-completion-at-point has this at the end: (progn (insert ": ;") (forward-char -1)))))))))) This is convenient when writing a new property, but not convenient when editing an existing one and trying to complete. Perhaps this code could instead examine the context to see if the insertion is needed. Or, it could just never do this, which would seem to be more correct -- it seems strange for a completion function to modify the buffer. Tom In GNU Emacs 26.0.60 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-10-07 built on bapiya Repository revision: 0fa353b50476329531307905f23ed2b172a6e9fc Windowing system distributor 'Fedora Project', version 11.0.11903000 System Description: Fedora release 26 (Twenty Six) Recent messages: mhtml--css-submode mhtml--js-submode Quit C-h C-g is undefined Undo! C-M-g is undefined Making completion list... [2 times] Undo! Quit Making completion list... Configured using: 'configure --prefix=/home/tromey/Emacs/install --with-modules --with-file-notification=inotify' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: HTML+CSS Minor modes in effect: cursor-sensor-mode: t diff-auto-refine-mode: t flyspell-mode: t which-function-mode: t shell-dirtrack-mode: t erc-services-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-match-mode: t erc-netsplit-mode: t erc-hl-nicks-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/26.0.60/lisp/play/bubbles Features: (company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company cursor-sensor mhtml-mode css-mode eww js json sgml-mode time-stamp autoconf autoconf-mode sh-script smie executable finder lisp-mnt tcl dired-aux gud pcmpl-unix pcmpl-gnu whitespace descr-text url-http url-gw url-auth texinfo gnus-fun calc calc-loaddefs calc-macs vc-annotate shadow emacsbug cc-awk mode-local completion erc-replace delsel rect cl-print debug cus-edit gdb-shell novice log-edit make-mode org-bullets org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs jka-compr flow-fill gnus-html url-queue help-fns radix-tree url-cache mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util supercite regi nnir shr-color shr svg xml dom browse-url goto-addr find-file pulse etags xref project find-dired mail-hist ffap copyright perl-mode vc-mtn vc-hg conf-mode tabify man dabbrev term/xterm xterm bug-reference map cc-mode cc-fonts cc-guess cc-menus cc-cmds smerge-mode log-view pcvs-util vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log vc-git diff-mode rust-mode misc mailalias sort smiley gnus-cite mm-archive gnus-async gnus-bcklg mail-extr gnus-ml disp-table misearch multi-isearch gnus-topic nndraft nnmh nnfolder utf-7 network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache gnus-registry registry ebdb-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo smtpmail gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader elec-pair flyspell ispell diminish projectile ibuf-macs grep compile ibuf-ext ibuffer ibuffer-loaddefs dash appt diary-lib diary-loaddefs which-func imenu tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell parse-time minimap autorevert filenotify cus-start cus-load status erc-services erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete pcomplete erc-track erc-match erc-netsplit erc-hl-nicks easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend erc-compat thingatpt pp warnings advice vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine cc-vars cc-defs ebdb-complete ebdb-message sendmail message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mail-utils gmm-utils mailheader ebdb-mua ebdb-com derived edmacro kmacro crm mailabbrev ebdb-format qp ebdb cl-extra help-mode eieio-opt speedbar sb-image ezimage dframe find-func eieio-base pcase subr-x cal-menu calendar cal-loaddefs timezone ange-ftp comint ansi-color ring server savehist finder-inf dwarf-mode-autoloads gdb-shell-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info cl weblogger-autoloads package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 4157996 438203) (symbols 48 95870 12) (miscs 40 52304 22948) (strings 32 716947 49280) (string-bytes 1 22725061) (vectors 16 287043) (vector-slots 8 5066208 291846) (floats 8 586 1449) (intervals 56 563434 6196) (buffers 992 543)) ------------=_1509651782-23076-1--