From mboxrd@z Thu Jan 1 00:00:00 1970 From: HIRATA Tadashi Subject: Bug: org-indent-boundary-char doesn't have org-indent face [9.1.9 (release_9.1.9-65-g5e4542 @ c:/Program Files/emacs-26.1-x86_64/share/emacs/26.1/lisp/org/)] Date: Tue, 24 Jul 2018 10:18:23 +0900 (JST) Message-ID: <20180724.101823.1009140464250784824.t1-hirata@lilac.nri.co.jp> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhlyG-0000EB-Cm for emacs-orgmode@gnu.org; Mon, 23 Jul 2018 21:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhlyA-00077i-K2 for emacs-orgmode@gnu.org; Mon, 23 Jul 2018 21:18:35 -0400 Received: from nrigw01.index.or.jp ([133.250.250.1]:1048 helo=nrifs03.index.or.jp) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhly9-00076j-S6 for emacs-orgmode@gnu.org; Mon, 23 Jul 2018 21:18:30 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hello org-mode developers, I found a bug that org-indent-boundary-char doens't have org-indent face property in org-indent-mode. This causes an appearance issue when you use org-mode with whitespace-mode that you can't control org-indent-boundary-char's face neither whitespace-space face nor org-indent face. Here is a quick patch to fix the problem. (though I test it in 9.1.9, but it should work well in the latest version). Sincerely, Tadashi ------------------------------------------------------------------------ diff -u org-indent.el_org org-indent.el --- org-indent.el_org 2018-07-23 14:13:06.045078400 +0900 +++ org-indent.el 2018-07-24 10:00:57.898200400 +0900 @@ -150,10 +150,11 @@ ;; Text line prefixes. (aset org-indent--text-line-prefixes n - (concat (org-add-props (make-string (+ n indentation) ?\s) - nil 'face 'org-indent) - (and (> n 0) - (char-to-string org-indent-boundary-char))))))) + (org-add-props + (concat (make-string (+ n indentation) ?\s) + (and (> n 0) + (char-to-string org-indent-boundary-char))) + nil 'face 'org-indent))))) (defsubst org-indent-remove-properties (beg end) "Remove indentations between BEG and END." ------------------------------------------------------------------------ Emacs : GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-31 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ c:/Program Files/emacs-26.1-x86_64/share/emacs/26.1/lisp/org/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-time-stamp-custom-formats '("<%Y/%m/%d>" . "<%Y/%m/%d %H:%M>") org-indent-boundary-char 124 org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes (lambda nil (setq truncate-lines nil) (define-key org-mode-map "\346" (quote org-metaright)) (define-key org-mode-map "\342" (quote org-metaleft)) (define-key org-mode-map "\360" (quote org-metaup)) (define-key org-mode-map "\356" (quote org-metadown)) (define-key org-mode-map "\306" (quote org-shiftmetaright)) (define-key org-mode-map "\302" (quote org-shiftmetaleft)) (define-key org-mode-map "\320" (quote org-shiftmetaup)) (define-key org-mode-map "\316" (quote org-shiftmetadown)) (set-face-foreground (quote org-level-1) "DeepSkyBlue") (set-face-foreground (quote org-level-2) "MediumBlue") (set-face-foreground (quote org-level-3) "DodgerBlue") (set-face-foreground (quote org-level-4) "SlateBlue") (set-face-foreground (quote org-level-5) "LightSeaGreen") (set-face-foreground (quote org-level-6) "DarkGreen") (set-face-foreground (quote org-level-7) "gray40") (set-face-foreground (quote org-level-8) "gray60") (set-face-foreground (quote org-indent) "gray100")) ) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-startup-indented t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-hide-leading-stars t org-occur-hook '(org-first-headline-recenter) org-cycle-separator-lines 0 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("id" :follow org-id-open) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs") ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path)))) ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path)))) ("https" :follow (lambda (path) (browse-url (concat "https:" path)))) ("mailto" :follow (lambda (path) (browse-url (concat "mailto:" path)))) ("news" :follow (lambda (path) (browse-url (concat "news:" path)))) ("shell" :follow org--open-shell-link)) org-display-custom-times t )