this is a rather rudimentary question, but what is the practical difference between opening a new file in a separate frame (make-new-frame) from emacs or opening the file in an instance of emacsclient? I can see that if you are working through a terminal, the difference is clear... but can emacsclient additionally restrict the list of buffers accessed by (buffer-menu) or ido-mode to buffers opened in that particular emacsclient instance?
Emacs - emacsclient or new frame?
2.1k Views Asked by hatmatrix At
2
There are 2 best solutions below
Related Questions in EMACS
- How can I make 'emacsclient' open in native fullscreen every time I launch it from the terminal in macOS?
- emacsclient does not connect inside ubuntu container
- Emacs use .emacs by default instead .emacs.d/init.el
- Setting up Macaulay 2 on emacs
- org-mime add caption to exported images
- Use the same export attribute for all src-blocks
- Tags Development Tools
- Emacs 29.2 unable to find theme file
- How to automatically allow the execution of code action from HLS in emacs?
- Org-babel remote inline images with TRAMP not exporting in org export
- find and replace regex like that can deal with nested brackets
- Inheriting from variadic types messes up template member function indentation in Emacs
- Invoking org-store-link interactively, errors on calling org-man-store-link
- Disable session save in doom emacs
- How do you connect to a remote emacs server using Microsoft dev tunnels
Related Questions in EMACS23
- Emacs Lisp-error meaning when trying (require 'package)
- Emacs 23 avail melpa package manager
- GDB in Emacs 24 messed up
- Emacs key binding to f3 resulting in a yank instead
- Use search script froma previous search emacs
- Create an Emacs semi-interactive macro
- Cross compile on Emacs
- emacs - first character of each line starts at end of window
- Emacs 23.3.1 fixedsys font issue
- increase 'buffer' column width in buffer list view
- Emacs indentations at decimal in floats
- Initiate Code in Emacs
- How to install melpa in emacs?
- regular expression with the same element twice without knowing it
- Copy & paste non-ASCII characters to an Emacs window from another window doesn't work correctly
Related Questions in EMACSCLIENT
- How to keep emacsclient alive after file closed?
- Correct Way to Exit emacsclient When Set as the Git Editor
- emacsclient: unable to auto-detect email address (got '<my-user-name>@<my-machine-name>.(none)
- Set up emacs server so that it dies when the last frame is closed
- Org protocol capture working for months then stopped suddenly without any proper error message
- Initialization Issue Starting Emacs 27.1 in Daemon Mode on Windows 10
- My emacs client automagically terminates when switching applications [OSX iTerm2]
- Emacs daemon/server with slash in the name
- Determine which of running servers, an emacsclient attached to?
- Attach an emacsclient to a specified running emacs server
- Run different color themes of two emacclients under the same server
- "emacsclientw -c " runs very slow as an outlook macro, while super fast if runs in Window Powershell
- Mac OS X: How to permanently change the prompt (value of PS1) in the shell of emacs client?
- Org-mode with Emacs: Where do I have to put my export in order to be able to use it in Emacs daemon?
- Aligning .Xauthority between GDM and SSH
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There's really no difference between the two situations, other than the fact that the server sets up some buffer-local state to enable
C-x #(akaserver-edit).You can limit
M-x list-buffersbehavior like you're asking with the following advice:Now when you do
M-x buffer-menuin a buffer visited byemacsclient, you only see other buffers visited by the same client(s). It works as normal when the buffer is not visited by anemacsclient.I don't use
ido, but I imagine the customization would be similar (if this advice doesn't work as is).The details are that when you run
emacsclient, the buffers that get opened up are associated with the server process (it can be more than one because you can open up the same file via multiple invocations ofemacsclient). A buffer's server clients are stored in the buffer local variableserver-buffer-clients.To find out which buffers are associated with a particular invocation of
emacsclient, find the process for that emacsclient, and do:(process-get proc 'buffers)(whereprocis the particular emacsclient process - one of the elements of the list found inserver-buffer-clients).That's all the advice does.