profile
viewpoint

peniblec/eighters-theme 0

Eighters gonna eight.

peniblec/kaplya 0

Serverless chat client.

peniblec/latex-docker 0

Docker-based latex compilation

peniblec/magit 0

It's Magit! A Git Porcelain inside Emacs.

peniblec/markdown-mode 0

Emacs Markdown Mode

peniblec/page-break-lines 0

Emacs: display ugly ^L page breaks as tidy horizontal lines

peniblec/paradox 0

Project for modernizing Emacs' Package Menu. With package ratings, usage statistics, customizability, and more.

issue commentdgutov/diff-hl

Weird interaction between diff-hl-flydiff-mode and org-indent-mode

You're welcome! I don't think we're completely out of the woods yet, but now it's clear that it's neither a diff-hl bug nor an org-indent one!

peniblec

comment created time in a month

issue commentdgutov/diff-hl

Weird interaction between diff-hl-flydiff-mode and org-indent-mode

OK, I'll report this with the following recipe:

  • emacs -Q

  • C-x C-f repro.org RET

  • M-x org-indent-mode RET

  • * heading RET foo (no RET yet)

  • M-:

    (let ((ov (make-overlay (point-at-bol) (point-at-bol)))
          (val (propertize " " 'display '((left-fringe right-triangle)))))
      (overlay-put ov 'before-string val))
    
  • RET a

Factlet Of The Day: typing characters with syntax ) (closing delimiters watched by blink-paren-post-self-insert-function) causes the line-prefix to come back.

peniblec

comment created time in a month

issue commentdgutov/diff-hl

Weird interaction between diff-hl-flydiff-mode and org-indent-mode

I've tried to M-x debug-on-entry RET self-insert-command; I've stepped through this function, after-change-functions and post-self-insert-hook as carefully as I could, but the bug does not show up while debugging.

I've also tried (setq-local after-change-functions nil); this causes the current line to jitter, instead of the previous one. That made me want to try to inspect these functions; since stepping through does not show anything, I've advised each function as follows, in order to see when the previous line gets shoved to the left:

(defun my/dbg (prefix f)
  (lambda (&rest r)
    (message "%s %s" prefix (symbol-name f))
    (redisplay)
    (sleep-for 1.0)))

(dolist (f after-change-functions)
  (when (functionp f)
    (advice-add f :before (my/dbg "before" f))
    (advice-add f :after (my/dbg "after" f))))

AFAICT, there are two functions that cause the previous line to be shifted left (meaning as long as one of them is in after-change-functions, the shift happens on the previous line). I've tried to isolate which statements cause the shift and I think it comes down to:

  • in jit-lock-after-change, the call to put-text-property,
  • in org-indent-refresh-maybe, down the call stack in org-indent-set-line-properties, the call to add-text-properties.

Before those statements, the current line is shifted left; after whichever runs first, the previous line is shifted left.

If diff-hl-flydiff-mode is disabled, no shift happens.

Digging down add_text_properties_1, I see that signal_after_change eventually calls report_overlay_modification, which I'm going to assume eventually calls the hooks set on diff-hl's overlays, which are set to diff-hl-overlay-modified, which diff-hl-flydiff-mode overrides to ignore, and… I'm stumped.

Maybe I should M-x report-emacs-bug?

peniblec

comment created time in a month

issue commentdgutov/diff-hl

Weird interaction between diff-hl-flydiff-mode and org-indent-mode

FWIW[^1], removing diff-hl-flydiff-mode's :override #'ignore advice on diff-hl-overlay-modified makes the jumping stop; what happens instead is that diff-hl's fringe highlighting disappears while I type, and re-appears after a small delay once I stop typing.

[^1]: which is probably not much, since I'm pretty far into "commenting out random stuff hoping things will start making sense" territory; I just figured I'd drop this factlet before hitting the hay.

peniblec

comment created time in a month

issue openeddgutov/diff-hl

Weird interaction between diff-hl-flydiff-mode and org-indent-mode

Hello,

I'm seeing a strange interaction between diff-hl-flydiff-mode and org-indent-mode. When typing in the body of an Org section that is part of an added hunk, on every input, the line before point moves to the left margin. It remains there as long as I keep typing; when I stop, the line moves back to (* org-indent-indentation-per-level (org-current-level)) after a short delay.

To reproduce:

#!/bin/bash

git init repro
cd repro
echo "* heading" > repro.org
git add repro.org
git commit -m "repro"
emacs -Q repro.org

Then:

  • M-x package-initialize
  • M-x diff-hl-mode
  • M-x diff-hl-flydiff-mode
  • M-x org-indent-mode
  • M->
  • a RET a

Inputting the second a causes the first a to be shoved to the left margin.

I have no idea whether things ought to be fixed in diff-hl or in org-indent; I could not figure out what causes this. I don't mind bringing this to the Org mailing list once I understand what's happening…

Reproduced with

  • emacs 26.3 and 28
  • diff-hl 20200510.1540

Let me know if there is anything I can do to help debug this.

created time in a month

PR opened alexisduque/latex-docker

Generate necessary locale for Unicode charset

I think that's all that's needed to get Python to do TRT automatically with UTF-8 files.

+2 -0

0 comment

1 changed file

pr created time in 2 months

push eventpeniblec/latex-docker

Kévin Le Gouguec

commit sha dd0b8979b367acb247298996905f837a563b6103

Generate necessary locale for Unicode charset

view details

push time in 2 months

push eventpeniblec/latex-docker

Kévin Le Gouguec

commit sha dd0b8979b367acb247298996905f837a563b6103

Generate necessary locale for Unicode charset

view details

push time in 2 months

PR closed alexisduque/latex-docker

Generate necessary locale for Unicode charset

I think that's all that's needed to get Python to do TRT automatically with UTF-8 files.

+2 -0

0 comment

1 changed file

peniblec

pr closed time in 2 months

PR opened alexisduque/latex-docker

Generate necessary locale for Unicode charset

I think that's all that's needed to get Python to do TRT automatically with UTF-8 files.

+2 -0

0 comment

1 changed file

pr created time in 2 months

create barnchpeniblec/latex-docker

branch : fix-locale

created branch time in 2 months

fork peniblec/latex-docker

Docker-based latex compilation

fork in 2 months

more