emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tumashu  <tumashu@163.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: BUG: org tag can align proper when tag is Chinese.
Date: Mon, 7 May 2018 21:34:57 +0800 (CST)	[thread overview]
Message-ID: <3d3f6b0.10804.1633acff5ee.Coremail.tumashu@163.com> (raw)
In-Reply-To: <8736z3wqg5.fsf@nicolasgoaziou.fr>


>
>Could you test this change?

Seem to work!


Another problem I have found is that: when having Chinese char, (window-text-width) is not a stable method, but I do
not know how to fix it.
```
(defun org-agenda-align-tags (&optional line)
  "Align all tags in agenda items to `org-agenda-tags-column'."
  (let ((inhibit-read-only t)
	    (org-agenda-tags-column (if (eq 'auto org-agenda-tags-column)
				                    (- (window-text-width))
				                  org-agenda-tags-column))
...
)
```

  reply	other threads:[~2018-05-07 13:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-07 13:12 BUG: org tag can align proper when tag is Chinese tumashu
2018-05-07 13:22 ` Nicolas Goaziou
2018-05-07 13:34   ` tumashu [this message]
2018-05-07 13:58   ` tumashu
2018-05-08 17:38     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d3f6b0.10804.1633acff5ee.Coremail.tumashu@163.com \
    --to=tumashu@163.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).