From efbc6d6e8c7c6c6b0c9c71b1509969b5f1024ff3 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 19 Jul 2018 18:37:04 +0200 Subject: 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. --- personal/itches.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'personal') 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 -- cgit v1.2.3