diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/org/ob-julia.el | 4 | ||||
-rw-r--r-- | lisp/progmodes/cc-engine.el | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/org/ob-julia.el b/lisp/org/ob-julia.el index 4fae0d142b2..3176baf3702 100644 --- a/lisp/org/ob-julia.el +++ b/lisp/org/ob-julia.el @@ -1,7 +1,7 @@ ;;; ob-julia.el --- org-babel functions for julia code evaluation -*- lexical-binding: t; -*- ;; Copyright (C) 2013-2021 Free Software Foundation, Inc. -;; Authors: G. Jay Kerns, based on ob-R.el by Eric Schulte and Dan Davison +;; Authors: G. Jay Kerns ;; Maintainer: Pedro Bruel <pedro.bruel@gmail.com> ;; Keywords: literate programming, reproducible research, scientific computing ;; Homepage: https://github.com/phrb/ob-julia @@ -24,6 +24,8 @@ ;;; Commentary: ;; Org-Babel support for evaluating julia code +;; +;; Based on ob-R.el by Eric Schulte and Dan Davison. ;;; Code: (require 'cl-lib) diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index c7b01de9b98..d37a50997ad 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -10009,7 +10009,12 @@ This function might do hidden buffer changes." (save-excursion (goto-char type-start) (let ((c-promote-possible-types t)) - (c-forward-type))))) + (c-forward-type)))) + + ;; Signal a type declaration for "struct foo {". + (when (and backup-at-type-decl + (eq (char-after) ?{)) + (setq at-type-decl t))) (setq backup-at-type at-type backup-type-start type-start |