kiwanami / emacs-calfw

A calendar framework for Emacs
1.17k stars 100 forks source link

Always overflow hoizontally, after cfw:refresh-calendar-buffer #75

Open ymd-h opened 8 years ago

ymd-h commented 8 years ago

Hello,

When I call cfw:refesh-calendar-buffer, the calendar components always overflow 1 character. (Last character is overlapped by continuation glyph.)

It seems that calfw takes width from function window-width, which has following notice in its document:

Note that the returned value includes the column reserved for the continuation glyph.

I tried in other buffers too and confirmed that I could write only "(window-width) -1" characters in one line.

calfw 20150831.1847 GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0) of 2015-08-20 Terminal.app 2.5.3 (343.7) OS X Yosemite 10.10.5 (14F27)

Thank you.

kiwanami commented 8 years ago

@yamada-github-account Thank you for your report. I can not reproduce the overflow situation in the standalone Emacs. Does it occur only in the terminal environment? Anyway, I'll try to check it on the terminal in Linux and Mac later.

ymd-h commented 8 years ago

@kiwanami, thank you for your reply.

I tried on GUI Emacs, "Gnu Emacs 24.5.1 (x86_64-apple-darwin14.5.0, Carbon Version 157 AppKit 1348.17) of 2015-09-20", which seems to be OK.

According to GNU Emacs Manual, Emacs writes arrow ("return mark") in the fringes on graphical terminal. http://www.gnu.org/software/emacs/manual/html_node/elisp/Display-Tables.html So I assume this overlap happens only in a character terminal.