diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2023-12-21 13:57:00 +0200 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2023-12-21 13:57:00 +0200 |
| commit | ff3965795fb80681111708e104f1edd32bdb6199 (patch) | |
| tree | 63f0bd8d68d3e419646ecff3c62466c51be90d65 | |
| parent | 63a38fd2921269b6fbacf8a8bbd31b91df8f31a1 (diff) | |
; * lisp/progmodes/gdb-mi.el (gdb-load-history): Add doc string.
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index cbb165a6a0c..b92514b4d0a 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -818,6 +818,9 @@ NOARG must be t when this macro is used outside `gud-def'." (defvar gdb-control-level 0) (defun gdb-load-history () + "Load GDB history from a history file. +The name of the history file is given by environment variable GDBHISTFILE, +falling back to \".gdb_history\" and \".gdbinit\"." (when (ring-empty-p comint-input-ring) ; cf shell-mode (let ((hfile (expand-file-name (or (getenv "GDBHISTFILE") (if (eq system-type 'ms-dos) |
