Thomas S. Dye <tsd <at> tsdye.com> writes: > > Charles Berry <ccberry <at> ucsd.edu> writes: >
[filter to demo extracting back-end name deleted] > > > > ,---- > > | type-of back-end: vector > > | name of back-end: latex > > `---- > > Yes, it does. > > > > > Take a look at "(defstruct (org-export-backend..." in ox.el > > OK, I had a look at org-export-backend, but not sure what I'm looking > for in particular. > > I did note that you don't test back-end directly, but instead look at > org-export-backend-name. Perhaps this is what Nicolas means by "Filters > defined here shouldn't make a back-end test, as it may prevent back-ends > derived from this one to behave properly"? That comment was in the context of back-end specific filters and aimed at back-end developers. You are adding to org-export-filter-plain-text-functions, which is for users. So, go ahead and test. > > However, changing my filter so it uses org-export-backend-name doesn't > seem to change anything. > > Or, was I supposed to learn something else from ox.el? > The changes introduced in commit cea0434c4f7f7f1fc1547e6790b96a76bc217e15 ox: Change back-ends internal representation to structures necessitate extracting the name of the back-end from a vector. So, this bit of code (memq backend '(beamer latex)) will never return t, because backend is a vector. Probably what you want is (memq (org-export-backend-name backend) '(latex beamer)) HTH,