Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [history]

The tag has no usage guidance.

0
votes
1answer
48 views

How to save a file history?

Is there any packages or extension that will save a file history when you save the file? Example when I save the file it will create a file history of the file and on the later time when I save it ...
2
votes
1answer
58 views

open files at last-edited position

What I want to achieve is this. I open a bunch of files, edit them and quit Emacs. then tomorrow I open one the files and I want Emacs to jump to the last edited position on that file. How can I ...
1
vote
2answers
23 views

How show and filter search text interactively in separate buffer?

Emacs 26.1 Suppose I find any text in buffer: C-s find_text_1 Input Enter C-s find_text_2 Input Enter So if I want to again find text find_text_1 I press C-s then M-p. OK. It's work. Nice. If I ...
1
vote
1answer
52 views

Shell mode: moving through the command history

In a shell in a terminal (Gnome Terminal + bash), the up and down keys allow me to browse through my command history. In shell-mode inside emacs, the up and down keys move around the buffer, which is ...
1
vote
1answer
83 views

How to scroll back through the command line history in the Emacs interactive subshell?

Let us say in the interactive subshell I run these commands: command_a command-b command_c ... command_z I type M-p to go back to command_z. But how can I scroll back the history of commands until ...
2
votes
1answer
56 views

Save *everything* across sessions

When I quit Emacs, nothing is saved, such as my search history, my command history, my replace strings, etc. I want EVERYTHING saved. How do I do that? And by everything, I mean at least the ...
1
vote
0answers
45 views

Show history of command in MATLAB shell

I used the command matlab-shell for opening a new MATLAB instance inside emacs. How can I have a functionality similar to the of MATLAB which allows to see at once the most recent commands and to ...
7
votes
2answers
1k views

How to find out what command I just accidentally ran with a keyboard shortcut?

Is there a place where emacs stores commands the user has recently executed, in particular via keyboard shortcuts, and if not, would it be possible to tell it to store them somewhere? I sometimes type ...
0
votes
2answers
100 views

Make the emacs command history size unlimited so I can keep track of files?

I'd like to make the size of the emacs command history unlimited. I open and edit too many files in many different folders and I need a way to keep track of them. The emacs command history looks ...
4
votes
1answer
141 views

use isearch to search the search-ring?

In the minibuffer, M-p (previous-history-element) is useful, but I find C-r (isearch-backward) to be even better, as it lets me recall a specific history element without going through them one by one. ...
13
votes
0answers
986 views

Number of Emacs users in the world?

I saw someone on Twitter posing the question: It struck me as a very interesting question and got me thinking about how large the community actually is! I came up with two data points: Based on the ...
5
votes
2answers
242 views

Save *Messages* history

Many procedures in Emacs write to the *Messages* buffer. I usually kill it from time to time. My problem is that the content gets deleted once the buffer get killed. Is there a way to preserve the ...
3
votes
4answers
294 views

Why does the member function return a list's tail rather than t?

Why does Elisp (member '3 '(1 2 3 4 5 6)) return (3 4 5 6) instead of t (true) or 3, or (3)? I see the utility of a function to return the remainder/tail of an ordered list starting from, and ...
3
votes
1answer
700 views

