From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: `font-lock-add-keywords' works... sometimes Date: Tue, 19 Mar 2019 23:22:14 +0100 Message-ID: <87wokuqzc9.fsf@web.de> References: <86sgvjjpeu.fsf@zoho.eu> <871s33q61a.fsf@web.de> <86ef72kdtb.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="178776"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 19 23:46:19 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6NUw-000kQ8-G0 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 23:46:18 +0100 Original-Received: from localhost ([127.0.0.1]:38570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6NUv-0001Il-Br for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 18:46:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6NUU-00017y-Gb for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 18:45:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6NKS-0005zC-JO for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 18:35:30 -0400 Original-Received: from mout.web.de ([212.227.17.11]:34187) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6NKK-0005Ni-E7 for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 18:35:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1553034890; bh=DMPf3F+T9Viv2acuX4DdzFvLcZMDsseNt7x7zw+ZZzg=; h=X-UI-Sender-Class:From:To:Subject:References:Date:In-Reply-To; b=ro3+w5k7gGkgpPrBaZioTQy3c2cvSkmQhumRq7Egwy4ouKLINSWD+9CTKu4ctlejk yH62XhUcXDSPsrcJ3KRHgbOYAOw+PrfOwzggj77xjDYgAK8n1qFprZhBjdfcUdeTTq PFIVXCOtpPUjCER+aPF8SLSAG9doeFOLJP8FkYrE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.111.211]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MhUfW-1hK4FZ3v2A-00Md3Y; Tue, 19 Mar 2019 23:22:16 +0100 In-Reply-To: <86ef72kdtb.fsf@zoho.eu> (Emanuel Berg's message of "Tue, 19 Mar 2019 17:51:28 +0100") X-Provags-ID: V03:K1:pTsSEn+BY5wpGBBFnHdeLBAS0baHBcbtV8S3SVPlDg3exK7Ka5N BCSZirzgptp9076/74pT9fykdH3T9FobbSoE9SnPtV5n1JMadlwxq9zbSHSxDDSUoyZbeiZ VwN4OzkylnJ0G0Y0D3l34h6xAuMxU4GZQ2ZMRDCziPy7q6gYBq19dRinuXMKocsX5ZWpUhx QMZ37FN4OUeDhucaalAOQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:5/3UIDrgkFM=:9F6zlJ+HDZh9DC0Cfn0TXe TE5Covb2ZDv9ocXK8FGRPGQgVqyKqjoHGkcIYLQoGwfrGD0Tmi+dnldB1z4JaXonRIEE2ov9/ 4TEE0yF4xe3nQCbnokTMtnswLuVQcW0l0KbDIU9jexll85jdzMz6MmlG4ODx9HjJy2OFPBBQP LR9DvYSIKGtA90hb7Tnrj0lplp6LCN39xH3opclu3brAvucBxv3L5MQk5L9OzJxrWON4Q575z Nu5hZO6bmSQkA6zVUvwyKKKgi14v19p4Myx1lNGQxg5f7YAqORCdjNqrAH6UluFn6L4u7H+Hf CsBRVI87kqh14S5z1Podu8jT7twoPnQmY0j+SLQyXL0A3rFxmftjpjNF+wY02PcNvbjd0ueVu WypGmjvuyY+Y+aRvQnAjFyD1mxbBjrv0Huq1Cq+Zz6s1g7kej3vtQ5R0Zjlbih9LV1DUU6Pq8 8FOJD67P6xzMjXdrvhGljDXVin1qNBicmgZEKy9HL5l5ri4fVMHeaoDYFBE3mk21iULcLU1k/ KN+dnpouxTwe8eC72lWwTnUTIriiaXVh4n7GxLRvwavCBmV1wO9EwIoXu9xqS+BBjbfQ4thtI Hz8J3f+yp9/zj4Vs7qwXfuTpytjce4YsC9k3h1DYOG64kjLOZ18FFYG9bfn6Dd+0d4ZHIyEBe ZvwJ+wG5unChPLPdVHm+qtvJFwLDqEY8HjTMS0XjwR7NOhdRUwuuBm93/F1YktI8APjH6pRUz qWQWKDkHTT5shRNofU+sxnCS6qIVAUMJE8hB99T4My5NVAkCZoYZMSi7e4pt60WIxUj68QfV X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.11 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:119689 Archived-At: Emanuel Berg writes: > Still, it can be interesting to understand why my identical code works > for Message mode, but not for Text mode? I tried to figure it out, but after reading the code, I got the impression that it is intended to work. > BTW what is the proper "notation" for an Emacs major mode? Personally, > I'm all ascii with lowercase and dashes, I even do that with my file > system, e.g. ~/tools/torque-wrench or ~/fighters/juan-manuel-marquez, > so I'd like to denote them (the major modes) for ex "message-mode" and > "text-mode". But in the help (.e.g., `C-h M' when I type this) it is > "Message mode", not message-mode, so I suppose I'm technically > incorrect. I guess both are ok and no one cares. Most people seem to prefer the lowercase version. C-h M just tries to be cool. Some background: we have `major-mode', which is bound to a symbol naming the mode, and the pretty version `mode-name' which specifies a string (most of the time) to be displayed in the mode-line. See the macro `define-derived-mode' for example, where you specify both kinds of names. Michael.