projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a38fd
)
; * lisp/progmodes/gdb-mi.el (gdb-load-history): Add doc string.
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 21 Dec 2023 11:57:00 +0000
(13:57 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 21 Dec 2023 11:57:00 +0000
(13:57 +0200)
lisp/progmodes/gdb-mi.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/gdb-mi.el
b/lisp/progmodes/gdb-mi.el
index cbb165a6a0c1cf501d7ac1e9f865113cffd54fee..b92514b4d0ae658395426cdcfe0b477fefac2fa7 100644
(file)
--- 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)