emacs history (invalid-read-syntax “#”)

Emacs fails to load my init.el file after it fails to load .emacs.d/history file from (savehist-mode 1) Here's the minimum history file (setq minibuffer-history '("/home/eugenekim/.emacs.d/init.el" "...
5
votes
0answers
73 views

undo-tree tree manipulation/cherry picking?

Is it possible to cherrypick changes from different branches in undo tree? For example say I make a change call it change1. I then undo, and make a change, call it change2. I then undo, and make a ...
1
vote
1answer
249 views

Navigate cursor position history with line-based jumps

I use point-undo to jump between positions in the cursor history. However, point-undo uses every previous position of the cursor, and I often experience that what I actually want is to jump just to ...
1
vote
0answers
68 views

Is there a package to search in history of changes?

While editing files, time to time I regret deleting some redundant parts which afterwards become necessary. Let's say you are writing a letter and first you explained your thoughts with redundantly ...
0
votes
1answer
198 views

Can I exclude .git/COMMIT_EDITMSG from file-name-history?

Is there a way to exclude .git/COMMIT_EDITMSG files from file-name-history? Now that I'm authoring commits with Magit, those commit message files are often the most recent entries in file-name-history,...
0
votes
2answers
113 views

What sort of terminal did the guy who wrote emacs have?

Prompted by this question about why hjkl are the keys used to move the cursor around in VIM, what did the keyboard / terminal look like that emacs was written on?
4
votes
1answer
476 views

How to access search history?

I have spacemacs and when I search for a word using / once it turns out that I can't access it later on using the up arrow. This feature is present in vim so how do I cycle through search history ...
0
votes
1answer
218 views

zsh in multi-term

I run zsh in multi-term. M-p and M-n allow me to jump through the input history. Is there a way to make M-p and M-n behave like up-line-or-beginning-search and down-line-or-beginning-search (jumping ...
0
votes
1answer
43 views

Show only file names starting with the given string in emacs history

When using C-x C-F to open a file, pressing ⇧ (up arrow) will iterate over the files I have recently opened. I believe the relevant lines from my ~/.emacs file are: (require 'recentf) (recentf-mode 1)...
9
votes
1answer
206 views

Merge history from multiple eshells

Before switching to eshell I had zsh setup so that it would: Write out to the history file after every command Append to rather than overwrite the history file so when running multiple shells they ...
6
votes
2answers
398 views

How to see which functions are executed

When I do something inside Emacs, with the buffer *Messages* you get some idea what happened. But it's only if that function is echoing a message for the minibuffer. Then *Messages* keeps a record of ...
15
votes
1answer
391 views

Combining magit with undo-tree for easy history navigation

I love undo-tree (screenshot below). It provides an easy way for navigating through different versions of a file (top window) by letting the user move around the file's history tree in a separate ...
11
votes
2answers
304 views

What is the origin of the term “yank”?

I'm interested in learning how the term "yank" got its name. I'm also interested in why Emacs "yank" differs from vi/vim "yank". See also: dual question about Vi, also on Unix & Linux;
1
vote
2answers
83 views

How to push this command in to history?

I have this function in config (defun launch-separate-emacs-under-x () (interactive) (call-process "sh" nil nil nil "-c" "emacs &")) (defun restart-emacs () (interactive) (add-hook 'kill-...
6
votes
2answers
2k views

How to see recently opened files in helm

What's the best way to get the recently opened files in helm. Without helm I just did C-c C-f and then arrow up to get the last opened file. And with M-r I was able to to a regexp search through ...
8
votes
1answer
294 views

Repeating any last command (complex or not)

Emacs has repeat and repeat-complex-command, that draw different commands from command history and are bound to different keys. How do you repeat any last command - whether it was complex or not - ...
3
votes
1answer
390 views

How to go through command history based on what's been typed (matlab style)

Using examples from octave mode to explain this, but it would be useful in other places as well. When going through the command history it would be nice to only display entries that match what's ...
5
votes
1answer
907 views

Abnormally large savehist file?

I'm starting to use Spacemacs and occasionally I get stuck with Emacs beginning to require infinite amount of CPU and memory. Inspecting my .emacs.d/.cache folder reveals that the file savehist is 1....
5
votes
1answer
104 views

Specifying how history is managed for each buffer

After editing a couple of encrypted files with Emacs and EasyPG Assistant I realized that parts of those files were still stored in various lists within Emacs, e.g the kill-ring and the minibuffer ...
7
votes
1answer
205 views

Access minibuffer history without using arrow keys

Is it possible to scroll the minibuffer history without using arrow keys? My preference would be to not have my fingers leave the home row.