From 33ea4ed754b903d573dcd823a96032760353649a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 21 Dec 2023 13:57:00 +0200 Subject: [PATCH] ; * lisp/progmodes/gdb-mi.el (gdb-load-history): Add doc string. (cherry picked from commit ff3965795fb80681111708e104f1edd32bdb6199) --- lisp/progmodes/gdb-mi.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5