From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Paul W. Rankin" via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: 'M-o' ('facemap-keymap') has now been removed until March 10th 2021 Date: Wed, 24 Mar 2021 22:00:04 +1000 Message-ID: <286451D4-3958-4EA4-B87A-A78DCB684E5C@bydasein.com> References: <32A55BBD-1A3F-4EC4-817F-7C3408C22A65@bydasein.com> <22aaf0faddac64397c7d@heytings.org> <4B2A00EB-8C04-4B9D-BA86-692D67207AFD@bydasein.com> <22aaf0faddc2bf87fd3a@heytings.org> <0009872A-AD9D-4B08-B714-BFEDDAAF9125@bydasein.com> <8786a8e8faf45a989904@heytings.org> <8786a8e8faa6f278b198@heytings.org> <8786a8e8fac78b35b5e9@heytings.org> Reply-To: "Paul W. Rankin" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 24 13:01:52 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lP2Ct-0009yU-OC for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 13:01:51 +0100 Original-Received: from localhost ([::1]:48944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lP2Cs-0007yR-FQ for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 08:01:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP2Bu-0007Qf-9B for emacs-devel@gnu.org; Wed, 24 Mar 2021 08:00:50 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:33644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP2Bo-0003Q3-LG for emacs-devel@gnu.org; Wed, 24 Mar 2021 08:00:49 -0400 DKIM-Signature: a=rsa-sha256; b=c/h2pPygSPSQNWwPqF0lgcmDQs3cFGKi9iihsADfI9iAQRlfWkkQLjPEtl2FDfXkvcyJnag8JS84W4VexeBp8Cq25CHel5WXaWVp5DUQSSZsEH4v7to1Y+uoHoCXFseeO2gtYiuoA6oZWfI23XPEE2YiGu6TNaF+ubWmn9jANswSjhYF3xry+SDMdWb2QUWDpGdQDewnJqrsn7IbH1ffgbZGdJOz3L19/whnDENrb5x8JkrBNU658RLf/Qb4HuvQmQPaTpPkm9UJ4hHUJDqFSOhIhWALPaXK/11nF30crRP2YGiiPRhoOWI82MmzFstdW69/+fOEANwjxWYmKLCnwQ==; s=purelymail2; d=bydasein.com; v=1; bh=nebb1AxdHfYPzy6FrjIZuvUtq+n5mA4c+Ma1oXEss38=; h=Received:From:To; DKIM-Signature: a=rsa-sha256; b=EQ4jP/Xs0dseU7Z8OhHg3vnw+m8JtbaI0q8tz3qV3N7Zc39kIPVyGbtfJ5wNGsHu/YIQgHzF23lFNYj6Aio6PMsxnyDbprMneiKUj1yBaxSHMBItN9LYgl9kRnVvlHe6vK5I+vxrfVp2YITWDpn+ogyaHA1xbzrW+ddEkgAAW9Rkga84kc7aEaYArdhUs2UFO29VHT1ME+lo6EGl745y/4oQT+pfdMOGSb2y6khM8iWcjz2lleo5zGJDU4nbN8KcVEpBFRKyFN/zmwTNnI62EcWYir0JFqYT1weDoMyITzo6RyihZAQBmI+iB3KJD/0bPAg/Z50kHbaQ6lauEyzYFw==; s=purelymail2; d=purelymail.com; v=1; bh=nebb1AxdHfYPzy6FrjIZuvUtq+n5mA4c+Ma1oXEss38=; h=Feedback-ID:Received:From:To; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: emacs-devel@gnu.org Original-Received: by ip-172-30-0-247.ec2.internal (JAMES SMTP Server ) with ESMTPA ID -54795100; Wed, 24 Mar 2021 12:00:10 +0000 (UTC) In-Reply-To: <8786a8e8fac78b35b5e9@heytings.org> X-Mailer: Apple Mail (2.3445.9.7) Received-SPF: pass client-ip=34.202.193.197; envelope-from=pwr@bydasein.com; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266947 Archived-At: > Does it? AFAICS, font-lock-unfontify-region does not "remove _all_ = text properties", it uses remove-list-of-text-properties, which "removes = _some_ properties from text", namely those of font-lock-mode. Sure, you're right that it does not remove *all* text properties per se. = It removes, let's say, "all that it can" which is more than "all that is = intended". In my last mail I was attempting to explain what you're seeing in the = second issue you described: > It allows you to toggle font-lock-mode correctly, which M-x = font-lock-mode can't do. Try the following: emacs -Q, unless, M-., M-h, = M-w, C-x b RET, M-x text-mode, C-y, M-x font-lock-mode. This is again correct behaviour. When you yank the defun from an = emacs-lisp-mode buffer into a text-mode buffer, you're inserting text = with (most of) its text properties, except for the property `(fontified = . t)' because within the context of *this* buffer, the text properties = have not been applied with font-lock-mode and so this would be false and = prevent font-lock from doing its work. To see how this works, try the reverse: yank a defun from a = text-mode-buffer (i.e. no syntax highlighting) into an emacs-lisp-mode = buffer with font-lock-mode active. Since there is no `(fontified . t)' = property you'll see font-lock go to work and the yanked text will be = fontified. If you dislike this behaviour that's also fine, there's a user option = for that: yank-excluded-properties, which you can set to t and have what = you expect as correct behaviour (which fwiw is what I have it set to). I hope this clears things up for you. Unless there's any outside = objection I'm going to fix up the command in master to reflect as pasted = above.=