From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: IDE Date: Sat, 10 Oct 2015 21:11:57 +0200 Message-ID: <87fv1ifshu.fsf@fencepost.gnu.org> References: <5612E996.7090700@yandex.ru> <83bnc7tavr.fsf@gnu.org> <5618C92A.3040207@yandex.ru> <83a8rrt9ag.fsf@gnu.org> <5618D376.1080700@yandex.ru> <831td3t62e.fsf@gnu.org> <5618E51D.4070800@yandex.ru> <83twpzrp05.fsf@gnu.org> <5618ED93.8000001@yandex.ru> <83lhbbrnn7.fsf@gnu.org> <56191EBE.5050404@yandex.ru> <83612essaw.fsf@gnu.org> <877fmuix68.fsf@isaac.fritz.box> <8337xispn2.fsf@gnu.org> <56195055.6010409@gmx.at> <87oag6ftoq.fsf@fencepost.gnu.org> <83pp0mr1f7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444504344 27463 80.91.229.3 (10 Oct 2015 19:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 19:12:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 10 21:12:16 2015 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 1ZkzZ2-000893-Nb for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 21:12:16 +0200 Original-Received: from localhost ([::1]:45930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkzZ2-0002MZ-8G for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 15:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkzYl-0002Li-LS for emacs-devel@gnu.org; Sat, 10 Oct 2015 15:12:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkzYk-0005ik-Nw for emacs-devel@gnu.org; Sat, 10 Oct 2015 15:11:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkzYk-0005ig-L3 for emacs-devel@gnu.org; Sat, 10 Oct 2015 15:11:58 -0400 Original-Received: from localhost ([127.0.0.1]:44452 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZkzYj-0001i0-KY; Sat, 10 Oct 2015 15:11:58 -0400 Original-Received: by lola (Postfix, from userid 1000) id 0FDDAE18A7; Sat, 10 Oct 2015 21:11:57 +0200 (CEST) In-Reply-To: <83pp0mr1f7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Oct 2015 22:03:40 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:191168 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Date: Sat, 10 Oct 2015 20:46:13 +0200 >> >> Emacs sucks at multiple-language buffers out of the box. They are >> inherent for any form of literate programming, they are rather prevalent >> for embedding languages in HTML, they are useful for things like Texinfo >> with embedded examples, I'd need them for LilyPond (which integrates >> Scheme code). Many IDEs are single-language to start with, and if they >> aren't, they are either generic or single-language per file. >> >> There is mmm-mode but it's not part of ELPA (and probably not >> copyright-assignable, at least that's my guess of why it might be out). >> And I strongly suspect that some stronger core features inside of Emacs >> would be desirable, like keeping indentation and font-locking engines >> and syntax constrained to regions identified with overlays or text >> properties. > > I indeed think that we should have infrastructure to turn on a major > mode in a region of a buffer. > > I'm not sure we should use text properties or overlays for that, > though. The region could be part of the command that turns on the > mode with region limits stored in markers. A typical LilyPond score file switches into Scheme thousands of times (most of the time just for a single scalar Scheme constant where an actual mode switch would not necessarily be required, but also for all user-defined functions and any non-trivial non-music expression). -- David Kastrup