# HG changeset patch # User Oleksandr Gavenko # Date 1459539487 -10800 # Node ID 6a772e1fc63d9240e5008f3756b825bdd1941bfe # Parent c97e9c1febe872ddf1f2dd3a6b49723f783a66a5 Add bracket for pronunciation if headword is provided. Recenter point for best view. diff -r c97e9c1febe8 -r 6a772e1fc63d contrib/gadict.el --- a/contrib/gadict.el Wed Mar 30 20:31:12 2016 +0300 +++ b/contrib/gadict.el Fri Apr 01 22:38:07 2016 +0300 @@ -133,7 +133,11 @@ (insert-char ?\n) (re-search-backward "^$")) (backward-char) - (when headword (insert headword))) + (when headword + (insert headword) + (insert "\n []") + (backward-char)) + (recenter-top-bottom)) (defun gadict-search-floor (headword) "Move to HEADWORD definition or place before definition should