From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Major and minor modes Date: Wed, 14 Jun 2017 11:58:54 +0200 Message-ID: <20170614095854.GA10795@tuxteam.de> References: <86k24f5o5u.fsf@zoho.com> <20170614074003.GA2968@workstation> <874lvj56dm.fsf@debian.uxu> <20170614085133.GA9145@tuxteam.de> <86bmpq6hvw.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1497434407 558 195.159.176.226 (14 Jun 2017 10:00:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2017 10:00:07 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 14 11:59:52 2017 Return-path: Envelope-to: geh-help-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 1dL55Z-0007Nn-Et for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 11:59:49 +0200 Original-Received: from localhost ([::1]:47542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL55Y-000486-R1 for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 05:59:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL54s-00046I-0N for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 05:59:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL54m-0001dF-10 for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 05:59:06 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:38796 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL54l-0001at-Qf for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 05:58:59 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1dL54g-0002zL-Hp for help-gnu-emacs@gnu.org; Wed, 14 Jun 2017 11:58:54 +0200 In-Reply-To: <86bmpq6hvw.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113451 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jun 14, 2017 at 11:25:07AM +0200, Emanuel Berg wrote: > > This is a well-known problem for those poor > > souls dealing with "things Web", where you > > have nested languages (CSS and Javascript in > > HTML, HTML in PHP and things) > > You said it: poor souls. But very subjective anyway. I half-regret having said that. > Is it unavoidable to nest languages? No. Is it unavoidable to use computers? No. Some like doing that, though. > PHP I see the situation because it produces HTML > from inline code. With CSS tho isn't a reference > in the HTML file enough? Yes. Does the standard allow embedding? Yes. Some people like doing it differently, and luckily, neither you nor me are entitled (or empowered) to impose that. Moreover, in this case, if you want to understand some random page you got from the Web (assuming you want to stay with your beloved Emacs), mixed-mode will come in handy. I know I appreciate it, for sure. > Another example are Perl scripts to do > databases and have SQL commands executed. There are tons of those -- everything "domain specific language" goes a bit in that direction. > JavaScript obviously I only did at computer > school and as soon as it was done I drank ten > beers to make sure I forgot all about it... Don't underestimate Javascript. There's a lot to learn from that (in the negative, but also in the positive). Actually... don't underestimate anything ;-D Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAllBCN4ACgkQBcgs9XrR2kYarQCdEM+KuWUrvyUA+xKXaCw5m3uM vtMAnAy4qjoK6yW2FNau/YujixJMLmo/ =L3Vn -----END PGP SIGNATURE-----