From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Urban Newsgroups: gmane.emacs.bugs Subject: bug#35481: 25.2; table.el should use 'font-lock-face' instead of 'face' Date: Sun, 28 Apr 2019 23:31:27 +0200 Message-ID: <89093c47-6449-8518-1d77-d43ba9b68891@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="85689"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 To: 35481@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 28 23:32:13 2019 Return-path: Envelope-to: geb-bug-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 1hKrPB-000MAY-CU for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Apr 2019 23:32:13 +0200 Original-Received: from localhost ([127.0.0.1]:48733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKrPA-0005FL-8v for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Apr 2019 17:32:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKrP4-0005FF-4B for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKrP2-0005vd-4d for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:32:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKrP0-0005vV-Np for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:32:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hKrP0-00008n-Gp for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Urban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Apr 2019 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35481 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug GNU Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.155648710332143 (code B ref -1); Sun, 28 Apr 2019 21:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2019 21:31:43 +0000 Original-Received: from localhost ([127.0.0.1]:37938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKrOh-0008Lu-7v for submit@debbugs.gnu.org; Sun, 28 Apr 2019 17:31:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hKrOf-0008G9-50 for submit@debbugs.gnu.org; Sun, 28 Apr 2019 17:31:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56587) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hKrOZ-0005sz-AJ for submit@debbugs.gnu.org; Sun, 28 Apr 2019 17:31:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKrOX-0005Cm-O4 for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:31:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKrOW-0005sd-Aq for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:31:33 -0400 Original-Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]:39274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKrOW-0005ru-15 for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2019 17:31:32 -0400 Original-Received: by mail-lf1-x143.google.com with SMTP id d12so6405408lfk.6 for ; Sun, 28 Apr 2019 14:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=GR8ALLWw5dTStB9+oNq25m1T+p6uzulEjwvO6KOw6SI=; b=ZKMiBdLgdP2lW2Vpm0MOA/tfADrAFsb1jbv9WDzGglUBfvV80UN7pHIS8KMWvxH4ge 35dMD2KjLmC/YWBXpH7G2koJZ17MUfjxAeEwGqc41+utHhFClowCJx8jOio4B9l+oYyB 7b86I2GnlyuIAXIZgZBCrZX4DIL1cy3+MWklpDnk4l5NuX9Uw8S/6kw5GQ4qCaRcaqPS YLV4tqe81S/gYA28TC5wzpS6enV+WNSIUdqBFjLOSgNiYU1wm8DkidSA86vQCffs4tbj JTFos2aFOM4mYfFMMWE5f9/TKacgLmCDACpEdURwiuThnH576cFG9crrK2+yn4cgr5Hl ohtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=GR8ALLWw5dTStB9+oNq25m1T+p6uzulEjwvO6KOw6SI=; b=Yjc/QOS5lSzpXv2B1pWn+zX71SOKkSsdLUMlG5nh0+LfKFzE3lRLRC32dK55qQ5xP1 EHkKb6eZZaVabMWlXrCTf192NAZBNx9lfaKiGetZhRrPkXMTkNWy/RrLdAADacVikk5H tRPkuNRAo4aI9OI7eDhFD1pgjuVPc+eVMmNE7SLJlwtqLgsOG/N/fsN0VG/yydE9vpjM +JwCkpDKhG1ayoIwubLKveQkWGH+5qyPE2kNVmR2DQ/pHIIhPMphNrGcPEnCELxQ6QKu fCLDm/yN79ymbCN3wTMnqYjRoATQRGXPL6EEKPyUy5fFic+FGaX+RQcV6PAZ7GOFQGG1 o/fA== X-Gm-Message-State: APjAAAVMamA6r4YE6514pJk4cJZ7rPtYHXDwdd7YT/qv2+M2LcLrq1N5 Rv7h97nHL1PtERGqfL2NqLEwJ1Ka X-Google-Smtp-Source: APXvYqyyKTB9f6h5nIP6wmQC7b1/eEYpiVzcL0KM9VdfPPfkmgu/7ca7A5bvDZGvTbkIQC34qmN3FQ== X-Received: by 2002:a19:5e56:: with SMTP id z22mr31810302lfi.81.1556487087681; Sun, 28 Apr 2019 14:31:27 -0700 (PDT) Original-Received: from ?IPv6:2a00:f41:1cdd:4b24:c115:772:5ade:1d94? ([2a00:f41:1cdd:4b24:c115:772:5ade:1d94]) by smtp.gmail.com with ESMTPSA id t4sm945094ljd.22.2019.04.28.14.31.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 14:31:27 -0700 (PDT) Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:158408 Archived-At: This is follow up (part two of solution) to this bug#35044: https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-03/msg01011.html and then (two months split) https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-04/msg00739.html or at debbugs https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35044 In short "table.el" uses text property 'face' (table-cell) which causes losing of cell highlight when user switches from modes like "Text" or "Fundamental" to modes that use "Font lock", like "Outline". Also when user switches back, 'face' is not applied immediately in every cell, but one by one, when cursor is moved from cell to cell. For both problems a solution seems to be an update to "table.el", which will change 'face' to 'font-lock-face'. If it helps, I found 4 places in code that probably need to be changed: - 'defface table-cell' at line 680, - 'defun table--put-cell-face-property' at line 5172, - 'defun table--remove-cell-properties' at line 5189, - 'defun table--update-cell-face' at line 5209. --- In GNU Emacs 25.2.1 (i686-w64-mingw32) of 2017-04-24 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --host=i686-w64-mingw32 --without-dbus --without-compress-install 'CFLAGS=-static -O2 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: PLK locale-coding-system: cp1250 Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Preparing diary... No diary entries for Niedziela, 28 KwiecieĊ„ 2019 Preparing diary...done For information about GNU Emacs and the GNU system, type C-h C-a. next-line: End of buffer Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs diary-lib diary-loaddefs cal-menu calendar cal-loaddefs finder-inf package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 114624 7479) (symbols 32 22205 0) (miscs 32 94 203) (strings 16 23812 4853) (string-bytes 1 741124) (vectors 8 15933) (vector-slots 4 485829 3692) (floats 8 712 215) (intervals 28 263 31) (buffers 520 21))