Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Invalid read syntax: "?" #1249

Closed
llcc opened this Issue · 6 comments

3 participants

@llcc

When I call any of magit functions, the emacs minor buffer always gives me a message "Invalid read snytax: '?' ". How can I solve this kind of problem? Help me!

@tarsius
Owner

Do M-x toggle-debug-on-error, repeat the command that causes the error, and then post the contents of the buffer that popped up.

@tarsius tarsius added the 22 support label
@tarsius tarsius added this to the support/later/needinfo/... milestone
@llcc

Thanks very much for your answer. Below is the message:

Debugger entered--Lisp error: (invalid-read-syntax "?")
  eval-buffer(#<buffer  *load*> nil "c:/Users/admin/GoogleDrive/Git/Configurations/Emacs/.emacs.d/elpa/magit-20140224.507/magit.el" nil t)  ; Reading at buffer position 38372
  load-with-code-conversion("c:/Users/admin/GoogleDrive/Git/Configurations/Emacs/.emacs.d/elpa/magit-20140224.507/magit.el" "c:/Users/admin/GoogleDrive/Git/Configurations/Emacs/.emacs.d/elpa/magit-20140224.507/magit.el" nil t)
  command-execute(magit-commit record)
  execute-extended-command(nil "magit-commit")
  (unwind-protect (execute-extended-command current-prefix-arg chosen-item-name) (smex-rank chosen-item))
  (if smex-custom-action (let ((action smex-custom-action)) (setq smex-custom-action nil) (funcall action chosen-item)) (unwind-protect (execute-extended-command current-prefix-arg chosen-item-name) (smex-rank chosen-item)))
  (let* ((chosen-item-name (smex-completing-read commands initial-input)) (chosen-item (intern chosen-item-name))) (if smex-custom-action (let ((action smex-custom-action)) (setq smex-custom-action nil) (funcall action chosen-item)) (unwind-protect (execute-extended-command current-prefix-arg chosen-item-name) (smex-rank chosen-item))))
  smex-read-and-run(("toggle-debug-on-error" "auto-fill-mode" "git-reset" "magit-status" "git-commit-mode" "magit-commit" "git-log" "org-toggle-inline-images" "table-span-cell" "org-latex-export-to-latex" "customize-option" "package-list-packages" "TeX-clean" "replace-string" "org-preview-latex-fragment" "package-install" "git-commit-file" "flyspell-mode" "list-packages" "org-customize" "my-org-screenshot" "org-version" "table-insert" "electric-indent-mode" "org-latex-export-to-pdf" "org-display-inline-images" "magit-log" "bookmark-set" "indent-region" "orgtbl-mode" "load-library" "doc-view-mode" "tags-table-mode" "table-split-cell" "shell" "org-reload" "count-words" "insert-file" "save-buffer" "ispell-buffer" "jedi:complete" "table-capture" "autohide-tabbar" "org-indent-mode" "org-table-align" "run-current-file" "set-input-method" "describe-function" "ein:notebooklist-open" "org-src-fontify-block" ...))
  (if (smex-already-running) (smex-update-and-rerun) (and smex-auto-update (smex-detect-new-commands) (smex-update)) (smex-read-and-run smex-ido-cache))
  smex()
  call-interactively(smex nil nil)
@tarsius
Owner

It appears that the file magit.el somehow got corrupted. Please reinstall and try again.

@llcc

I have already deleted the source and reinstalled again, still not working

@tarsius
Owner

Then try to explicitly load magit.el before using a command that it defines: M-x load-library RET magit RET. Though that probably won't help. Does anyone have any ideas?

@michael-heerdegen

Hi,

at 38372, the `magit-ellipsis' (unicode) character is defined. So this seems related to some encoding/multibyte/whatever thing, or the file got somehow corrupted when saving/opening/...?

@tarsius tarsius closed this issue from a commit
@tarsius tarsius magit-ellipsis: use #x2026 for "horizontal ellipsis"
to avoid encoding problems.  Close #1249.
39dcb14
@tarsius tarsius closed this in 39dcb14
@tarsius tarsius added 01 emacs and removed 22 support labels
@abo-abo abo-abo referenced this issue from a commit in abo-abo/magit
@tarsius tarsius magit-ellipsis: use #x2026 for "horizontal ellipsis"
to avoid encoding problems.  Close #1249.
4abddf3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.