-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot customize some faces of org-transclusion #174
Comments
Yep. Sorry its my bad. I confirm org-transclude-keyword is working. Thanks for the prompt response. |
Faces 'org-transclusion' and 'org-transclusion-source' were removed in favour of the fringes, but in some cases they are still useful -- e.g. when org-indent-mode or org-modern override the fringe. Tested also the terminal (no graphical environment).
The latest commit has add the faces back in. If you are still around, it would be great if you could spend some time to do a quick test. The commit should make its way to GNU-devel repository overnight. Absolutely fine if you don't have time; wanted to let you know anyway. Thanks for reporting the issue; it helps improve the package for real usage. |
Hi, thanks a lot for your efforts. Always early enough. Glad to test your latest development. I need clarification as to which commit you meant for testing. Currently, I am trying the one that starts with 0273975. If you meant a different one, please let me know. These are my test results:
Note: when I fiddle around with the transclude region and hit save the buffer, it will take forever and not get saved. I realized then that the buffer is creating multiples of the #+transclude line, and the buffer size is getting bigger and bigger with time. I noticed this issue in the previous versions as well. By the time I canceled saving, I had too many multiples of transclude lines to deal with and delete. My last resort, a poor man's solution, was to delete the whole buffer or close emacs altogether, which was unfortunate sometimes. |
Thank you for taking the time for reporting back; much appreciated.
Yes, it is a good commit to test. Apologies, the commit I was referring to was linked and appear in this thread in GitHub website, so I thought it would be enough. Perhaps you prefer to work with email for this type of communication and didn't see the linked commit. I will try to be clear next time. Thank you. The commit was actually only about the topic of this thread: "cannot customize some faces of org-transclusion". Thank you for noting other observations. I will respond to each one below. Faces
These are the two faces that you originally reported, which I added back in. In order not to influence other users, the default is "transparent" -- only the face definition with empty specification. You'd have to add color and other specifications on your end to see the effect. I will make this clear in the user manual and document string for these two faces.
|
Added some documentation for "transparent" default face specification. |
Thank you for keeping the documentation updated. However, I have no clue how to add color to the face when it is transparent. Sorry for that. Could you please have a look at the screenshot below? As such, the face color didn't change on my end. What am I missing? Or how to add color to the face according to the updated documentation? |
“Transparent” simply means there is no specification (no color) by default. At a quick glance, the screen looks good to me. Does it not do anything? |
That one is for the source. So won’t change the transclusion, though. Transclusion has its own face. |
Okay, thank you. I am looking. I may be seeing something wrong with the latest codebase... Maybe I made a mess with git... Let me check. |
Okay, definitely something went wrong with codebase change. Thank you for quickly returning to my request. I will look more carefully later today (probably evening in my timezone). |
You're welcome! It's always a pleasure to be of assistance. |
This part was supposed to be part of commit 16c3576 and was simply a human error that it was not. The priority should be lower than the overlays from live-sync, which is -50. That's why it's set as -60 here.
The new commit bc24be2 should fix the issue.... The two faces 'org-transclusion' and 'org-transclusion-source' would still need to be customized to add any shade of colors, like these below: |
Sorry for getting back late. This is to confirm that both transclusion and source overlays are working as expected. Thanks a lot for your great work. |
@ffsammak Thank you for confirming :) |
I can see and get the following faces customized by M-x customize-faces and list-faces-display:
org-transclusion-live-sync-start works fine and shows the corresponding custom-faces
However, for the faces below I cannot see anything changing no matter how I do customizations to them:
I am using vanilla Emacs and started to debug this issue by running emacs -Q but to no avail. I use straight for package installation and use-package for their configuration.
So in summary, all custom-faces are fine except: org-transclusion, org-transclusion-source, and org-transclusion-keyword they don't get changed. Is this a known limitation, or am I missing something? I tried to progressively comment packages/code to identify any interfering setup code in my init.el but to no avail. Any help would be appreciated.
of 2023-03-02
The text was updated successfully, but these errors were encountered: