Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba9af8c

Browse files
riscydakra
authored andcommitted
Sharp-quote apply and mapcar functions
1 parent 9ef443a commit ba9af8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythonic.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r'))))
236236
(assoc
237237
(if pythonic-docker-compose-service-name
238238
pythonic-docker-compose-service-name
239-
(completing-read "Service: " (mapcar 'car volumes) nil t))
239+
(completing-read "Service: " (mapcar #'car volumes) nil t))
240240
volumes)
241241
(car volumes)))
242242
(service (car volume))
@@ -266,7 +266,7 @@ arguments passed to `call-process'. CWD will be working directory
266266
for running process."
267267
(let ((default-directory (pythonic-aliased-path (or cwd default-directory))))
268268
(python-shell-with-environment
269-
(apply 'process-file pythonic-interpreter file buffer display args))))
269+
(apply #'process-file pythonic-interpreter file buffer display args))))
270270

271271
(cl-defun pythonic-start-process (&key process buffer args cwd filter sentinel (query-on-exit t))
272272
"Pythonic wrapper around `start-process'.
@@ -280,7 +280,7 @@ function if necessary. QUERY-ON-EXIT will be corresponding
280280
process flag."
281281
(let ((default-directory (pythonic-aliased-path (or cwd default-directory))))
282282
(python-shell-with-environment
283-
(let ((process (apply 'start-file-process process buffer pythonic-interpreter args)))
283+
(let ((process (apply #'start-file-process process buffer pythonic-interpreter args)))
284284
(when filter
285285
(set-process-filter process filter))
286286
(when sentinel

0 commit comments

Comments
 (0)