[okular] [Bug 518741] New: Add column-number to emacsclient command in editor-settings

Robert Spillner bugzilla_noreply at kde.org
Thu Apr 9 17:45:51 BST 2026


https://bugs.kde.org/show_bug.cgi?id=518741

            Bug ID: 518741
           Summary: Add column-number to emacsclient command in
                    editor-settings
    Classification: Applications
           Product: okular
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: trent2 at web.de
  Target Milestone: ---

Add column-number to emacsclient command in editor-settings.
SUMMARY
When using references in pdf-files to call an editor at the point of editing
the column number is not given as an argument to emacsclient.
While at it it, wouldn't it be preferable to make the commands editable in the
settings, not only the user-defined entry?

STEPS TO REPRODUCE
1. Configure Emacs (emacsclient) as the default editor in Settings.
2. E. g. in a lilypond pdf-file click on a musical note to open the configured
editor.
3. Emacs is opened at the specific line but not at the column though it is
given in the link.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Easily done by this patch

--- a/core/texteditors_p.h      2026-03-01 04:29:10.000000000 +0100
+++ b/core/texteditors_p.h      2026-04-09 11:38:55.579037920 +0200
@@ -20,7 +20,7 @@
     editors.insert(SettingsCore::EnumExternalEditor::Kate,
QStringLiteral("kate --line %l --column %c"));
     editors.insert(SettingsCore::EnumExternalEditor::Kile,
QStringLiteral("kile --line %l"));
     editors.insert(SettingsCore::EnumExternalEditor::Scite,
QStringLiteral("scite %f \"-goto:%l,%c\""));
-    editors.insert(SettingsCore::EnumExternalEditor::Emacsclient,
QStringLiteral("emacsclient -a emacs --no-wait +%l %f"));
+    editors.insert(SettingsCore::EnumExternalEditor::Emacsclient,
QStringLiteral("emacsclient -a emacs --no-wait +%l:%c %f"));
     editors.insert(SettingsCore::EnumExternalEditor::Lyxclient,
QStringLiteral("lyxclient -g %f %l"));
     editors.insert(SettingsCore::EnumExternalEditor::Texstudio,
QStringLiteral("texstudio --line %l"));
     editors.insert(SettingsCore::EnumExternalEditor::Texifyidea,
QStringLiteral("idea --line %l"));

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list