Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix native-comp warnings in *.el files #485

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions snippets/bibtex-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)
(require 'yasnippet-snippets)

Expand Down
1 change: 1 addition & 0 deletions snippets/c++-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)

(defun yas-c++-class-name (str)
Expand Down
1 change: 1 addition & 0 deletions snippets/julia-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)

(defun yas-julia-iteration-keyword-choice ()
Expand Down
2 changes: 1 addition & 1 deletion snippets/php-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets
;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets -*- lexical-binding: t -*-

;;; Commentary:

Expand Down
6 changes: 4 additions & 2 deletions snippets/prog-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)

;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down Expand Up @@ -29,8 +30,9 @@
(yas-s-trim comment-start))

(defun yas-trimmed-comment-end ()
"This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty.
Otherwise the reversed output of function `yas-trimmed-comment-start' is returned."
"This function returns `comment-end' trimmed by whitespaces if
`comment-end' is not empty. Otherwise the reversed output of
function `yas-trimmed-comment-start' is returned."
(if (eq (length comment-end) 0)
(yas-string-reverse (yas-trimmed-comment-start))
(yas-s-trim comment-end)))
1 change: 1 addition & 0 deletions snippets/python-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; -*- lexical-binding: t -*-
(require 'yasnippet)
(defvar yas-text)

Expand Down
2 changes: 1 addition & 1 deletion snippets/rjsx-mode/.yas-setup.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; .yas-setup.el --- Yasnippet helper functions for JSX snippets
;;; .yas-setup.el --- Yasnippet helper functions for JSX snippets -*- lexical-binding: t -*-

;;; Commentary:

Expand Down
2 changes: 1 addition & 1 deletion yasnippet-snippets.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; yasnippet-snippets.el --- Collection of yasnippet snippets
;;; yasnippet-snippets.el --- Collection of yasnippet snippets -*- lexical-binding: t -*-

;; Copyright (C) 2017 Andrea Crotti

Expand Down
Loading