[emacs-w3m:13252] Re: [emacs-w3m/emacs-w3m] Bb history display (#4)

yamaoka <[email protected]>
Newsgroups gmane.emacs.w3m
Message-ID <emacs-w3m/emacs-w3m/pull/4/[email protected]>
@Boruch-Baum 
> [line 10821] (width (- (w3m-display-width) 21)): @yamaoka says that this is because how 'wide' characters appear differently in different environments. If so, is this really the correct solution?

`w3m-db-history-fix-indentation' and tweaking the `width' (-21) are no more than a workarounds.

> It doesn't properly handle the character in my utf-8 environment, and what about any number of wide characters that could be present in the URL title? Shouldn't there be some kind of environment check and count of all the wide characters, instead of just adding '2' in all cases, even if its not needed?

That is a w3m problem, not that of Emacs or emacs-w3m, I think (though Emacs on TTY makes a mysterious behavior).    Emacs (at least the ones I have) says that the string width of "…" is 2 no matter what display (X or TTY) or font is used.    Please try the attached ELisp snippet and

Eval: (and (search-forward "bar" nil t) (goto-char (match-beginning 0)))

in the beginning of each "foo" line.
[ELisp2.gz](https://github.com/emacs-w3m/emacs-w3m/files/2898701/ELisp2.gz)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/emacs-w3m/emacs-w3m/pull/4#issuecomment-466844314
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.