From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14157: 24.3.50; Improve facemenu.el: Better "integration" with other libraries Date: Wed, 10 Apr 2013 19:49:20 +0300 Message-ID: <837gka9vqn.fsf@gnu.org> References: <87txnhtvq8.fsf@gmail.com> <87ip3vf3hm.fsf@gmail.com> <83ehei9y47.fsf@gnu.org> <8761zubb8o.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365612561 23358 80.91.229.3 (10 Apr 2013 16:49:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 16:49:21 +0000 (UTC) Cc: 14157@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 10 18:49:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UPyD6-0003K7-FN for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 18:49:24 +0200 Original-Received: from localhost ([::1]:33768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPyD6-0003Mg-37 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 12:49:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPyD1-0003JF-BB for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 12:49:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPyD0-00025E-2h for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 12:49:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPyD0-000259-09 for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 12:49:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UPyGb-0001PK-TE for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 12:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2013 16:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14157 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14157-submit@debbugs.gnu.org id=B14157.13656127725376 (code B ref 14157); Wed, 10 Apr 2013 16:53:01 +0000 Original-Received: (at 14157) by debbugs.gnu.org; 10 Apr 2013 16:52:52 +0000 Original-Received: from localhost ([127.0.0.1]:43908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPyGR-0001Of-TU for submit@debbugs.gnu.org; Wed, 10 Apr 2013 12:52:52 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63433) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPyGQ-0001OW-DG for 14157@debbugs.gnu.org; Wed, 10 Apr 2013 12:52:51 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0ML100D00T8R8D00@a-mtaout20.012.net.il> for 14157@debbugs.gnu.org; Wed, 10 Apr 2013 19:49:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ML100D2OTDS3R30@a-mtaout20.012.net.il>; Wed, 10 Apr 2013 19:49:05 +0300 (IDT) In-reply-to: <8761zubb8o.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73308 Archived-At: > From: Jambunathan K > Cc: 14157@debbugs.gnu.org > Date: Wed, 10 Apr 2013 21:59:11 +0530 > > When in an Org file, I want enriched mode to be turned on and the > highlighted text to be persisted in the saved Org file. Enriched mode is a means to an end. But it's not the only means. What you need is a way to tell Org to re-highlight some parts of the text when the file is revisited. How hard can that be? > As I indicated the blocker is that facemenu.el doesn't play nicely with > font-lock-modes. No face plays nicely with font-lock-modes. > Do you think that it is possible to achieve what users are requesting > without using overlays? Of course. > As for Orgmode straining the display engine, it depends on many factors > - I guess the size of the Orgmode file, number of foldings, number of > overlays etc. The problem is that a typical Org file has a lot of all of those. Just moving vertically through a single display line might mean moving hundreds of KBytes in the buffer. The way Emacs display was designed, this use case was not considered as an important one. > I have seen prior discussions of using augmented interval trees for > managing overlays. (Theoretically) Will such a migration alleviate the > problem/fear. Being able to find overlays efficiently is only one part of the problem. The other one is that we have no easy way of finding which parts of the buffer are "covered" by an overlay. That forces many dubious and expensive tricks during redisplay.