From: Eli Zaretskii Date: Thu, 21 Dec 2023 11:57:00 +0000 (+0200) Subject: ; * lisp/progmodes/gdb-mi.el (gdb-load-history): Add doc string. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ff3965795fb80681111708e104f1edd32bdb6199;p=emacs.git ; * lisp/progmodes/gdb-mi.el (gdb-load-history): Add doc string. --- 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)