Switching back and forth quickly between matlab-shell and source buffer + Ctrl+Z on matlab repl completely freezes it

Đang mở
#68 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
emacs, emacs-lisp

Hướng nghiên cứu

Bắt đầu từ điểm vào matlab-shell và lần theo cách tiêu điểm chuyển đổi giữa các bộ đệm mã nguồn MATLAB và REPL, bao gồm cả việc Ctrl+Z thực hiện gì trong REPL. Xác định là hoàn tất khi cung cấp được một cách đáng tin cậy để chuyển lại về bộ đệm mã nguồn trước đó và đảm bảo Ctrl+Z không khiến phiên MATLAB có vẻ bị đóng băng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

I've started using julia quite a lot recently using the package julia-snail on emacs. If the function (julia-snail) is called from a source code buffer, focus switches to the julia REPL buffer, and if it was called from the REPL buffer, focus switches to the source. It remembers the last source buffer from which the julia-snail function is called, making this super neat to work with.
By default I have this function mapped to Ctrl+Z so I'm hitting ctrl+z all the time, especially when I have 4 windows with different buffers open at the same time with only one being the repl.

In matlab mode, we have the function matlab-shell so I can go from source to matlab repl. But no function like this seems to exist for going back.
I have added personal frustration since I have matlab-shell bound to Ctrl+Z. And hitting Ctrl+Z in the matlab-repl freezes up the repl completely.
This is my second query in this sub issue The behavior of Ctrl+Z on the matlab-shell is confusing. Once I hit Ctrl+Z on the matlab-shell, I'm unsure just what I need to do to resume the session. So far I've been killing matlab-shell completely and continuing.

Here's the julia-snail code just in case:

(defun julia-snail ()
  "Start a Julia REPL and connect to it, or switch if one already exists.
The following buffer-local variables control it:
- `julia-snail-repl-buffer' (default: *julia*)
- `julia-snail-port' (default: 10011)
To create multiple REPLs, give these variables distinct values (e.g.:
*julia my-project-1* and 10012)."
  (interactive)
  (let ((source-buf (current-buffer))
        (repl-buf (get-buffer julia-snail-repl-buffer)))
    (if repl-buf
        ;; Julia session exists
        (progn
          (with-current-buffer repl-buf
            (setq julia-snail--repl-go-back-target source-buf))
          (pop-to-buffer repl-buf))
      ;; run a new Julia REPL in a terminal and load the Snail server file
      (julia-snail--start source-buf))))
Ngôn ngữ chính
Emacs Lisp
Star
27
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Đọc hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mathworks/Emacs-MATLAB-Mode

Tất cả issue của mathworks/Emacs-MATLAB-Mode

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.