Post AHTVdgvrGcgqOpnvIO by dasyatidprime@mastodon.technology
(DIR) More posts by dasyatidprime@mastodon.technology
(DIR) Post #AHSQyyJX8vq9SdFKCG by Azure@tailswish.industries
2022-03-16T03:22:44.348898Z
0 likes, 0 repeats
Well!That's interesting.I had thought Emacs's bidirectional editing might have been broken, but it's actually just behaving differently in text and programming modes.
(DIR) Post #AHSR14bmiBgPYsmjh2 by Azure@tailswish.industries
2022-03-16T03:23:08.188895Z
0 likes, 0 repeats
(In this case, the *scratch* buffer was behaving very differently in rendering text in Lisp interaction mode than it was in Text mode.)
(DIR) Post #AHTVdgvrGcgqOpnvIO by dasyatidprime@mastodon.technology
2022-03-16T12:29:06Z
0 likes, 0 repeats
@Azure What was the behavioral difference?
(DIR) Post #AHTVdhNVboo9mak0OW by Azure@tailswish.industries
2022-03-16T15:49:38.139391Z
0 likes, 0 repeats
@dasyatidprime Text mode it starts at the right margin and goes left and the insertion point is at the 'last' (leftmost) character.Programming mode it starts at the left margin and moves right, but still RTL, with the insertion point at the rightmost spot even if new characters appear at the leftmost.
(DIR) Post #AHTwzlUpfyWNgiug7c by dasyatidprime@mastodon.technology
2022-03-16T19:42:19Z
1 likes, 0 repeats
@Azure Interesting. I imagine that's probably a variable that affects redisplay somewhere. I wonder which one.
(DIR) Post #AHTwzm4HYAsTSfUzNQ by dasyatidprime@mastodon.technology
2022-03-16T19:54:53Z
1 likes, 0 repeats
@Azure Via apropos, brief experiment, and link-chasing in describe-function, there it is:(define-derived-mode prog-mode fundamental-mode "Prog" "Major mode for editing programming language source code." (setq-local require-final-newline mode-require-final-newline) (setq-local parse-sexp-ignore-comments t) ;; Any programming language is always written left to right. (setq bidi-paragraph-direction 'left-to-right))