From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 269d563: Support completion of attribute values in CSS mode Date: Sat, 26 Mar 2016 09:52:09 -0400 Message-ID: References: <20160323180952.31942.96525@vcs.savannah.gnu.org> <1458828752.7618.0@smtp.gmail.com> <4360929d-b0eb-bdb7-9a29-686aba681995@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459000362 6385 80.91.229.3 (26 Mar 2016 13:52:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2016 13:52:42 +0000 (UTC) Cc: Simen =?windows-1252?Q?Heggest=F8yl?= , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 26 14:52:33 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ajodi-0007vd-LB for ged-emacs-devel@m.gmane.org; Sat, 26 Mar 2016 14:52:30 +0100 Original-Received: from localhost ([::1]:60368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajodh-0000wg-KA for ged-emacs-devel@m.gmane.org; Sat, 26 Mar 2016 09:52:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajodU-0000wW-5L for emacs-devel@gnu.org; Sat, 26 Mar 2016 09:52:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajodQ-0000DQ-Va for emacs-devel@gnu.org; Sat, 26 Mar 2016 09:52:16 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajodQ-0000DK-RA for emacs-devel@gnu.org; Sat, 26 Mar 2016 09:52:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AyFgA731xV/5a2xEVcgxCEAoVVu0CHSwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQYBAQEBHos6hC1YB4QtBYUJlluXW4FFI2GBWoFZIoE1gUMBAQE X-IPAS-Result: A0AyFgA731xV/5a2xEVcgxCEAoVVu0CHSwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQYBAQEBHos6hC1YB4QtBYUJlluXW4FFI2GBWoFZIoE1gUMBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="199424849" Original-Received: from 69-196-182-150.dsl.teksavvy.com (HELO pastel.home) ([69.196.182.150]) by ironport2-out.teksavvy.com with ESMTP; 26 Mar 2016 09:52:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 555A263F76; Sat, 26 Mar 2016 09:52:09 -0400 (EDT) In-Reply-To: <4360929d-b0eb-bdb7-9a29-686aba681995@yandex.ru> (Dmitry Gutov's message of "Sat, 26 Mar 2016 15:23:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202257 Archived-At: >> BTW, even better (for me) would be to make the completion pay attention >> to existing html buffers, so you can limit the completion to those tags >> actually relevant (and you can additionally provide completion of >> user-chosen classes). > IMHO, it's not out of the question for the user to write some portion > of the CSS file before they write the HTML. Or they might just opt > not to visit any HTML files yet in the current session. Of course. And the HTML code may not be held in an html-mode buffer anyway (e.g. for my BuGit website, all the HTML templates are kept directly in the sh script itself). > Since the whole list of HTML tags is known, it's better to offer > them all. When we don't have any html-mode buffer at hand, that's obviously the better choice, yes. When we do have html-mode buffers around, both choices make sense, depending on the situation. Maybe it's better not to try to be clever about it, I don't know. Stefan