Personal emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.8 KiB

  1. ;; Copyright (C) 2011, 2014, 2016 Free Software Foundation, Inc
  2. ;; Author: Rocky Bernstein <rocky@gnu.org>
  3. ;; This program is free software; you can redistribute it and/or modify
  4. ;; it under the terms of the GNU General Public License as published by
  5. ;; the Free Software Foundation, either version 3 of the License, or
  6. ;; (at your option) any later version.
  7. ;; `trepanpl' Main interface to trepanpl via Emacs
  8. (require 'load-relative)
  9. (require-relative-list '("../../common/helper") "realgud-")
  10. (require-relative-list '("../../common/track") "realgud-")
  11. (require-relative-list '("../../common/run") "realgud:")
  12. (require-relative-list '("core" "track-mode") "realgud:trepanpl-")
  13. ;; This is needed, or at least the docstring part of it is needed to
  14. ;; get the customization menu to work in Emacs 24.
  15. (defgroup realgud:trepanpl nil
  16. "The realgud interface to the Perl \"trepanning\" debugger"
  17. :group 'perl
  18. :group 'realgud
  19. :version "25.1")
  20. ;; -------------------------------------------------------------------
  21. ;; User definable variables
  22. ;;
  23. (defcustom realgud:trepanpl-command-name
  24. "trepan.pl"
  25. "File name for executing the Perl debugger and command options.
  26. This should be an executable on your path, or an absolute file name."
  27. :type 'string
  28. :group 'realgud:trepanpl)
  29. ;; -------------------------------------------------------------------
  30. ;; The end.
  31. ;;
  32. (declare-function realgud:trepanpl-track-mode 'realgud-trepanpl-track)
  33. (declare-function realgud:trepanpl-query-cmdline 'realgud-trepanpl-core)
  34. (declare-function realgud:trepanpl-parse-cmd-args 'realgud-trepanpl-core)
  35. (declare-function realgud:run-debugger 'realgud:run)
  36. ;;;###autoload
  37. (defun realgud:trepan.pl (&optional opt-cmd-line no-reset)
  38. "Invoke the trepan.pl Perl debugger and start the Emacs user interface.
  39. String OPT-CMD-LINE specifies how to run trepan.pl. You will be prompted
  40. for a command line is one isn't supplied.
  41. OPT-CMD-LINE is treated like a shell string; arguments are
  42. tokenized by `split-string-and-unquote'. The tokenized string is
  43. parsed by `realgud:trepanpl-parse-cmd-args' and path elements found by that
  44. are expanded using `realgud:expand-file-name-if-exists'.
  45. Normally, command buffers are reused when the same debugger is
  46. reinvoked inside a command buffer with a similar command. If we
  47. discover that the buffer has prior command-buffer information and
  48. NO-RESET is nil, then that information which may point into other
  49. buffers and source buffers which may contain marks and fringe or
  50. marginal icons is reset. See `loc-changes-clear-buffer' to clear
  51. fringe and marginal icons.
  52. "
  53. (interactive)
  54. (realgud:run-debugger "trepan.pl" 'realgud:trepanpl-query-cmdline
  55. 'realgud:trepanpl-parse-cmd-args
  56. 'realgud:trepanpl-minibuffer-history
  57. opt-cmd-line no-reset))
  58. ;;;###autoload
  59. (defalias 'trepan.pl 'realgud:trepan.pl)
  60. (provide-me "realgud-")
  61. ;;; trepanpl.el ends here