{"action":"created","issue":{"url":"https://api.github.com/repos/vspinu/polymode/issues/150","repository_url":"https://api.github.com/repos/vspinu/polymode","labels_url":"https://api.github.com/repos/vspinu/polymode/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/vspinu/polymode/issues/150/comments","events_url":"https://api.github.com/repos/vspinu/polymode/issues/150/events","html_url":"https://github.com/vspinu/polymode/issues/150","id":295950742,"number":150,"title":"emacs loses local variables after mode change","user":{"login":"EmmanuelCharpentier","id":7955276,"avatar_url":"https://avatars0.githubusercontent.com/u/7955276?v=4","gravatar_id":"","url":"https://api.github.com/users/EmmanuelCharpentier","html_url":"https://github.com/EmmanuelCharpentier","followers_url":"https://api.github.com/users/EmmanuelCharpentier/followers","following_url":"https://api.github.com/users/EmmanuelCharpentier/following{/other_user}","gists_url":"https://api.github.com/users/EmmanuelCharpentier/gists{/gist_id}","starred_url":"https://api.github.com/users/EmmanuelCharpentier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmmanuelCharpentier/subscriptions","organizations_url":"https://api.github.com/users/EmmanuelCharpentier/orgs","repos_url":"https://api.github.com/users/EmmanuelCharpentier/repos","events_url":"https://api.github.com/users/EmmanuelCharpentier/events{/privacy}","received_events_url":"https://api.github.com/users/EmmanuelCharpentier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-09T17:36:00Z","updated_at":"2018-02-10T14:39:00Z","closed_at":null,"author_association":"NONE","body":"Note : this bug report is **identical** to a bug report I posted to the ESS-bugs mailing list. I just confirmed that the issue I reported concerning `Rnw-mode` also affects `poly-noweb+R`. Therefore, the problem bught be on ESS's side, or a logic problem common to both ESS and `polymode` (wiich, ISTR, share at least one proeminent developer).\r\n\r\nEdited copy of the ESS bug report begins : \r\n\r\n-----\r\nI have prepared a minimal example and a minimal init file to illustrate \r\nthe problem. To reproduce and follow the description (below), invoke : \r\n\r\nemacs -q -name \"emacs init minimal\" -l initMinimal.el Essai0.Rnw \r\n\r\n========== Minimal .Rnw file : Essai0.Rnw ========== \r\n\r\n\\documentclass[a4paper]{article} \r\n\r\n<<KnitrSetup, echo=FALSE, results=\"hide\">>= \r\nlibrary(knitr) \r\n@ \r\n\r\n\\usepackage[utf8]{inputenc} \r\n\\usepackage[T1]{fontenc} \r\n\\usepackage{newtxtext,newtxmath} \r\n\r\n\\title{Test archi-minimale Rnw-mode + AUCTeX} \r\n\\author{Emmanuel Charpentier} \r\n\\date{2018/02/09} \r\n\r\n\\begin{document} \r\n\r\n\\maketitle \r\n\r\n<<FirstRChunk, echo=TRUE, results=\"markup\">>= \r\n2+1 \r\n@ \r\n\r\n\\end{document} \r\n\r\n\r\n%%% Local Variables: \r\n%%% TeX-master: \"Essai0\" \r\n%%% TeX-engine: default \r\n%%% mode: poly-noweb+R \r\n%%% End: \r\n\r\n_Note : for testing the problem with `poly-noweb+R`, I just used my \"normal\" .init, which, among other things, contains a `(require 'polymode)` statement ensuring the availability of `poly-noweb+R`, and precious little else related toLaTeX/R/etc..._\r\n\r\n========== Minimal .init file : initMinimal.el ========== \r\n\r\n;; initialisaton minimale pour débourrage ESS \r\n\r\n;; ESS \r\n(require 'server) \r\n(unless (server-running-p) (server-start)) \r\n\r\n;; AUCTeX \r\n(require 'tex) \r\n(require 'reftex) ;; reftex \r\n\r\n;; pdf-tools \r\n;; (require 'pdf-tools) ;; PDF tools (Oui +++) \r\n\r\n;; Utilitaires divers \r\n(global-set-key [f4] 'goto-line) ;; S'avère très utile \r\n(put 'downcase-region 'disabled nil) ;; idem \r\n(put 'upcase-region 'disabled nil) \r\n(put 'capitalize-region 'disabled nil) \r\n\r\n;; Visionneuse AUCTeX \r\n;; (setq Selection-visionneuse \r\n;; '(((output-dvi has-no-display-manager) \r\n;; \"dvi2tty\") \r\n;; ((output-dvi style-pstricks) \r\n;; \"dvips and gv\") \r\n;; (output-dvi \"xdvi\") \r\n;; (output-pdf \"PDF Tools\") \r\n;; ;; Alternative \r\n;; ;; (output-pdf \"Evince\") \r\n;; (output-html \"xdg-open\"))) \r\n;; AUCTeX \r\n(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode \r\n(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode \r\n(add-hook 'LaTeX-mode-hook 'visual-line-mode) ; ?? \r\n(add-hook 'TeX-after-compilation-finished-functions \r\n'TeX-revert-document-buffer) \r\n\r\n;; ESS \r\n(setq-default ess-dialect \"R\") \r\n\r\n;; PDF tools : 2016-12-16 : merdoie (ne termine pas)... Réglé. \r\n;; (pdf-tools-install) \r\n\r\n(custom-set-variables \r\n;; custom-set-variables was added by Custom. \r\n;; If you edit it by hand, you could mess it up, so be careful. \r\n;; Your init file should contain only one such instance. \r\n;; If there is more than one, they won't work right. \r\n'(TeX-PDF-mode t) \r\n'(TeX-auto-save t) \r\n'(TeX-command-extra-options \"-shell-escape\") \r\n'(TeX-file-extensions \r\n(quote \r\n(\"Rnw\" \"tex\" \"sty\" \"cls\" \"ltx\" \"texi\" \"txi\" \"texinfo\" \"dtx\"))) \r\n'(TeX-parse-self t) \r\n'(TeX-source-correlate-method (quote synctex)) \r\n'(TeX-source-correlate-mode t) \r\n'(TeX-source-correlate-start-server t) \r\n;; '(TeX-view-program-selection Selection-visionneuse) \r\n'(default-frame-alist (quote ((top . 1) (left . 1) (width . 81) (height . 38)))) \r\n'(ess-help-own-frame (quote one)) \r\n;; '(ess-pdf-viewer-pref \"emacsclient\") \r\n'(ess-swv-plug-into-AUCTeX-p t) \r\n'(ess-swv-processor (quote knitr)) \r\n'(inferior-ess-same-window nil) \r\n'(initial-frame-alist (quote ((top . 1) (left . 1) (width . 81) (height . 38)))) \r\n'(package-selected-packages \r\n(quote \r\n(pdf-tools dash git-commit magit magit-popup with-editor auctex js2-mode zotelo stan-snippets pylint polymode pandoc-mode org markdown-mode geiser flycheck-pyflakes ess auto-complete-sage))) \r\n'(polymode-exporter-output-file-format \"%s\") \r\n'(polymode-weave-output-file-format \"%s\") \r\n'(reftex-file-extensions \r\n(quote \r\n((\"tex\" \".tex\" \".ltx\" \".Rnw\" \".nw\" \".Rmd\") \r\n(\"bib\" \".bib\")))) \r\n'(reftex-plug-into-AUCTeX t) \r\n'(sage-shell-sagetex:auctex-command-name \"LaTeX\") \r\n'(sage-shell:use-prompt-toolkit t) \r\n'(show-paren-mode t)) \r\n\r\n========== Description of the problem ========== \r\n\r\nWhen this file is loaded in emacs, all is well : `M-n r` correctly knits \r\nEssai0.Rnw into Essai0.tex, `C-c C-c` correctly LaTeXes Essai0.tex into \r\nEssai0.pdf. \r\n\r\nHowever, after editing the `FirstRChunk` chunk (or even moving into it \r\nthen out), emacs loses the local variables `TeX-master` and `TeX-engine`. \r\n\r\nConsequences : \r\n\r\n* `M-n r` still correctly knits Essai0.Rnw to Essai0.tex \r\n\r\n* `C-c C-c` tries to LaTeX Essai0.Rnw, which fails on line 3, since the \r\nbeginning of the `KnitrSetup` chunk is taken to be ordinary text \r\nplaced before `\\begin{document}`, which is anathemous to LaTeX. \r\n\r\n* Similarly, when `TeX-engine` is initially set to luatex or xetex in \r\nthe 'Local variables:' segment, this value is lost and `C-c C-c` invokes \r\npdflatex. \r\n\r\n* Absent the \"KnitrSetup\" chunk, `C-c C-c` LaTeXes Essai0.Rnw into \r\nEssai0.pdf, where the text of the \"FirstRChunk\" appears as \"normal\" text. \r\n\r\nResetting AUCTeX (with `C-u C-c C-n`) restores the expected behaviour. \r\n\r\nHope this helps the understanding of the problem, \r\n\r\n-----\r\n\r\n```\r\n------------------------------------------------------- \r\nThis bug report will be sent to the ESS bugs email list \r\nPress C-c C-c when you are ready to send your message. \r\n------------------------------------------------------- \r\nFinished setting up ESS-mode. \r\ness-request-a-process: {beginning} \r\n(n-i-m-l: 1)(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, \r\ncomint..sender=comint-simple-send \r\n(ess-mode-1): ess-language=S, ess-dialect=R buf=Essai0.Rnw \r\n(ess-mode-1.5): alist=((inferior-ess-reload-function quote inferior-ess-reload:R) (ess-quit-function quote ess-quit:R) (ess-send-region-function quote ess-send-region:R) (ess-load-file-function quote ess-load-file:R) (ess-build-load-command-function quote ess-build-load-command:R) (ess-build-eval-command-function quote ess-build-eval-command:R) (ess-local-customize-alist quote ess-r-customize-alist) (ess-dialect . R) (ess-suffix . R) (ess-ac-sources . ess-r-ac-sources) (ess-company-backends . ess-r-company-backends) (ess-build-tags-command . ess-r-build-tags-command) (ess-traceback-command . ess-r-traceback-command) (ess-call-stack-command . ess-r-call-stack-command) (ess-mode-completion-syntax-table . ess-r-completion-syntax-table) (ess-build-eval-message-function function ess-r-build-eval-message) (ess-format-eval-command-function function ess-r-format-eval-command) (ess-format-load-command-function function ess-r-format-load-command) (ess-send-region-function function ess-r-send-region) (ess-load-file-function function ess-r-load-file) (ess-make-source-refd-command-function function ess-r-make-source-refd-command) (ess-format-eval-message-function function ess-r-format-eval-message) (ess-install-library-function function ess-r-install-library) (ess-eldoc-function function ess-r-eldoc-function) (ess-help-web-search-command function ess-r-sos) (ess-build-help-command-function function ess-r-build-help-command) (ess-dump-filename-template . ess-r-dump-filename-template) (ess-mode-editing-alist . ess-r-editing-alist) (ess-change-sp-regexp . ess-r-change-sp-regexp) (ess-help-sec-regex . ess-help-r-sec-regex) (ess-help-sec-keys-alist . ess-help-r-sec-keys-alist) (ess-loop-timeout . ess-r-loop-timeout) (ess-function-pattern . ess-r-function-pattern) (ess-object-name-db-file . ess-r-namedb.el) (ess-smart-operators . ess-r-smart-operators) (inferior-ess-program . inferior-ess-r-program-name) (inferior-ess-objects-command . inferior-ess-r-objects-command) (inferior-ess-font-lock-keywords quote inferior-ess-r-font-lock-keywords) (inferior-ess-search-list-command . search() \r\n) (inferior-ess-help-command . inferior-ess-r-help-command) (inferior-ess-help-filetype) (inferior-ess-exit-command . q()) (inferior-ess-exit-prompt . Save workspace image? [y/n/c]: ) (inferior-ess-start-file) (inferior-ess-start-args . ) (ess-error-regexp-alist . ess-r-error-regexp-alist) (ess-describe-object-at-point-commands quote ess-r-describe-object-at-point-commands) (ess-STERM . iESS) (ess-editor . ess-r-editor) (ess-pager . ess-r-pager) (ess-mode-syntax-table . ess-r-syntax-table) (font-lock-syntactic-face-function function ess-r-font-lock-syntactic-face-function) (prettify-symbols-alist quote ((<- . 8592) (<<- . 8606) (-> . 8594) (->> . 8608))) (ess-language . S) (inferior-ess-exit-command . q() \r\n) (inferior-ess-language-start eval inferior-S-language-start) (comint-use-prompt-regexp . t) (comint-process-echoes . t) (inferior-ess-primary-prompt . > ) (inferior-ess-secondary-prompt . + ) (comment-start . #) (ess-imenu-generic-expression . ess-imenu-S-generic-expression) (comment-add . 1) (comment-start-skip . #+ *) (comment-use-syntax . t) (comment-column . 40) (ess-no-skip-regexp concat ^ *@\\| (default-value (quote ess-no-skip-regexp))) (inferior-ess-prompt . inferior-S-prompt) (ess-get-help-topics-function function ess-s-get-help-topics-function) (ess-getwd-command . getwd() \r\n) (ess-setwd-command . setwd('%s') \r\n) (ess-funargs-command . .ess_funargs(\"%s\") \r\n) (fill-nobreak-predicate quote ess-inside-string-p) (normal-auto-fill-function quote ess-do-auto-fill) (ess-execute-screen-options-command . options(width=%d, length=99999) \r\n)) \r\n(ess-mode-1.6): editing-alist=((paragraph-start concat \\s-*$\\| page-delimiter) (paragraph-separate concat \\s-*$\\| page-delimiter) (paragraph-ignore-fill-prefix . t) (require-final-newline . mode-require-final-newline) (indent-line-function quote ess-indent-line) (parse-sexp-ignore-comments . t) (ess-style . ess-default-style) (ess-mode-syntax-table . ess-r-syntax-table) (add-log-current-defun-header-regexp . ^\\(.+\\)\\s-+<-[ \r\n]*function) (ess-font-lock-keywords quote ess-R-font-lock-keywords) (ess-font-lock-defaults ess--extract-default-fl-keywords ess-R-font-lock-keywords) (font-lock-defaults quote (ess-font-lock-defaults nil nil ((46 . w) (95 . w))))) \r\n(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n\r\nFinished setting up ESS-mode. \r\n(n-i-m-l: 1)(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n(ess-mode-1): ess-language=S, ess-dialect=R buf=Essai0.Rnw \r\n(ess-mode-1.5): alist=((inferior-ess-reload-function quote inferior-ess-reload:R) (ess-quit-function quote ess-quit:R) (ess-send-region-function quote ess-send-region:R) (ess-load-file-function quote ess-load-file:R) (ess-build-load-command-function quote ess-build-load-command:R) (ess-build-eval-command-function quote ess-build-eval-command:R) (ess-local-customize-alist quote ess-r-customize-alist) (ess-dialect . R) (ess-suffix . R) (ess-ac-sources . ess-r-ac-sources) (ess-company-backends . ess-r-company-backends) (ess-build-tags-command . ess-r-build-tags-command) (ess-traceback-command . ess-r-traceback-command) (ess-call-stack-command . ess-r-call-stack-command) (ess-mode-completion-syntax-table . ess-r-completion-syntax-table) (ess-build-eval-message-function function ess-r-build-eval-message) (ess-format-eval-command-function function ess-r-format-eval-command) (ess-format-load-command-function function ess-r-format-load-command) (ess-send-region-function function ess-r-send-region) (ess-load-file-function function ess-r-load-file) (ess-make-source-refd-command-function function ess-r-make-source-refd-command) (ess-format-eval-message-function function ess-r-format-eval-message) (ess-install-library-function function ess-r-install-library) (ess-eldoc-function function ess-r-eldoc-function) (ess-help-web-search-command function ess-r-sos) (ess-build-help-command-function function ess-r-build-help-command) (ess-dump-filename-template . ess-r-dump-filename-template) (ess-mode-editing-alist . ess-r-editing-alist) (ess-change-sp-regexp . ess-r-change-sp-regexp) (ess-help-sec-regex . ess-help-r-sec-regex) (ess-help-sec-keys-alist . ess-help-r-sec-keys-alist) (ess-loop-timeout . ess-r-loop-timeout) (ess-function-pattern . ess-r-function-pattern) (ess-object-name-db-file . ess-r-namedb.el) (ess-smart-operators . ess-r-smart-operators) (inferior-ess-program . inferior-ess-r-program-name) (inferior-ess-objects-command . inferior-ess-r-objects-command) (inferior-ess-font-lock-keywords quote inferior-ess-r-font-lock-keywords) (inferior-ess-search-list-command . search() \r\n) (inferior-ess-help-command . inferior-ess-r-help-command) (inferior-ess-help-filetype) (inferior-ess-exit-command . q()) (inferior-ess-exit-prompt . Save workspace image? [y/n/c]: ) (inferior-ess-start-file) (inferior-ess-start-args . ) (ess-error-regexp-alist . ess-r-error-regexp-alist) (ess-describe-object-at-point-commands quote ess-r-describe-object-at-point-commands) (ess-STERM . iESS) (ess-editor . ess-r-editor) (ess-pager . ess-r-pager) (ess-mode-syntax-table . ess-r-syntax-table) (font-lock-syntactic-face-function function ess-r-font-lock-syntactic-face-function) (prettify-symbols-alist quote ((<- . 8592) (<<- . 8606) (-> . 8594) (->> . 8608))) (ess-language . S) (inferior-ess-exit-command . q() \r\n) (inferior-ess-language-start eval inferior-S-language-start) (comint-use-prompt-regexp . t) (comint-process-echoes . t) (inferior-ess-primary-prompt . > ) (inferior-ess-secondary-prompt . + ) (comment-start . #) (ess-imenu-generic-expression . ess-imenu-S-generic-expression) (comment-add . 1) (comment-start-skip . #+ *) (comment-use-syntax . t) (comment-column . 40) (ess-no-skip-regexp concat ^ *@\\| (default-value (quote ess-no-skip-regexp))) (inferior-ess-prompt . inferior-S-prompt) (ess-get-help-topics-function function ess-s-get-help-topics-function) (ess-getwd-command . getwd() \r\n) (ess-setwd-command . setwd('%s') \r\n) (ess-funargs-command . .ess_funargs(\"%s\") \r\n) (fill-nobreak-predicate quote ess-inside-string-p) (normal-auto-fill-function quote ess-do-auto-fill) (ess-execute-screen-options-command . options(width=%d, length=99999) \r\n)) \r\n(ess-mode-1.6): editing-alist=((paragraph-start concat \\s-*$\\| page-delimiter) (paragraph-separate concat \\s-*$\\| page-delimiter) (paragraph-ignore-fill-prefix . t) (require-final-newline . mode-require-final-newline) (indent-line-function quote ess-indent-line) (parse-sexp-ignore-comments . t) (ess-style . ess-default-style) (ess-mode-syntax-table . ess-r-syntax-table) (add-log-current-defun-header-regexp . ^\\(.+\\)\\s-+<-[ \r\n]*function) (ess-font-lock-keywords quote ess-R-font-lock-keywords) (ess-font-lock-defaults ess--extract-default-fl-keywords ess-R-font-lock-keywords) (font-lock-defaults quote (ess-font-lock-defaults nil nil ((46 . w) (95 . w))))) \r\n(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n\r\nFinished setting up ESS-mode. \r\n(n-i-m-l: 1)(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n(ess-mode-1): ess-language=S, ess-dialect=R buf=Essai0.Rnw \r\n(ess-mode-1.5): alist=((inferior-ess-reload-function quote inferior-ess-reload:R) (ess-quit-function quote ess-quit:R) (ess-send-region-function quote ess-send-region:R) (ess-load-file-function quote ess-load-file:R) (ess-build-load-command-function quote ess-build-load-command:R) (ess-build-eval-command-function quote ess-build-eval-command:R) (ess-local-customize-alist quote ess-r-customize-alist) (ess-dialect . R) (ess-suffix . R) (ess-ac-sources . ess-r-ac-sources) (ess-company-backends . ess-r-company-backends) (ess-build-tags-command . ess-r-build-tags-command) (ess-traceback-command . ess-r-traceback-command) (ess-call-stack-command . ess-r-call-stack-command) (ess-mode-completion-syntax-table . ess-r-completion-syntax-table) (ess-build-eval-message-function function ess-r-build-eval-message) (ess-format-eval-command-function function ess-r-format-eval-command) (ess-format-load-command-function function ess-r-format-load-command) (ess-send-region-function function ess-r-send-region) (ess-load-file-function function ess-r-load-file) (ess-make-source-refd-command-function function ess-r-make-source-refd-command) (ess-format-eval-message-function function ess-r-format-eval-message) (ess-install-library-function function ess-r-install-library) (ess-eldoc-function function ess-r-eldoc-function) (ess-help-web-search-command function ess-r-sos) (ess-build-help-command-function function ess-r-build-help-command) (ess-dump-filename-template . ess-r-dump-filename-template) (ess-mode-editing-alist . ess-r-editing-alist) (ess-change-sp-regexp . ess-r-change-sp-regexp) (ess-help-sec-regex . ess-help-r-sec-regex) (ess-help-sec-keys-alist . ess-help-r-sec-keys-alist) (ess-loop-timeout . ess-r-loop-timeout) (ess-function-pattern . ess-r-function-pattern) (ess-object-name-db-file . ess-r-namedb.el) (ess-smart-operators . ess-r-smart-operators) (inferior-ess-program . inferior-ess-r-program-name) (inferior-ess-objects-command . inferior-ess-r-objects-command) (inferior-ess-font-lock-keywords quote inferior-ess-r-font-lock-keywords) (inferior-ess-search-list-command . search() \r\n) (inferior-ess-help-command . inferior-ess-r-help-command) (inferior-ess-help-filetype) (inferior-ess-exit-command . q()) (inferior-ess-exit-prompt . Save workspace image? [y/n/c]: ) (inferior-ess-start-file) (inferior-ess-start-args . ) (ess-error-regexp-alist . ess-r-error-regexp-alist) (ess-describe-object-at-point-commands quote ess-r-describe-object-at-point-commands) (ess-STERM . iESS) (ess-editor . ess-r-editor) (ess-pager . ess-r-pager) (ess-mode-syntax-table . ess-r-syntax-table) (font-lock-syntactic-face-function function ess-r-font-lock-syntactic-face-function) (prettify-symbols-alist quote ((<- . 8592) (<<- . 8606) (-> . 8594) (->> . 8608))) (ess-language . S) (inferior-ess-exit-command . q() \r\n) (inferior-ess-language-start eval inferior-S-language-start) (comint-use-prompt-regexp . t) (comint-process-echoes . t) (inferior-ess-primary-prompt . > ) (inferior-ess-secondary-prompt . + ) (comment-start . #) (ess-imenu-generic-expression . ess-imenu-S-generic-expression) (comment-add . 1) (comment-start-skip . #+ *) (comment-use-syntax . t) (comment-column . 40) (ess-no-skip-regexp concat ^ *@\\| (default-value (quote ess-no-skip-regexp))) (inferior-ess-prompt . inferior-S-prompt) (ess-get-help-topics-function function ess-s-get-help-topics-function) (ess-getwd-command . getwd() \r\n) (ess-setwd-command . setwd('%s') \r\n) (ess-funargs-command . .ess_funargs(\"%s\") \r\n) (fill-nobreak-predicate quote ess-inside-string-p) (normal-auto-fill-function quote ess-do-auto-fill) (ess-execute-screen-options-command . options(width=%d, length=99999) \r\n)) \r\n(ess-mode-1.6): editing-alist=((paragraph-start concat \\s-*$\\| page-delimiter) (paragraph-separate concat \\s-*$\\| page-delimiter) (paragraph-ignore-fill-prefix . t) (require-final-newline . mode-require-final-newline) (indent-line-function quote ess-indent-line) (parse-sexp-ignore-comments . t) (ess-style . ess-default-style) (ess-mode-syntax-table . ess-r-syntax-table) (add-log-current-defun-header-regexp . ^\\(.+\\)\\s-+<-[ \r\n]*function) (ess-font-lock-keywords quote ess-R-font-lock-keywords) (ess-font-lock-defaults ess--extract-default-fl-keywords ess-R-font-lock-keywords) (font-lock-defaults quote (ess-font-lock-defaults nil nil ((46 . w) (95 . w))))) \r\n(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n\r\nFinished setting up ESS-mode. \r\n(n-i-m-l: 1)(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n(ess-mode-1): ess-language=S, ess-dialect=R buf=Essai0.Rnw \r\n(ess-mode-1.5): alist=((inferior-ess-reload-function quote inferior-ess-reload:R) (ess-quit-function quote ess-quit:R) (ess-send-region-function quote ess-send-region:R) (ess-load-file-function quote ess-load-file:R) (ess-build-load-command-function quote ess-build-load-command:R) (ess-build-eval-command-function quote ess-build-eval-command:R) (ess-local-customize-alist quote ess-r-customize-alist) (ess-dialect . R) (ess-suffix . R) (ess-ac-sources . ess-r-ac-sources) (ess-company-backends . ess-r-company-backends) (ess-build-tags-command . ess-r-build-tags-command) (ess-traceback-command . ess-r-traceback-command) (ess-call-stack-command . ess-r-call-stack-command) (ess-mode-completion-syntax-table . ess-r-completion-syntax-table) (ess-build-eval-message-function function ess-r-build-eval-message) (ess-format-eval-command-function function ess-r-format-eval-command) (ess-format-load-command-function function ess-r-format-load-command) (ess-send-region-function function ess-r-send-region) (ess-load-file-function function ess-r-load-file) (ess-make-source-refd-command-function function ess-r-make-source-refd-command) (ess-format-eval-message-function function ess-r-format-eval-message) (ess-install-library-function function ess-r-install-library) (ess-eldoc-function function ess-r-eldoc-function) (ess-help-web-search-command function ess-r-sos) (ess-build-help-command-function function ess-r-build-help-command) (ess-dump-filename-template . ess-r-dump-filename-template) (ess-mode-editing-alist . ess-r-editing-alist) (ess-change-sp-regexp . ess-r-change-sp-regexp) (ess-help-sec-regex . ess-help-r-sec-regex) (ess-help-sec-keys-alist . ess-help-r-sec-keys-alist) (ess-loop-timeout . ess-r-loop-timeout) (ess-function-pattern . ess-r-function-pattern) (ess-object-name-db-file . ess-r-namedb.el) (ess-smart-operators . ess-r-smart-operators) (inferior-ess-program . inferior-ess-r-program-name) (inferior-ess-objects-command . inferior-ess-r-objects-command) (inferior-ess-font-lock-keywords quote inferior-ess-r-font-lock-keywords) (inferior-ess-search-list-command . search() \r\n) (inferior-ess-help-command . inferior-ess-r-help-command) (inferior-ess-help-filetype) (inferior-ess-exit-command . q()) (inferior-ess-exit-prompt . Save workspace image? [y/n/c]: ) (inferior-ess-start-file) (inferior-ess-start-args . ) (ess-error-regexp-alist . ess-r-error-regexp-alist) (ess-describe-object-at-point-commands quote ess-r-describe-object-at-point-commands) (ess-STERM . iESS) (ess-editor . ess-r-editor) (ess-pager . ess-r-pager) (ess-mode-syntax-table . ess-r-syntax-table) (font-lock-syntactic-face-function function ess-r-font-lock-syntactic-face-function) (prettify-symbols-alist quote ((<- . 8592) (<<- . 8606) (-> . 8594) (->> . 8608))) (ess-language . S) (inferior-ess-exit-command . q() \r\n) (inferior-ess-language-start eval inferior-S-language-start) (comint-use-prompt-regexp . t) (comint-process-echoes . t) (inferior-ess-primary-prompt . > ) (inferior-ess-secondary-prompt . + ) (comment-start . #) (ess-imenu-generic-expression . ess-imenu-S-generic-expression) (comment-add . 1) (comment-start-skip . #+ *) (comment-use-syntax . t) (comment-column . 40) (ess-no-skip-regexp concat ^ *@\\| (default-value (quote ess-no-skip-regexp))) (inferior-ess-prompt . inferior-S-prompt) (ess-get-help-topics-function function ess-s-get-help-topics-function) (ess-getwd-command . getwd() \r\n) (ess-setwd-command . setwd('%s') \r\n) (ess-funargs-command . .ess_funargs(\"%s\") \r\n) (fill-nobreak-predicate quote ess-inside-string-p) (normal-auto-fill-function quote ess-do-auto-fill) (ess-execute-screen-options-command . options(width=%d, length=99999) \r\n)) \r\n(ess-mode-1.6): editing-alist=((paragraph-start concat \\s-*$\\| page-delimiter) (paragraph-separate concat \\s-*$\\| page-delimiter) (paragraph-ignore-fill-prefix . t) (require-final-newline . mode-require-final-newline) (indent-line-function quote ess-indent-line) (parse-sexp-ignore-comments . t) (ess-style . ess-default-style) (ess-mode-syntax-table . ess-r-syntax-table) (add-log-current-defun-header-regexp . ^\\(.+\\)\\s-+<-[ \r\n]*function) (ess-font-lock-keywords quote ess-R-font-lock-keywords) (ess-font-lock-defaults ess--extract-default-fl-keywords ess-R-font-lock-keywords) (font-lock-defaults quote (ess-font-lock-defaults nil nil ((46 . w) (95 . w))))) \r\n(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n\r\nFinished setting up ESS-mode. \r\n(n-i-m-l: 1)(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=t, comint..sender=comint-simple-send \r\n(ess-mode-1): ess-language=S, ess-dialect=R buf=Essai0.Rnw \r\n(ess-mode-1.5): alist=((inferior-ess-reload-function quote inferior-ess-reload:R) (ess-quit-function quote ess-quit:R) (ess-send-region-function quote ess-send-region:R) (ess-load-file-function quote ess-load-file:R) (ess-build-load-command-function quote ess-build-load-command:R) (ess-build-eval-com\r\n```\r\nEdited copy of the ESS bug report ends : "},"comment":{"url":"https://api.github.com/repos/vspinu/polymode/issues/comments/364659453","html_url":"https://github.com/vspinu/polymode/issues/150#issuecomment-364659453","issue_url":"https://api.github.com/repos/vspinu/polymode/issues/150","id":364659453,"user":{"login":"EmmanuelCharpentier","id":7955276,"avatar_url":"https://avatars0.githubusercontent.com/u/7955276?v=4","gravatar_id":"","url":"https://api.github.com/users/EmmanuelCharpentier","html_url":"https://github.com/EmmanuelCharpentier","followers_url":"https://api.github.com/users/EmmanuelCharpentier/followers","following_url":"https://api.github.com/users/EmmanuelCharpentier/following{/other_user}","gists_url":"https://api.github.com/users/EmmanuelCharpentier/gists{/gist_id}","starred_url":"https://api.github.com/users/EmmanuelCharpentier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmmanuelCharpentier/subscriptions","organizations_url":"https://api.github.com/users/EmmanuelCharpentier/orgs","repos_url":"https://api.github.com/users/EmmanuelCharpentier/repos","events_url":"https://api.github.com/users/EmmanuelCharpentier/events{/privacy}","received_events_url":"https://api.github.com/users/EmmanuelCharpentier/received_events","type":"User","site_admin":false},"created_at":"2018-02-10T14:39:00Z","updated_at":"2018-02-10T14:39:00Z","author_association":"NONE","body":"> > moving outside the Firstrchunk\r\n\r\n> Do you mean that after returning to AucTeX chunk you see t?\r\n\r\nYes.\r\n\r\n> That's cannot be,\r\n\r\nIt is. Try it for yourself.\r\n\r\n> or it's a bug indeed.\r\n\r\nIndeed it is... Hence my report on ESS-_bugs_ (I have exacty the same problem with `Rnw-mode`)...\r\n"}}
{"actor":{"display_login":"EmmanuelCharpentier"}}