How can I silence the hyperref warnings:
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\EXD@break' on input line 7.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\@ifnextchar' on input line 7.
when using the extdash package? I have tried to use pdfstringdefDisableCommands but couldn't find out what to put in there. What I would like to prevent is having to remember to use \texorpdfstring every time I use the extdash commands in sections.
MWE
\documentclass{article}
\usepackage[shortcuts]{extdash}
\usepackage{hyperref}
\begin{document}
\section{This is a test\-/Thing}
\end{document}

pdfstringdefDisableCommands? – languitar Mar 21 '17 at 12:34\pdfstringdefDisableCommands{\def\-{-}}, but you'll have to live with the slash in the bookmark. Unless\-/is the only dash you use in the section titles; in this case\pdfstringdefDisableCommands{\def\-/{-}}would do. Doing a look ahead is not possible. – egreg Mar 21 '17 at 12:38\=, let me know. – egreg Mar 21 '17 at 13:02