commit efbc6d6e8c7c6c6b0c9c71b1509969b5f1024ff3
parent 652183ee428d400c65affb3280a3ce1124fa106a
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Thu, 19 Jul 2018 18:37:04 +0200
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:
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
@@ -1,5 +1,5 @@
# Peniblec's Memory Leaks
-## still reachable: 5713 words in 11 pages
+## still reachable: 5802 words in 11 pages
Hi! I am a software engineer interested in [a bunch of things].
diff --git 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