From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 21 16:22:19 2013 Received: (at submit) by debbugs.gnu.org; 21 Aug 2013 20:22:19 +0000 Received: from localhost ([127.0.0.1]:45711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCEv3-00059J-N2 for submit@debbugs.gnu.org; Wed, 21 Aug 2013 16:22:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39305) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCEoQ-0004yU-VF for submit@debbugs.gnu.org; Wed, 21 Aug 2013 16:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCEoL-00028q-O5 for submit@debbugs.gnu.org; Wed, 21 Aug 2013 16:15:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID, T_FRT_COCK autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCEoL-00028m-LS for submit@debbugs.gnu.org; Wed, 21 Aug 2013 16:15:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCEoF-0000O0-Lu for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2013 16:15:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCEoA-00026i-NH for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2013 16:15:15 -0400 Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:44939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCEoA-00025f-AG for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2013 16:15:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=PW7Dj6o5jJ1h8Hj03GsInM1HGN8H600kSNYrOjx1yec=; b=rUCqGb3ZyO6K2IR5AS6zphS28DtoT8ULHEXp1ZOgxjIcCyhqYApQa6R5mRJLkfLRIEFaHa6eATad/vWfyJ3cEWfWDqioMBVZPXWA8wmNoE7TC/cWAEnLHsl9v4TelUyP4BO+xOJSyehwY3EY0GGCZa/Ukz+DGTkPDe5k7KeKaUc=; Received: from i59f6c355.versanet.de ([89.246.195.85] helo=mawo) by cora.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VCEUk-0003LV-JX for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2013 21:55:09 +0200 From: Frank Fischer To: bug-gnu-emacs@gnu.org Subject: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Date: Wed, 21 Aug 2013 21:54:40 +0200 Message-ID: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> MIME-Version: 1.0 Content-Type: text/plain X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377114908-0000051A-280A183C/0-0/0-0 X-Scan-AV: cora.hrz.tu-chemnitz.de; 2013-08-21 21:55:08; 5802e1bd2b1ef7b7a29374f091ac6b7a X-Scan-SA: cora.hrz.tu-chemnitz.de; 2013-08-21 21:55:09; 9a635c22c3ba72c9de82ac52fe81ec93 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 21 Aug 2013 16:22:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Using 'adaptive-wrap.el' from ELPA (http://elpa.gnu.org/packages/adaptive-wrap-0.5.el) emacs -Q -l adaptive-wrap-0.5.el M-x visual-line-mode RET M-x adaptive-wrap-prefix-mode RET M-x variable-pitch-mode RET Then make the X window small enough so that the lines in the *scratch* buffer wrap. The color of the wrap-prefix (i.e. the semicolons ;;) is black and seems fixed width instead of red and using variable-pitch font. It seems as if the wrap-prefix does not inherit the face of the original (comment) prefix. This becomes more apparent when adding whitespaces at the beginning of the first line. Then the indentation of the next (wrapped) lines will also increase, however by a different amount because of the different font. I suppose the wrap-prefix somehow uses the global default font and not the font defined by variable-pitch. Note that this used to work in Emacs 23 (tested with 23.4.1) where the wrap-prefix in the successive lines has the same face as the original prefix. Also see my question in emacs-help: http://article.gmane.org/gmane.emacs.help/93023 In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.4) of 2013-04-14 on marid, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11303000 System Description: Ubuntu 13.04 Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: adaptive-wrap-prefix-mode: t highlight-parentheses-mode: t company-mode: t global-semantic-mru-bookmark-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t global-semantic-decoration-mode: t show-paren-mode: t Info-breadcrumbs-in-mode-line-mode: t global-hl-line-mode: t global-auto-revert-mode: t winpoint-mode: t ido-everywhere: t global-surround-mode: t surround-mode: t evil-mode: t evil-local-mode: t global-undo-tree-mode: t undo-tree-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t semantic-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent input: M-x r e p o r a d a p t i v e - w M-x a M-x a d a p C-g k k M-x v i s u M-x a d a p M-x M-x r e p o r Recent messages: Loading /home/fifr/.emacs.d/site-lisp/rudel/rudel-loaddefs.el (source)...done Starting Emacs daemon. When done with this frame, type C-x 5 0 Making completion list... byte-code: Command attempted to use minibuffer while in minibuffer Quit Visual-Line mode enabled Adaptive-Wrap-Prefix mode disabled Adaptive-Wrap-Prefix mode enabled Making completion list... Load-path shadows: /home/fifr/.emacs.d/el-get/wanderlust/utils/ssl hides /home/fifr/.emacs.d/el-get/wanderlust/site-lisp/wl/ssl /home/fifr/.emacs.d/el-get/wanderlust/utils/wl-complete hides /home/fifr/.emacs.d/el-get/wanderlust/site-lisp/wl/wl-complete /home/fifr/.emacs.d/el-get/wanderlust/utils/im-wl hides /home/fifr/.emacs.d/el-get/wanderlust/site-lisp/wl/im-wl /home/fifr/.emacs.d/el-get/wanderlust/utils/wl-mailto hides /home/fifr/.emacs.d/el-get/wanderlust/site-lisp/wl/wl-mailto /home/fifr/.emacs.d/el-get/wanderlust/utils/rfc2368 hides /home/fifr/.emacs.d/el-get/wanderlust/site-lisp/wl/rfc2368 /home/fifr/.emacs.d/el-get/wanderlust/utils/wl-addrbook hides /home/fifr/.emacs.d/el-get/wanderlust/site-lisp/wl/wl-addrbook /home/fifr/.emacs.d/el-get/cedet/lisp/speedbar/loaddefs hides /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/loaddefs /home/fifr/.emacs.d/el-get/cedet/lisp/speedbar/loaddefs hides /home/fifr/.emacs.d/el-get/cedet/lisp/cedet/loaddefs /home/fifr/.emacs.d/el-get/reftex/lisp/lpath hides /home/fifr/.emacs.d/el-get/auctex/lpath /home/fifr/.emacs.d/elpa/company-20130810.112/.dir-locals hides /home/fifr/.emacs.d/elpa/highlight-parentheses-20130523.1752/.dir-locals /home/fifr/.emacs.d/elpa/company-20130810.112/.dir-locals hides /home/fifr/.emacs.d/elpa/magit-20130810.1119/.dir-locals /home/fifr/.emacs.d/elpa/company-20130810.112/.dir-locals hides ~/.emacs.d/el-get/el-get/.dir-locals /home/fifr/.emacs.d/elpa/cmake-mode-20110824/cmake-mode hides /usr/share/emacs/24.3/site-lisp/cmake-data/cmake-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /home/fifr/.emacs.d/elpa/cmake-mode-20110824/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode ~/.emacs.d/custom hides /usr/share/emacs/24.3/lisp/custom /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/md4 hides /usr/share/emacs/24.3/lisp/md4 /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/hex-util hides /usr/share/emacs/24.3/lisp/hex-util /home/fifr/.emacs.d/el-get/cedet/lisp/speedbar/loaddefs hides /usr/share/emacs/24.3/lisp/loaddefs /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-auc hides /usr/share/emacs/24.3/lisp/textmodes/reftex-auc /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-dcr hides /usr/share/emacs/24.3/lisp/textmodes/reftex-dcr /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-parse hides /usr/share/emacs/24.3/lisp/textmodes/reftex-parse /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-ref hides /usr/share/emacs/24.3/lisp/textmodes/reftex-ref /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-cite hides /usr/share/emacs/24.3/lisp/textmodes/reftex-cite /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-vars hides /usr/share/emacs/24.3/lisp/textmodes/reftex-vars /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-toc hides /usr/share/emacs/24.3/lisp/textmodes/reftex-toc /home/fifr/.emacs.d/el-get/reftex/lisp/reftex hides /usr/share/emacs/24.3/lisp/textmodes/reftex /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-sel hides /usr/share/emacs/24.3/lisp/textmodes/reftex-sel /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-index hides /usr/share/emacs/24.3/lisp/textmodes/reftex-index /home/fifr/.emacs.d/el-get/reftex/lisp/reftex-global hides /usr/share/emacs/24.3/lisp/textmodes/reftex-global /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.3/lisp/net/hmac-md5 /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.3/lisp/net/sasl-cram /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/hmac-def hides /usr/share/emacs/24.3/lisp/net/hmac-def /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.3/lisp/net/sasl-digest /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.3/lisp/net/sasl-ntlm /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/sasl hides /usr/share/emacs/24.3/lisp/net/sasl /home/fifr/.emacs.d/el-get/flim/site-lisp/flim/ntlm hides /usr/share/emacs/24.3/lisp/net/ntlm /home/fifr/.emacs.d/el-get/wanderlust/utils/rfc2368 hides /usr/share/emacs/24.3/lisp/mail/rfc2368 /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/smime hides /usr/share/emacs/24.3/lisp/gnus/smime /home/fifr/.emacs.d/elpa/company-20130810.112/.dir-locals hides /usr/share/emacs/24.3/lisp/gnus/.dir-locals /usr/share/emacs24/site-lisp/erc/erc-networks hides /usr/share/emacs/24.3/lisp/erc/erc-networks /usr/share/emacs24/site-lisp/erc/erc-truncate hides /usr/share/emacs/24.3/lisp/erc/erc-truncate /usr/share/emacs24/site-lisp/erc/erc-menu hides /usr/share/emacs/24.3/lisp/erc/erc-menu /usr/share/emacs24/site-lisp/erc/erc-identd hides /usr/share/emacs/24.3/lisp/erc/erc-identd /usr/share/emacs24/site-lisp/erc/erc-lang hides /usr/share/emacs/24.3/lisp/erc/erc-lang /usr/share/emacs24/site-lisp/erc/erc-track hides /usr/share/emacs/24.3/lisp/erc/erc-track /usr/share/emacs24/site-lisp/erc/erc-compat hides /usr/share/emacs/24.3/lisp/erc/erc-compat /usr/share/emacs24/site-lisp/erc/erc-stamp hides /usr/share/emacs/24.3/lisp/erc/erc-stamp /usr/share/emacs24/site-lisp/erc/erc hides /usr/share/emacs/24.3/lisp/erc/erc /usr/share/emacs24/site-lisp/erc/erc-fill hides /usr/share/emacs/24.3/lisp/erc/erc-fill /usr/share/emacs24/site-lisp/erc/erc-ezbounce hides /usr/share/emacs/24.3/lisp/erc/erc-ezbounce /usr/share/emacs24/site-lisp/erc/erc-ring hides /usr/share/emacs/24.3/lisp/erc/erc-ring /usr/share/emacs24/site-lisp/erc/erc-pcomplete hides /usr/share/emacs/24.3/lisp/erc/erc-pcomplete /usr/share/emacs24/site-lisp/erc/erc-capab hides /usr/share/emacs/24.3/lisp/erc/erc-capab /usr/share/emacs24/site-lisp/erc/erc-netsplit hides /usr/share/emacs/24.3/lisp/erc/erc-netsplit /usr/share/emacs24/site-lisp/erc/erc-button hides /usr/share/emacs/24.3/lisp/erc/erc-button /usr/share/emacs24/site-lisp/erc/erc-goodies hides /usr/share/emacs/24.3/lisp/erc/erc-goodies /usr/share/emacs24/site-lisp/erc/erc-speedbar hides /usr/share/emacs/24.3/lisp/erc/erc-speedbar /usr/share/emacs24/site-lisp/erc/erc-backend hides /usr/share/emacs/24.3/lisp/erc/erc-backend /usr/share/emacs24/site-lisp/erc/erc-notify hides /usr/share/emacs/24.3/lisp/erc/erc-notify /usr/share/emacs24/site-lisp/erc/erc-match hides /usr/share/emacs/24.3/lisp/erc/erc-match /usr/share/emacs24/site-lisp/erc/erc-replace hides /usr/share/emacs/24.3/lisp/erc/erc-replace /usr/share/emacs24/site-lisp/erc/erc-services hides /usr/share/emacs/24.3/lisp/erc/erc-services /usr/share/emacs24/site-lisp/erc/erc-page hides /usr/share/emacs/24.3/lisp/erc/erc-page /usr/share/emacs24/site-lisp/erc/erc-log hides /usr/share/emacs/24.3/lisp/erc/erc-log /usr/share/emacs24/site-lisp/erc/erc-imenu hides /usr/share/emacs/24.3/lisp/erc/erc-imenu /usr/share/emacs24/site-lisp/erc/erc-xdcc hides /usr/share/emacs/24.3/lisp/erc/erc-xdcc /usr/share/emacs24/site-lisp/erc/erc-ibuffer hides /usr/share/emacs/24.3/lisp/erc/erc-ibuffer /usr/share/emacs24/site-lisp/erc/erc-dcc hides /usr/share/emacs/24.3/lisp/erc/erc-dcc /usr/share/emacs24/site-lisp/erc/erc-autoaway hides /usr/share/emacs/24.3/lisp/erc/erc-autoaway /usr/share/emacs24/site-lisp/erc/erc-list hides /usr/share/emacs/24.3/lisp/erc/erc-list /usr/share/emacs24/site-lisp/erc/erc-spelling hides /usr/share/emacs/24.3/lisp/erc/erc-spelling /usr/share/emacs24/site-lisp/erc/erc-sound hides /usr/share/emacs/24.3/lisp/erc/erc-sound /usr/share/emacs24/site-lisp/erc/erc-join hides /usr/share/emacs/24.3/lisp/erc/erc-join /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/eieio hides /usr/share/emacs/24.3/lisp/emacs-lisp/eieio /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/eieio-base hides /usr/share/emacs/24.3/lisp/emacs-lisp/eieio-base /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/eieio-opt hides /usr/share/emacs/24.3/lisp/emacs-lisp/eieio-opt /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/eieio-speedbar hides /usr/share/emacs/24.3/lisp/emacs-lisp/eieio-speedbar /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/eieio-custom hides /usr/share/emacs/24.3/lisp/emacs-lisp/eieio-custom /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/chart hides /usr/share/emacs/24.3/lisp/emacs-lisp/chart /home/fifr/.emacs.d/el-get/cedet/lisp/eieio/eieio-datadebug hides /usr/share/emacs/24.3/lisp/emacs-lisp/eieio-datadebug ~/.emacs.d/package hides /usr/share/emacs/24.3/lisp/emacs-lisp/package /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/pgg hides /usr/share/emacs/24.3/lisp/obsolete/pgg /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/pgg-pgp hides /usr/share/emacs/24.3/lisp/obsolete/pgg-pgp /usr/share/emacs24/site-lisp/erc/erc-hecomplete hides /usr/share/emacs/24.3/lisp/obsolete/erc-hecomplete /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/pgg-parse hides /usr/share/emacs/24.3/lisp/obsolete/pgg-parse /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/pgg-pgp5 hides /usr/share/emacs/24.3/lisp/obsolete/pgg-pgp5 /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/pgg-gpg hides /usr/share/emacs/24.3/lisp/obsolete/pgg-gpg /home/fifr/.emacs.d/el-get/semi/site-lisp/semi/pgg-def hides /usr/share/emacs/24.3/lisp/obsolete/pgg-def Features: (shadow sort footnote org-rmail org-mhe org-irc org-info org-gnus org-docview org-bibtex bibtex org-bbdb org-w3m init-text org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs speck init-spell gnus-util mail-extr adaptive-wrap init-visual-line emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server init-untabify highlight-parentheses company-files company-oddmuse company-keywords company-dabbrev-code company-dabbrev company-etags etags company-gtags company-cmake company-ropemacs company-xcode company-eclim company-clang company-template company-semantic company-css company-nxml company-elisp company init-auto-complete rudel-loaddefs init-prog init-prog-ruby init-prog-lisp init-cmake init-semantic semantic/mru-bookmark semantic/db-mode semantic/idle working fame semantic/decorate/mode semantic/decorate pulse paren init-mail idle-require init-colors menu-bar+ easy-mmode info+ thingatpt hl-line uniquify time-date autorevert winpoint ido init-evil ace-jump-mode diminish surround evil evil-integration evil-maps evil-commands evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core evil-common undo-tree diff windmove rect jka-compr evil-digraphs evil-vars time auto-compile packed init-server init-packages .loaddefs rudel-backend theme-roller theme-roller-macro color-theme reftex cedet-devel-load eieio-opt find-func srecode/map srecode semantic/canned-configs semantic/ia-sb semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db semantic/ctxt semantic/format semantic/tag-ls semantic/find semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet-compat inversion sb-info ede/speedbar ede/files ede ede/base ede/auto ede/source eieio-base eieio-speedbar speedbar sb-image ezimage dframe eieio-custom wid-edit cedet eieio eieio-core cedet-remove-builtin bbdb timezone bbdb-autoloads tex-site auto-loads el-get cl-macs gv el-get-autoloads el-get-list-packages el-get-notify help-mode el-get-dependencies el-get-build el-get-status pp el-get-recipes el-get-byte-compile el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-emacsmirror el-get-github el-get-git el-get-elpa el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-custom el-get-core autoload cl dired melpa ace-jump-mode-autoloads adaptive-wrap-autoloads auto-compile-autoloads auto-complete-autoloads cdlatex-autoloads cmake-mode-autoloads color-theme-autoloads company-autoloads deft-autoloads dictionary-autoloads diminish-autoloads ebib-autoloads evil-autoloads ghc-autoloads go-mode-autoloads haskell-mode-autoloads edmacro kmacro highlight-parentheses-autoloads idle-require-autoloads inf-ruby-autoloads inf-ruby ruby-mode compile comint ansi-color ring info+-autoloads lua-mode-autoloads melpa-autoloads byte-opt warnings bytecomp byte-compile cconv multi-eshell-autoloads org-autoloads packed-autoloads magit-autoloads info easymenu finder-inf popup-autoloads smart-tabs-mode-autoloads speck-autoloads sunrise-x-buttons-autoloads sunrise-x-loop-autoloads sunrise-x-modeline-autoloads sunrise-x-popviewer-autoloads sunrise-commander-autoloads surround-autoloads tex-smart-umlauts-autoloads undo-tree-autoloads winpoint-autoloads package advice help-fns cl-lib advice-preload erc-auto tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Frank Fischer Chemnitz University of Technology, Department of Mathematics eMail: frank.fischer@mathematik.tu-chemnitz.de Tel.: +49 (371) 531-36913 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 21 21:34:02 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 01:34:02 +0000 Received: from localhost ([127.0.0.1]:46164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCJmj-0004R9-E4 for submit@debbugs.gnu.org; Wed, 21 Aug 2013 21:34:01 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:20790) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCJmh-0004Qv-Bw for 15155@debbugs.gnu.org; Wed, 21 Aug 2013 21:33:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="22893693" Received: from 206-248-179-83.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.179.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 Aug 2013 21:33:51 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 6F43EAE1E0; Wed, 21 Aug 2013 21:33:58 -0400 (EDT) From: Stefan Monnier To: Frank Fischer Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> Date: Wed, 21 Aug 2013 21:33:58 -0400 In-Reply-To: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> (Frank Fischer's message of "Wed, 21 Aug 2013 21:54:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 15155 Cc: 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Then make the X window small enough so that the lines in the *scratch* > buffer wrap. The color of the wrap-prefix (i.e. the semicolons ;;) is > black and seems fixed width instead of red and using variable-pitch > font. It seems as if the wrap-prefix does not inherit the face of the > original (comment) prefix. This becomes more apparent when adding > whitespaces at the beginning of the first line. Then the indentation of > the next (wrapped) lines will also increase, however by a different > amount because of the different font. I suppose the wrap-prefix somehow > uses the global default font and not the font defined by variable-pitch. > Note that this used to work in Emacs 23 (tested with 23.4.1) where the > wrap-prefix in the successive lines has the same face as the original > prefix. I have the vague impression of having already seen such a bug-report, except the other way around (where the user complained that the wrap-prefix was displayed in the font that happened to be active where the line got truncated), so we "fixed" it for Emacs-24. At least that was within the redisplay engine. So maybe the problem we have now is that adaptive-wrap constructs the prefix without paying attention to existing faces. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 03:04:24 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 07:04:24 +0000 Received: from localhost ([127.0.0.1]:46689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCOwR-0005HS-HG for submit@debbugs.gnu.org; Thu, 22 Aug 2013 03:04:24 -0400 Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:40787) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCOwN-0005HD-OV for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 03:04:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=r0j4GQINBr8ELT0OjjOZ85Vk+JWJoOO4qN85/YpHC5M=; b=SUYIa5zodkW9t0KM4t3zHEQrBBen32YCyD5JHsoL5VTIy9Uy2dclfP+PU+x+R3mI6Ybn7hbnnKrPDL+NxDtoSicuD41rIKqa5kPujhNb8xcjaAoOH1XbmcjPH0mNOa3AQOCaf/uwCxZqjsVNFb3KzIiG7gsuohHA9dlVLvneiuw=; Received: from mordred.mathematik.tu-chemnitz.de ([134.109.40.151]) by nick.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VCOwG-0003XF-Cr; Thu, 22 Aug 2013 09:04:18 +0200 Message-ID: <5215B7EC.10808@mathematik.tu-chemnitz.de> Date: Thu, 22 Aug 2013 09:04:12 +0200 From: Frank Fischer Organization: Chemnitz University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377155052-000004FE-EA407CE5/0-0/0-0 X-Scan-AV: nick.hrz.tu-chemnitz.de; 2013-08-22 09:04:12; 1e2e8b49525236b2b34880c12b1ac96d X-Scan-SA: nick.hrz.tu-chemnitz.de; 2013-08-22 09:04:18; 287185797384c7f2dc00f180326352a4 X-Spam-Score: -3.8 (---) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-3.8 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.8 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain --- Ende Textanalyse X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15155 Cc: 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Am 08/22/2013 03:33 AM, schrieb Stefan Monnier: > I have the vague impression of having already seen such a bug-report, > except the other way around (where the user complained that the > wrap-prefix was displayed in the font that happened to be active where > the line got truncated), so we "fixed" it for Emacs-24. Ah, I see (just add some additional !!! before the first line in *scratch* and see that the exclamation marks in the wrapped lines have comment face (but they should be black) in Emacs 23). Taking your hint, I have tried the following `adaptive-fill-function` (setq adaptive-fill-function (lambda () (and adaptive-fill-prefix (looking-at adaptive-fill-prefix) (match-string 0)))) This is exactly what `fill-adaptive-match-prefix' does except the latter uses `match-string-no-properties`. This seems to work fine for the color of the prefix but not for its font (when using variable-pitch-mode). So a second try was (setq adaptive-fill-function (lambda () (and adaptive-fill-prefix (looking-at adaptive-fill-prefix) (propertize (match-string-no-properties 0) 'face 'default)))) Now the wrap-prefix has the correct font but the wrong color (but this variant seems to work reasonably well for LaTeX and variable-pitch). I think, the wrap-prefix should at least have the default face (which may be modified by variable-pitch-mode) in any case. I'm not sure about the other properties like color, but may adaptive-wrap-mode should (optionally?) use something like the adaptive-fill-function above to assign the wrap-prefix the same face as the original prefix (in contrast to the one that happened to be active where the line got truncated). Though, I have no idea what to about the color vs. font problem (how to get both?). Many thanks for your comments, they already helped me a lot :) Frank From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 10:50:47 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 14:50:47 +0000 Received: from localhost ([127.0.0.1]:47807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCWDn-0000vl-7Q for submit@debbugs.gnu.org; Thu, 22 Aug 2013 10:50:47 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:51798) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCWDk-0000va-8M for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 10:50:45 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MRX00100T35JJ00@a-mtaout22.012.net.il> for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 17:50:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRX001WAT8IHF20@a-mtaout22.012.net.il>; Thu, 22 Aug 2013 17:50:42 +0300 (IDT) Date: Thu, 22 Aug 2013 17:50:44 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: X-012-Sender: halo1@inter.net.il To: Stefan Monnier Message-id: <83a9k9kce3.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: frank.fischer@mathematik.tu-chemnitz.de, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Stefan Monnier > Date: Wed, 21 Aug 2013 21:33:58 -0400 > Cc: 15155@debbugs.gnu.org > > I have the vague impression of having already seen such a bug-report, > except the other way around (where the user complained that the > wrap-prefix was displayed in the font that happened to be active where > the line got truncated), so we "fixed" it for Emacs-24. I believe you are talking about bugs #4281 and #10395, which were fixed by revision 107654. > So maybe the problem we have now is that adaptive-wrap constructs > the prefix without paying attention to existing faces. Indeed. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 10:54:29 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 14:54:30 +0000 Received: from localhost ([127.0.0.1]:47821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCWHN-00011E-2r for submit@debbugs.gnu.org; Thu, 22 Aug 2013 10:54:29 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:62874) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCWHJ-000113-OG for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 10:54:26 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRX00700T6S6500@a-mtaout21.012.net.il> for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 17:54:24 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRX00646TEKW0B0@a-mtaout21.012.net.il>; Thu, 22 Aug 2013 17:54:21 +0300 (IDT) Date: Thu, 22 Aug 2013 17:54:23 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: <5215B7EC.10808@mathematik.tu-chemnitz.de> X-012-Sender: halo1@inter.net.il To: Frank Fischer Message-id: <838uztkc80.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 22 Aug 2013 09:04:12 +0200 > From: Frank Fischer > Cc: 15155@debbugs.gnu.org > > Taking your hint, I have tried the following `adaptive-fill-function` > > (setq adaptive-fill-function > (lambda () > (and adaptive-fill-prefix > (looking-at adaptive-fill-prefix) > (match-string 0)))) > > This is exactly what `fill-adaptive-match-prefix' does except the latter > uses `match-string-no-properties`. > > This seems to work fine for the color of the prefix but not for its font > (when using variable-pitch-mode). So a second try was > > > (setq adaptive-fill-function > (lambda () > (and adaptive-fill-prefix > (looking-at adaptive-fill-prefix) > (propertize (match-string-no-properties 0) 'face 'default)))) > > Now the wrap-prefix has the correct font but the wrong color (but this > variant seems to work reasonably well for LaTeX and variable-pitch). > > I think, the wrap-prefix should at least have the default face (which > may be modified by variable-pitch-mode) in any case. I'm not sure about > the other properties like color, but may adaptive-wrap-mode should > (optionally?) use something like the adaptive-fill-function above to > assign the wrap-prefix the same face as the original prefix (in contrast > to the one that happened to be active where the line got truncated). > > Though, I have no idea what to about the color vs. font problem (how to > get both?). How about using the face returned by face-at-point, instead of 'default'? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 11:26:56 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 15:26:57 +0000 Received: from localhost ([127.0.0.1]:47892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCWmm-0001oA-1t for submit@debbugs.gnu.org; Thu, 22 Aug 2013 11:26:56 -0400 Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:33881) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCWmj-0001nz-Kh for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 11:26:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=O1DawCxRGlXgjO9dZE1FCpmtCTFyjArvs1mM5E6DMHY=; b=sutQuBTENjiwB0dmkrOtrv1Iy8IU9Qvz3Y0JGwlLTBOfhMEHvoIgmO8IVG3ByveQ0E4SuW9n6CYalHIUsIDVrqM8NCZwa9Wsa0ukI+SAlZ2qI33qpSQpAy6C71A6uhitTBnWab/qy4pTRcRZY1d9tgBRCBuzH7uFapgr6gXsIXY=; Received: from mordred.mathematik.tu-chemnitz.de ([134.109.40.151]) by nick.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VCWmh-0005hd-5Q; Thu, 22 Aug 2013 17:26:51 +0200 Message-ID: <52162DBA.2040905@mathematik.tu-chemnitz.de> Date: Thu, 22 Aug 2013 17:26:50 +0200 From: Frank Fischer Organization: Chemnitz University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> In-Reply-To: <838uztkc80.fsf@gnu.org> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377185211-000004FE-2EF47B7F/0-0/0-0 X-Scan-AV: nick.hrz.tu-chemnitz.de; 2013-08-22 17:26:51; 986d13c9b502964b913a723608aaa566 X-Scan-SA: nick.hrz.tu-chemnitz.de; 2013-08-22 17:26:51; b131d5eea10e12754a4d65a3c4390dcb X-Spam-Score: -3.8 (---) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-3.8 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.8 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain --- Ende Textanalyse X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15155 Cc: Frank Fischer , monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Am 08/22/2013 04:54 PM, schrieb Eli Zaretskii: >> (setq adaptive-fill-function >> (lambda () >> (and adaptive-fill-prefix >> (looking-at adaptive-fill-prefix) >> (propertize (match-string-no-properties 0) 'face 'default)))) > > How about using the face returned by face-at-point, instead of > 'default'? I'm not sure. In my tests (adding several % comment marker before a line in a LaTeX document) I got strange results. Sometimes the wrap prefix had the correct color, sometimes not. But in no case it had the correct (variable-width) font. I used the following code (of course the correct name of the variable is `adaptive-fill-regexp` not `adaptive-fill-prefix`): (setq adaptive-fill-function (lambda () (and adaptive-fill-regexp (looking-at adaptive-fill-regexp) (propertize (match-string-no-properties 0) 'face (face-at-point))))) But I suppose that using `match-string` instead of `match-string-no-properties` should preserve the correct face, right? But this did not work, too. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 12:03:55 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 16:03:55 +0000 Received: from localhost ([127.0.0.1]:47993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCXMY-0002lb-BE for submit@debbugs.gnu.org; Thu, 22 Aug 2013 12:03:54 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:35252) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCXMV-0002lP-2S for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 12:03:52 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRX00700WLVJF00@a-mtaout21.012.net.il> for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 19:03:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRX007KLWMCIZ10@a-mtaout21.012.net.il>; Thu, 22 Aug 2013 19:03:49 +0300 (IDT) Date: Thu, 22 Aug 2013 19:03:50 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: <52162DBA.2040905@mathematik.tu-chemnitz.de> X-012-Sender: halo1@inter.net.il To: Frank Fischer Message-id: <831u5lk909.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 22 Aug 2013 17:26:50 +0200 > From: Frank Fischer > CC: Frank Fischer , > monnier@iro.umontreal.ca, 15155@debbugs.gnu.org > > > How about using the face returned by face-at-point, instead of > > 'default'? > > I'm not sure. In my tests (adding several % comment marker before a line > in a LaTeX document) I got strange results. Sometimes the wrap prefix > had the correct color, sometimes not. But in no case it had the correct > (variable-width) font. I used the following code (of course the correct > name of the variable is `adaptive-fill-regexp` not `adaptive-fill-prefix`): > > (setq adaptive-fill-function > (lambda () > (and adaptive-fill-regexp > (looking-at adaptive-fill-regexp) > (propertize (match-string-no-properties 0) 'face > (face-at-point))))) Perhaps you are calling face-at-point at the wrong buffer position. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 12:15:38 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 16:15:38 +0000 Received: from localhost ([127.0.0.1]:48016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCXXs-00032j-VR for submit@debbugs.gnu.org; Thu, 22 Aug 2013 12:15:37 -0400 Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:60783) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCXXf-00032O-4s for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 12:15:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=CIqdWkpoxYo8e5lbRg/APZu+ZQXHqvmL0qpP3w6IuMg=; b=adltc7wEJRq5zOeZPdgDyhw7Y4Js4h5h/q5q435vJTRyQgskKKWyCY5DbIL7GbR8zoimj75mQMG/PFIxxX9GVHE8RirhRGVilfQ+HTlmvZH3qopljqvqOc38ARK+pcfc2mUo8rFipQHiRniMC/pKq//mSo8Otu+fo3lHyNBTeR4=; Received: from mordred.mathematik.tu-chemnitz.de ([134.109.40.151]) by cora.hrz.tu-chemnitz.de with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1VCXXd-0004G0-GB; Thu, 22 Aug 2013 18:15:22 +0200 Message-ID: <52163919.7080505@mathematik.tu-chemnitz.de> Date: Thu, 22 Aug 2013 18:15:21 +0200 From: Frank Fischer Organization: Chemnitz University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> In-Reply-To: <831u5lk909.fsf@gnu.org> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377188121-0000051A-5D6EBF7B/0-0/0-0 X-Scan-AV: cora.hrz.tu-chemnitz.de; 2013-08-22 18:15:21; 9fd531c41be6ed9ffdc37d48e457b771 X-Scan-SA: cora.hrz.tu-chemnitz.de; 2013-08-22 18:15:22; c230efaed0ec12c8f0a9d2185b4c57c2 X-Spam-Score: -3.8 (---) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-3.8 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.8 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain --- Ende Textanalyse X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Am 08/22/2013 06:03 PM, schrieb Eli Zaretskii: >> Date: Thu, 22 Aug 2013 17:26:50 +0200 >> From: Frank Fischer >> CC: Frank Fischer , >> monnier@iro.umontreal.ca, 15155@debbugs.gnu.org >> >>> How about using the face returned by face-at-point, instead of >>> 'default'? >> >> I'm not sure. In my tests (adding several % comment marker before a line >> in a LaTeX document) I got strange results. Sometimes the wrap prefix >> had the correct color, sometimes not. But in no case it had the correct >> (variable-width) font. I used the following code (of course the correct >> name of the variable is `adaptive-fill-regexp` not `adaptive-fill-prefix`): >> >> (setq adaptive-fill-function >> (lambda () >> (and adaptive-fill-regexp >> (looking-at adaptive-fill-regexp) >> (propertize (match-string-no-properties 0) 'face >> (face-at-point))))) > > Perhaps you are calling face-at-point at the wrong buffer position. Perhaps, but what is the correct buffer position (I expected (point) when `looking-at` is called to be the correct one, but this may be wrong in some cases -- I do not know enough about the internals of determining the wrap-prefix to really say what's going on)? However, as long as the prefix does not get the correct font it does not matter, because this is the most important aspect (for me because I want to use adaptive-wrap with variable-pitch-mode). From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 12:56:09 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 16:56:09 +0000 Received: from localhost ([127.0.0.1]:48113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCYB6-00046I-Od for submit@debbugs.gnu.org; Thu, 22 Aug 2013 12:56:09 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:39931) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCYB3-000466-G5 for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 12:56:06 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRX00500YY02J00@a-mtaout20.012.net.il> for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 19:56:03 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRX004Z4Z1FU360@a-mtaout20.012.net.il>; Thu, 22 Aug 2013 19:56:03 +0300 (IDT) Date: Thu, 22 Aug 2013 19:56:05 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: <52163919.7080505@mathematik.tu-chemnitz.de> X-012-Sender: halo1@inter.net.il To: Frank Fischer Message-id: <83zjs9is0q.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 22 Aug 2013 18:15:21 +0200 > From: Frank Fischer > CC: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org > > > Perhaps you are calling face-at-point at the wrong buffer position. > > Perhaps, but what is the correct buffer position (I expected (point) > when `looking-at` is called to be the correct one, but this may be wrong > in some cases -- I do not know enough about the internals of determining > the wrap-prefix to really say what's going on)? > > However, as long as the prefix does not get the correct font it does not > matter, because this is the most important aspect (for me because I want > to use adaptive-wrap with variable-pitch-mode). Can you build Emacs from the trunk? I would like to ask you to try a patch that might fix this in your use case. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 14:15:47 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 18:15:47 +0000 Received: from localhost ([127.0.0.1]:48185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCZQB-00060g-3N for submit@debbugs.gnu.org; Thu, 22 Aug 2013 14:15:47 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:3002) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCZQ9-00060Y-9j for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 14:15:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="22999759" Received: from 206-248-179-83.dsl.teksavvy.com (HELO pastel.home) ([206.248.179.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 22 Aug 2013 14:15:37 -0400 Received: by pastel.home (Postfix, from userid 20848) id D73CE6627C; Thu, 22 Aug 2013 14:15:43 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> Date: Thu, 22 Aug 2013 14:15:43 -0400 In-Reply-To: <838uztkc80.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Aug 2013 17:54:23 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 15155 Cc: Frank Fischer , 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> This is exactly what `fill-adaptive-match-prefix' does except the latter >> uses `match-string-no-properties`. That looks like the right fix. >> This seems to work fine for the color of the prefix but not for its font >> (when using variable-pitch-mode). So a second try was Hmm... Eli, could it be that the redisplay ignores the face-remapping-alist when processing the wrap-prefix? Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 14:49:32 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 18:49:32 +0000 Received: from localhost ([127.0.0.1]:48261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCZwo-0006px-UE for submit@debbugs.gnu.org; Thu, 22 Aug 2013 14:49:31 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:45671) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCZwj-0006pg-Oy for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 14:49:27 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRY00800479BQ00@a-mtaout21.012.net.il> for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 21:49:24 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRY0086Q4AB4NC0@a-mtaout21.012.net.il>; Thu, 22 Aug 2013 21:49:24 +0300 (IDT) Date: Thu, 22 Aug 2013 21:49:25 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: X-012-Sender: halo1@inter.net.il To: Stefan Monnier Message-id: <83y57timru.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: frank.fischer@mathematik.tu-chemnitz.de, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Stefan Monnier > Cc: Frank Fischer , 15155@debbugs.gnu.org > Date: Thu, 22 Aug 2013 14:15:43 -0400 > > Hmm... Eli, could it be that the redisplay ignores the face-remapping-alist > when processing the wrap-prefix? It does, indeed. That's the patch I wanted Frank to try. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 16:33:01 2013 Received: (at 15155) by debbugs.gnu.org; 22 Aug 2013 20:33:01 +0000 Received: from localhost ([127.0.0.1]:48406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCbYy-0000pa-IP for submit@debbugs.gnu.org; Thu, 22 Aug 2013 16:33:00 -0400 Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:33925) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCbYv-0000pP-Ht for 15155@debbugs.gnu.org; Thu, 22 Aug 2013 16:32:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=jg6ujr2tr5WdXh0DZ0+2MpZGeiXqOxPrJ/QRdgVuR00=; b=bRQ8R3q+B5n2w5nyAr07PE0EXA1lDLGNdWaDV2OIll6AXYFiajlEUFoXbFSlwR4hmmz3z3BCJ3sFXks82wYMiru1sT2DMd088gaTgSPDZtdODrc2ZeY/xhWWEouPuoylVY8YvSfbNGDBZgpy1J8Yp1bQPa+31xxfFE7vS9g4mac=; Received: from i59f6a61a.versanet.de ([89.246.166.26] helo=mawo) by nick.hrz.tu-chemnitz.de with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VCbYs-0005zE-M2; Thu, 22 Aug 2013 22:32:55 +0200 Date: Thu, 22 Aug 2013 22:32:46 +0200 From: Frank Fischer To: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: <20130822223246.07dbc5a6@mawo> In-Reply-To: <83zjs9is0q.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> Organization: Chemnitz University of Technology X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377203574-000004FE-F8A63D91/0-0/0-0 X-Scan-AV: nick.hrz.tu-chemnitz.de; 2013-08-22 22:32:54; df0b0865fd58494e13f329a94c70c0b3 X-Scan-SA: nick.hrz.tu-chemnitz.de; 2013-08-22 22:32:55; a99c8dba40f28b98b2461168208e9b40 X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Am Thu, 22 Aug 2013 19:56:05 +0300 schrieb Eli Zaretskii : > Can you build Emacs from the trunk? I would like to ask you to try a > patch that might fix this in your use case. Sure, I'd be happy to help ;) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 02:41:11 2013 Received: (at 15155) by debbugs.gnu.org; 23 Aug 2013 06:41:11 +0000 Received: from localhost ([127.0.0.1]:49273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCl3S-00088U-A7 for submit@debbugs.gnu.org; Fri, 23 Aug 2013 02:41:10 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:51824) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCl3L-00087w-Tz for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 02:41:04 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRZ00C0015ZEW00@a-mtaout20.012.net.il> for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 09:40:58 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRZ00C2O1899D50@a-mtaout20.012.net.il>; Fri, 23 Aug 2013 09:40:58 +0300 (IDT) Date: Fri, 23 Aug 2013 09:41:01 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: <20130822223246.07dbc5a6@mawo> X-012-Sender: halo1@inter.net.il To: Frank Fischer Message-id: <83txigj4ea.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 22 Aug 2013 22:32:46 +0200 > From: Frank Fischer > Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org > > Am Thu, 22 Aug 2013 19:56:05 +0300 > schrieb Eli Zaretskii : > > > Can you build Emacs from the trunk? I would like to ask you to try a > > patch that might fix this in your use case. > > Sure, I'd be happy to help ;) Thank you. Please try the patch below. It should solve the problem with the font; you will still need to make sure on the Lisp level that the prefix has the right face, to get the color you want. === modified file 'src/xdisp.c' --- src/xdisp.c 2013-08-15 16:28:42 +0000 +++ src/xdisp.c 2013-08-22 16:57:56 +0000 @@ -3915,7 +3915,9 @@ handle_face_prop (struct it *it) surrounding text, unless they specify their own faces. */ base_face_id = it->string_from_prefix_prop_p - ? DEFAULT_FACE_ID + ? (!NILP (Vface_remapping_alist) + ? lookup_basic_face (it->f, DEFAULT_FACE_ID) + : DEFAULT_FACE_ID) : underlying_face_id (it); } From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 09:18:16 2013 Received: (at 15155) by debbugs.gnu.org; 23 Aug 2013 13:18:16 +0000 Received: from localhost ([127.0.0.1]:49812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCrFl-0003Bf-8a for submit@debbugs.gnu.org; Fri, 23 Aug 2013 09:18:16 -0400 Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:34740) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCrFh-0003BU-SM for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 09:18:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=FCN41MK1BTCcmpwDqr/XQFszhud5/Ro+FBhlH7+7zM8=; b=BnFkYliSm4Eur92M4iedrB/QIzCSOjzreaTHBOlEKgPvxbPX0ze36eBHUyOej3A6OWyJLYyUIEvFgL43ac3F/YGPWUwvlKa0uiR0t/d3lgPsJ0nDuC7mJNWTB3yOp51wxNSTw1xdg6u9/8lUi0jOX49HrREWe/JT9nBrOzYHaSU=; Received: from i59f6a61a.versanet.de ([89.246.166.26] helo=mawo) by nick.hrz.tu-chemnitz.de with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VCrFe-0004po-Az; Fri, 23 Aug 2013 15:18:07 +0200 Date: Fri, 23 Aug 2013 15:17:58 +0200 From: Frank Fischer To: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: <20130823151758.4b4c3f8a@mawo> In-Reply-To: <83txigj4ea.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> Organization: Chemnitz University of Technology X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377263886-000004FE-36E0F57B/0-0/0-0 X-Scan-AV: nick.hrz.tu-chemnitz.de; 2013-08-23 15:18:06; 1c5fe50c83cfe80a40435d3ba50d6689 X-Scan-SA: nick.hrz.tu-chemnitz.de; 2013-08-23 15:18:07; efc8bd3ba3412a63f68a4b991e65b9cb X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Am Fri, 23 Aug 2013 09:41:01 +0300 schrieb Eli Zaretskii : > > Date: Thu, 22 Aug 2013 22:32:46 +0200 > > From: Frank Fischer > > Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org > > > > Am Thu, 22 Aug 2013 19:56:05 +0300 > > schrieb Eli Zaretskii : > > > > > Can you build Emacs from the trunk? I would like to ask you to > > > try a patch that might fix this in your use case. > > > > Sure, I'd be happy to help ;) > > Thank you. Please try the patch below. It should solve the problem > with the font; you will still need to make sure on the Lisp level that > the prefix has the right face, to get the color you want. That patch seems to work, thank you. I have only one (very) minor issue left: depending on the mode the wrap-prefix may contain characters with different faces (e.g. in emacs-lisp mode !!!;;; would be a correct prefix, the first three characters with default face, the latter three with comment-face), hence there is not really "the one" correct face to assign 'wrap-prefix with `propertize`. That why I tried the variant (setq adaptive-fill-function (lambda () (and adaptive-fill-regexp (looking-at adaptive-fill-regexp) (match-string 0)))) hoping that (match-string 0) returns the whole prefix with the correct fontification. However, there are situations where this does not work: for example if one has a (very long) wrapped line without comment and then inserts a semicolon (only one) at the beginning of that line to comment it out, then the wrap-prefix does not get comment face (to be precise, it has the correct font, thus your patch works, but not the correct color). But if one inserts a second semicolon then the wrap-prefix gets the correct color. I assume this happens because the wrap-prefix is set before font-lock changed the face of inserted semicolon. Perhaps this is a more an issue of adaptive-wrap-mode, I don't know. If my guess is correct, is it possible to run the appropriate hooks (I think adaptive-wrap uses `jit-lock-register`) *after* font-lock changed the face? Or is there another, better way to detect the correct face? If you don't have a solution to this question, don't worry. I'm quite happy with your patch and it does already what I want ;) Thank you again, Frank From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 10:29:40 2013 Received: (at 15155) by debbugs.gnu.org; 23 Aug 2013 14:29:40 +0000 Received: from localhost ([127.0.0.1]:50251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCsMt-0004xR-7e for submit@debbugs.gnu.org; Fri, 23 Aug 2013 10:29:39 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:35153) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCsMo-0004xF-Uz for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 10:29:36 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRZ00E00MO6AK00@a-mtaout21.012.net.il> for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 17:29:33 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRZ00EZDMX85280@a-mtaout21.012.net.il>; Fri, 23 Aug 2013 17:29:33 +0300 (IDT) Date: Fri, 23 Aug 2013 17:29:37 +0300 From: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face In-reply-to: <20130823151758.4b4c3f8a@mawo> X-012-Sender: halo1@inter.net.il To: Frank Fischer Message-id: <83fvu0iipa.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> <20130823151758.4b4c3f8a@mawo> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Fri, 23 Aug 2013 15:17:58 +0200 > From: Frank Fischer > Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org > > Am Fri, 23 Aug 2013 09:41:01 +0300 > schrieb Eli Zaretskii : > > > > Date: Thu, 22 Aug 2013 22:32:46 +0200 > > > From: Frank Fischer > > > Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org > > > > > > Am Thu, 22 Aug 2013 19:56:05 +0300 > > > schrieb Eli Zaretskii : > > > > > > > Can you build Emacs from the trunk? I would like to ask you to > > > > try a patch that might fix this in your use case. > > > > > > Sure, I'd be happy to help ;) > > > > Thank you. Please try the patch below. It should solve the problem > > with the font; you will still need to make sure on the Lisp level that > > the prefix has the right face, to get the color you want. > > That patch seems to work, thank you. Thanks, committed as trunk revision 113979. > I have only one (very) minor issue left: depending on the mode the > wrap-prefix may contain characters with different faces (e.g. in > emacs-lisp mode !!!;;; would be a correct prefix, the first three > characters with default face, the latter three with comment-face), hence > there is not really "the one" correct face to assign 'wrap-prefix with > `propertize`. That why I tried the variant > > (setq adaptive-fill-function > (lambda () > (and adaptive-fill-regexp > (looking-at adaptive-fill-regexp) > (match-string 0)))) > > hoping that (match-string 0) returns the whole prefix with the correct > fontification. However, there are situations where this does not work: > for example if one has a (very long) wrapped line without comment and > then inserts a semicolon (only one) at the beginning of that line to > comment it out, then the wrap-prefix does not get comment face (to be > precise, it has the correct font, thus your patch works, but not the > correct color). But if one inserts a second semicolon then the > wrap-prefix gets the correct color. I assume this happens because the > wrap-prefix is set before font-lock changed the face of inserted > semicolon. I think your analysis is correct. Perhaps invoking font-lock to fontify the appropriate portion of the text, before taking the prefix string, will solve that? > Perhaps this is a more an issue of adaptive-wrap-mode, I > don't know. I think it is indeed an issue with adaptive-wrap-mode. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 11:18:14 2013 Received: (at 15155) by debbugs.gnu.org; 23 Aug 2013 15:18:14 +0000 Received: from localhost ([127.0.0.1]:50310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCt7s-0006CE-Rz for submit@debbugs.gnu.org; Fri, 23 Aug 2013 11:18:13 -0400 Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:48279) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCt7p-0006C4-Sp for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 11:18:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=3iw64M2dUeKwrRiHLbTuylpTWDD+tHsPNG0drjQ+iIs=; b=gyKwtthzI7pJm/+ujmM9RZsOjVt8s5FyLKPj5FDJs0x6PSd3fiO3WMzrr1CEzvAIObbexGv8EUS4Ac6WOXAX9KIcFKztTbKSk8sJRv6KQwJL+utQY3RBfpSP4jJgbkUuZ/zgPn3CzxaM7apGgU+8VKgdQ3DNB++vMWeTfLbCHTw=; Received: from i59f6b570.versanet.de ([89.246.181.112] helo=mawo) by nick.hrz.tu-chemnitz.de with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VCt7n-0001Qc-Ny; Fri, 23 Aug 2013 17:18:08 +0200 Date: Fri, 23 Aug 2013 17:17:59 +0200 From: Frank Fischer To: Eli Zaretskii Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: <20130823171759.575f8991@mawo> In-Reply-To: <83fvu0iipa.fsf@gnu.org> References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> <20130823151758.4b4c3f8a@mawo> <83fvu0iipa.fsf@gnu.org> Organization: Chemnitz University of Technology X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/0IQODPnqWgqrlBFyNfOG1vB" X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377271087-000004FE-F381E110/0-0/0-0 X-Scan-AV: nick.hrz.tu-chemnitz.de; 2013-08-23 17:18:07; d89ecccc297c97b8ad94a8aeb2a6ce6c X-Scan-SA: nick.hrz.tu-chemnitz.de; 2013-08-23 17:18:08; a912dd7cd7743c81d31658988257d5ac X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15155 Cc: monnier@iro.umontreal.ca, 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) --MP_/0IQODPnqWgqrlBFyNfOG1vB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Am Fri, 23 Aug 2013 17:29:37 +0300 schrieb Eli Zaretskii : > > That patch seems to work, thank you. > > Thanks, committed as trunk revision 113979. Cool! > I think your analysis is correct. Perhaps invoking font-lock to > fontify the appropriate portion of the text, before taking the prefix > string, will solve that? > > > Perhaps this is a more an issue of adaptive-wrap-mode, I > > don't know. > > I think it is indeed an issue with adaptive-wrap-mode. Yes, it seems to work. I used the attached patch for adaptive-wrap.el (although I do not know if this is the correct way to do because I'm not really familiar with font-lock), it just works for me. Thanks again Frank --MP_/0IQODPnqWgqrlBFyNfOG1vB Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=adaptive-wrap.patch --- adaptive-wrap-old.el 2013-08-23 17:02:00.150840918 +0200 +++ adaptive-wrap.el 2013-08-23 17:06:33.411490626 +0200 @@ -83,12 +83,20 @@ (defun adaptive-wrap-prefix-function (beg end) "Indent the region between BEG and END with adaptive filling." (goto-char beg) - (while (< (point) end) - (let ((lbp (line-beginning-position))) - (put-text-property (point) - (progn (search-forward "\n" end 'move) (point)) - 'wrap-prefix - (adaptive-wrap-fill-context-prefix lbp (point)))))) + (and font-lock-fontify-region-function + (funcall font-lock-fontify-region-function beg end)) + (let ((adaptive-fill-function + (or adaptive-fill-function + (and adaptive-fill-regexp + (lambda () + (and (looking-at adaptive-fill-regexp) + (match-string 0))))))) + (while (< (point) end) + (let ((lbp (line-beginning-position))) + (put-text-property (point) + (progn (search-forward "\n" end 'move) (point)) + 'wrap-prefix + (adaptive-wrap-fill-context-prefix lbp (point))))))) ;;;###autoload (define-minor-mode adaptive-wrap-prefix-mode --MP_/0IQODPnqWgqrlBFyNfOG1vB-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 11:38:10 2013 Received: (at 15155) by debbugs.gnu.org; 23 Aug 2013 15:38:11 +0000 Received: from localhost ([127.0.0.1]:50357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtRC-0006hd-Dw for submit@debbugs.gnu.org; Fri, 23 Aug 2013 11:38:10 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:58308) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtRA-0006hU-01 for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 11:38:08 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id r7NFc8W4032373; Fri, 23 Aug 2013 11:38:08 -0400 Received: by pastel.home (Postfix, from userid 20848) id C704B62E6E; Fri, 23 Aug 2013 11:38:05 -0400 (EDT) From: Stefan Monnier To: Frank Fischer Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> <20130823151758.4b4c3f8a@mawo> Date: Fri, 23 Aug 2013 11:38:05 -0400 In-Reply-To: <20130823151758.4b4c3f8a@mawo> (Frank Fischer's message of "Fri, 23 Aug 2013 15:17:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4679=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4679> : streams <1024546> : uri <1515345> X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: 15155 Cc: Eli Zaretskii , 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) > (setq adaptive-fill-function > (lambda () > (and adaptive-fill-regexp > (looking-at adaptive-fill-regexp) > (match-string 0)))) W.r.t the above change, I installed the patch below which should make it unnecessary: --- lisp/textmodes/fill.el 2013-01-02 16:13:04 +0000 +++ lisp/textmodes/fill.el 2013-08-23 15:25:50 +0000 @@ -220,7 +220,7 @@ (let ((str (or (and adaptive-fill-function (funcall adaptive-fill-function)) (and adaptive-fill-regexp (looking-at adaptive-fill-regexp) - (match-string-no-properties 0))))) + (match-string 0))))) (if (>= (+ (current-left-margin) (length str)) (current-fill-column)) ;; Death to insanely long prefixes. nil > hoping that (match-string 0) returns the whole prefix with the correct > fontification. However, there are situations where this does not work: > for example if one has a (very long) wrapped line without comment and > then inserts a semicolon (only one) at the beginning of that line to > comment it out, then the wrap-prefix does not get comment face (to be > precise, it has the correct font, thus your patch works, but not the > correct color). But if one inserts a second semicolon then the > wrap-prefix gets the correct color. I assume this happens because the > wrap-prefix is set before font-lock changed the face of inserted > semicolon. Indeed. It probably depends on whether adaptive-mode-mode was enabled before or after font-lock. Can you try the patch below to see if it fixes this problem for you? Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 11:39:49 2013 Received: (at 15155) by debbugs.gnu.org; 23 Aug 2013 15:39:49 +0000 Received: from localhost ([127.0.0.1]:50366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtSn-0006kC-1N for submit@debbugs.gnu.org; Fri, 23 Aug 2013 11:39:49 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:58641) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtSl-0006k2-5V for 15155@debbugs.gnu.org; Fri, 23 Aug 2013 11:39:47 -0400 Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id r7NFdl9d000785; Fri, 23 Aug 2013 11:39:47 -0400 Received: by pastel.home (Postfix, from userid 20848) id 4957D62E6E; Fri, 23 Aug 2013 11:39:44 -0400 (EDT) From: Stefan Monnier To: Frank Fischer Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> <20130823151758.4b4c3f8a@mawo> Date: Fri, 23 Aug 2013 11:39:44 -0400 In-Reply-To: <20130823151758.4b4c3f8a@mawo> (Frank Fischer's message of "Fri, 23 Aug 2013 15:17:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4679=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4679> : streams <1024546> : uri <1515346> X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: 15155 Cc: Eli Zaretskii , 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) > don't know. If my guess is correct, is it possible to run the > appropriate hooks (I think adaptive-wrap uses > `jit-lock-register`) *after* font-lock changed the face? Or is there > another, better way to detect the correct face? Oops, sorry, here's the patch, Stefan diff --git a/packages/adaptive-wrap/adaptive-wrap.el b/packages/adaptive-wrap/adaptive-wrap.el index 3787a99..9455789 100644 --- a/packages/adaptive-wrap/adaptive-wrap.el +++ b/packages/adaptive-wrap/adaptive-wrap.el @@ -96,7 +96,13 @@ extra indent = 2 :lighter "" :group 'visual-line (if adaptive-wrap-prefix-mode - (jit-lock-register #'adaptive-wrap-prefix-function) + (progn + ;; HACK ATTACK! We need to run after font-lock, but jit-lock-register + ;; doesn't accept an `append' argument, so we add ourselves beforehand, + ;; to make sure we're at the end of the hook (bug#15155). + (add-hook 'jit-lock-functions + #'adaptive-wrap-prefix-function 'append t) + (jit-lock-register #'adaptive-wrap-prefix-function)) (jit-lock-unregister #'adaptive-wrap-prefix-function) (with-silent-modifications (save-restriction Date: Fri, 23 Aug 2013 11:39:05 -0400 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 05:58:45 2013 Received: (at 15155) by debbugs.gnu.org; 24 Aug 2013 09:58:45 +0000 Received: from localhost ([127.0.0.1]:51865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDAcD-0005aV-Hx for submit@debbugs.gnu.org; Sat, 24 Aug 2013 05:58:45 -0400 Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:54843) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDAcB-0005aM-Hx for 15155@debbugs.gnu.org; Sat, 24 Aug 2013 05:58:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=IWGnkLao8Sto4/hAEiHkEzZ2UvU1BHyMv1FMKoTl5nE=; b=vrlVRDNoPYlokkEQxdHRYsR9PDFIQf+GODLjA4b5g5BMjSAoqbMXtRd9G/fUOKMvxaNArq+YEjfg8wRAEzVXUVxSB+2BmOf43faJk6d2NcMa7r1ac9bcFkl6j1X4s5wbHPQ8BDvVh9PZ85Lu2+xU/rOFT79IbbpQ7IrosWSkiZE=; Received: from i59f6a6e6.versanet.de ([89.246.166.230] helo=mawo) by nick.hrz.tu-chemnitz.de with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VDAc9-0002ZW-4q; Sat, 24 Aug 2013 11:58:37 +0200 Date: Sat, 24 Aug 2013 11:58:29 +0200 From: Frank Fischer To: Stefan Monnier Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: <20130824115829.4d0fa2c3@mawo> In-Reply-To: References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> <20130823151758.4b4c3f8a@mawo> Organization: Chemnitz University of Technology X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1377338317-000004FE-ADDCB3B6/0-0/0-0 X-Scan-AV: nick.hrz.tu-chemnitz.de; 2013-08-24 11:58:37; 56bfd6c72870832821a4864965d6e9a6 X-Scan-SA: nick.hrz.tu-chemnitz.de; 2013-08-24 11:58:37; e877212a68732b50fd6d375ef65c22c3 X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 15155 Cc: Eli Zaretskii , 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Am Fri, 23 Aug 2013 11:38:05 -0400 schrieb Stefan Monnier : > Indeed. It probably depends on whether adaptive-mode-mode was enabled > before or after font-lock. Can you try the patch below to see if it > fixes this problem for you? Yes it does, thank you. Frank From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 26 00:14:20 2013 Received: (at 15155) by debbugs.gnu.org; 26 Aug 2013 04:14:20 +0000 Received: from localhost ([127.0.0.1]:55831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDoC3-0007JP-V2 for submit@debbugs.gnu.org; Mon, 26 Aug 2013 00:14:20 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:20459) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VDoC1-0007JH-Gp for 15155@debbugs.gnu.org; Mon, 26 Aug 2013 00:14:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IPAS-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="24133974" Received: from 206-248-179-83.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.179.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Aug 2013 00:14:08 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 99A9CAE1E0; Mon, 26 Aug 2013 00:14:13 -0400 (EDT) From: Stefan Monnier To: Frank Fischer Subject: Re: bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face Message-ID: References: <87ob8q4y67.fsf@mathematik.tu-chemnitz.de> <5215B7EC.10808@mathematik.tu-chemnitz.de> <838uztkc80.fsf@gnu.org> <52162DBA.2040905@mathematik.tu-chemnitz.de> <831u5lk909.fsf@gnu.org> <52163919.7080505@mathematik.tu-chemnitz.de> <83zjs9is0q.fsf@gnu.org> <20130822223246.07dbc5a6@mawo> <83txigj4ea.fsf@gnu.org> <20130823151758.4b4c3f8a@mawo> <20130824115829.4d0fa2c3@mawo> Date: Mon, 26 Aug 2013 00:14:13 -0400 In-Reply-To: <20130824115829.4d0fa2c3@mawo> (Frank Fischer's message of "Sat, 24 Aug 2013 11:58:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 15155 Cc: Eli Zaretskii , 15155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> Indeed. It probably depends on whether adaptive-mode-mode was enabled >> before or after font-lock. Can you try the patch below to see if it >> fixes this problem for you? > Yes it does, thank you. Thanks, installed in trunk, Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 29 13:29:25 2013 Received: (at control) by debbugs.gnu.org; 29 Aug 2013 17:29:25 +0000 Received: from localhost ([127.0.0.1]:57490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VF628-0003zB-2i for submit@debbugs.gnu.org; Thu, 29 Aug 2013 13:29:24 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:34818 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VF626-0003z3-0s for control@debbugs.gnu.org; Thu, 29 Aug 2013 13:29:22 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VF625-0002lL-EV for control@debbugs.gnu.org; Thu, 29 Aug 2013 13:29:21 -0400 Date: Thu, 29 Aug 2013 13:29:21 -0400 Message-Id: Subject: control message for bug 15155 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -7.5 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.5 (-------) close 15155 24.4 From unknown Sun Jun 22 03:57:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 27 Sep 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator