diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2018-07-19 18:37:04 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2018-07-19 18:38:21 +0200 |
| commit | efbc6d6e8c7c6c6b0c9c71b1509969b5f1024ff3 (patch) | |
| tree | 10f8dd7c4617a05231d7b0619828e0d010863896 /personal/itches.md | |
| parent | 652183ee428d400c65affb3280a3ce1124fa106a (diff) | |
| download | memory-leaks-efbc6d6e8c7c6c6b0c9c71b1509969b5f1024ff3.tar.xz | |
Add more notes on Narrow itch
Also ditch reference to EmojiOne; I mentioned it because Firefox
shipped with it, but it seems not to be the case anymore.
Diffstat (limited to 'personal/itches.md')
| -rw-r--r-- | personal/itches.md | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/personal/itches.md b/personal/itches.md index acc71c3..65a5696 100644 --- a/personal/itches.md +++ b/personal/itches.md @@ -14,7 +14,7 @@ - [.dir-locals changed priorities][bug#30008] between subfolder and major mode from 25 to 26 - eshell: `ls --group-directories-first` does not color folders -- Emoji(One) support +- emoji support - eww, gnus-article: adapt filling to window width changes - scroll-lock-mode - cursor stuck on lines wrapped by visual-line-mode @@ -64,6 +64,9 @@ TODO: 1. get the string value of a variable in C 2. define a customizable string variable +3. write a news entry +4. write a patch +5. extra credits: display string properties ### Get the string value of a variable in C @@ -111,8 +114,8 @@ Mmm. Not in `cus-start.el`. There is this snippet in `callproc.c:init_callproc`: ``` c - sh = getenv ("SHELL"); - Vshell_file_name = build_string (sh ? sh : "/bin/sh"); +sh = getenv ("SHELL"); +Vshell_file_name = build_string (sh ? sh : "/bin/sh"); ``` But when starting with `SHELL=rofl emacs -Q`, Custom says that the @@ -209,12 +212,12 @@ Gah! How long have you been there? ``` c /* Return a string for the output of a mode line %-spec for window W, - generated by character C. … Return a Lisp string in + generated by character C. […] Return a Lisp string in *STRING if the resulting string is taken from that Lisp string. - … */ + […] */ static const char * decode_mode_spec (struct window *w, register int c, int field_width, - Lisp_Object *string) + Lisp_Object *string) { Lisp_Object obj; /* … */ @@ -225,6 +228,7 @@ decode_mode_spec (struct window *w, register int c, int field_width, { /* … */ } + if (STRINGP (obj)) { *string = obj; @@ -235,9 +239,14 @@ decode_mode_spec (struct window *w, register int c, int field_width, } ``` -### Dumb questions +Alright then: -- which Custom group(s) should this go into? +``` c +case 'n': + if (BUF_BEGV (b) > BUF_BEG (b) || BUF_ZV (b) < BUF_Z (b)) + obj = Vnarrow_lighter; + break; +``` ## Better out-of-the-box display for FORM FEED |
